ASP.NET

Quick Search

Make PNG transparency work in Internet Explorer

May 28th, 2010 by admin
No comments »

Create a container to store your image. In this case I use a <div>.
Create your <div> inside your <body>, just like this.

<body> <div></div> </body>

Next, create a <style> if you dont have one. Make sure they are between your <head> </head>. Put the following css inside.

<style>
body {background-color:#000}
div.flower {background:url(flower-transparent.png) no-repeat; height:100px; width:100px}
</style>

The … Read More

Declaring string arrays

March 17th, 2010 by admin
No comments »

First, here we observe that there are some ways to declare and instantiate a string[] array local variable. They are all equivalent in the compiled code [see note], so choose the one you think is clearest to read.

~~~ Program that initializes string arrays (C#) ~~~
 
class Program
{
    static void Main()
    {
  // … Read More

TCPDate Server / Client

February 27th, 2010 by admin
No comments »

This is the implementation of “System.Net.Sockets”. In this example we will learn how to use the “TCPListener” and “TCPClient” classes from the “System.Net.Sockets” namespace.

This example consists of two files. The “DateServer” class which uses the “TCPListener” class to accept requests from new clients. Once the client is connected with … Read More

ASP.NET 301 redirect

February 27th, 2010 by admin
No comments »

When moving your pages from one place to another it is very tempting to handle old inlinks by creating a simple Response.Redirect( sNewPage, true );

This sure will work, but this type of redirect is a 302 and is meant for temporary relocations of pages. But your pages are permanently moved … Read More

C# quations – answers

February 27th, 2010 by admin
No comments »

Good for preparation and general self-testing, but too specific for the actual job interview. This was sent in by a job applicant getting ready to step into the .NET field in India.

Are private class-level variables inherited? – Yes, but they are not accessible, so looking at it you can honestly … Read More

SEO Company India

search engine marketing company India that offers affordable seo services