About the author

Vijay Kodali
E-mail me Send mail

Recent comments

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2017

Hide GridView AutoGenerate Columns

            //hide header column
            GridView1.HeaderRow.Cells[0].Visible = false;

            //hide column in data rows
            foreach (GridViewRow row in GridView1.Rows)
            {
                row.Cells[0].Visible = false;
            }

Categories: ASP.NET | ASP.Net 3.5
Posted by vijay on Thursday, March 26, 2009 8:37 PM
Permalink | Comments (0) | Post RSSRSS comment feed

Visual studio Development Server problem in Vista

Problem:

Internet Explorer can not display the page.

Localhost not able to establish a connection on port..

getting the above messages when trying to run my application locally. I got this problem after installing this week's updates to Vista.  It messed up VS developer server settings. 

Apparently it was due to Definition Update for Windows Defender - KB915597 (Definition 1.53.256.0)

Solution:

Go to c:\Windows\System32\drivers\etc\ and open the file named hosts with a text editor and search for the line containing "::1"  and change "::1" to ":::1" by adding an extra ":" 

It solved the problem on one of my development machine. If it didn’t work, leave a comment.

Update:

Another solution from visual web developer team.

Update:

Same problem is discussed here and here


Posted by vijay on Thursday, March 12, 2009 1:23 PM
Permalink | Comments (42) | Post RSSRSS comment feed

Ajax AutoCompleteExtender not working

Make sure you have indicated that a Web service can be invoked from script..

 
    [System.Web.Script.Services.ScriptService]
    public class AutoCompleteService : System.Web.Services.WebService
    {
 
        //[WebMethod]
        //public string HelloWorld()
        //{
        //    return "Hello World";
        //}
    }


Categories: Ajax Toolkit | ASP.NET
Posted by vijay on Thursday, March 12, 2009 9:57 AM
Permalink | Comments (0) | Post RSSRSS comment feed