Wednesday, June 8, 2011

Maintain scrollback position ASP.NET

Two ways to do this:

1 ) MaintainScrollPositionOnPostback="true" at the page directive so that it works for that page only
2) in the web.config that way it works for all the pages in the website.

Peace :)

Bobby

Wednesday, April 13, 2011

Specifying a same port for a Web site project that uses the Visual Studio Development Server

To specify a port for a Web site project that uses the Visual Studio Development Server

1.In Solution Explorer, select the project name.
2.In the Properties pane, set Use dynamic ports to False. This enables editing of the Port number property.
3.Enter a port number for the Port number property.
4.Click outside of the Properties pane. This saves the property settings
5.To verify the change, press CTRL+F5 to run the project. The new port number appears in the address bar of the browser.

For more info check this URL from MSDN

http://msdn.microsoft.com/en-us/library/ms178109.aspx

Thanks,
Suman

VSS ISSUE VISUAL STUDIO

When adding a project to a VSS some times the window doesnt show the network folders but asks for entering a DNS Address(in other words VSS over internet).

Solution is as follows:

Vs 2005 :
TOOLS -- Options -- Menu
choose Source Control and from the Current source control plugin in the right change the drop down value from Microsoft Visual SourceSafe(internet) to Microsoft Visual SourceSafe



You will be all set :)

Bobby

Thursday, March 31, 2011

Debug tools missing / only some shown in VISUAL STUDIO 2005

IF the Debug tools are missing (step into, out and over.. or RUN, STOP etc...) completely or only some shown partially (i.e only step out and nothing else) in VS 2005 do the following

1. Click on the tiny drop down button at the end of the debugging toolbar.
2. Select "Add or Remove buttons" option.
3. Select "Customize" option to bring up "customize" dialog box.
4. Go to Commands tab. This tab has Categories list to the left and Commands list to the right.
5. Select Debug category from Categories. This shows all commands (buttons) available in debug category - this includes Step Into, Step Out and many others.
6. Select any command buttons from the commands (Step Into or Step Out) - drag the button and drop it on any toolbar you like - in this case, you may drop it on debug toolbar.

Bobby

Thursday, January 27, 2011

Error configuring asp.net 1.1 websites IIS 7 windows 7 64 bit

Eventhough you set up the asp.net 1.1 websites correctly and they run... When you try to make some changes like Authentication etc from IIS 7 in a 64 Bit win7 OS you might see the follwing error

\\?\C:\Windows\system32\inetserv\config\applicationHost.config


Do the Following:
1. create a directory v1.1.4322 under (\windows\microsoft.net\framework64 by default 64 doesnt have the v1.1)
2. create a directory called CONFIG under (\windows\microsoft.net\framework64\v1.1.4322)
3. copy the machine.config file from \windows\microsoft.net\framework\v1.1.4322\config to \windows\microsoft.net\framework64\v1.1.4322\config folder.

4. Everything should work fine.

Found this solution from this http://forums.iis.net/t/1157568.aspx

In a 64 bit OS IIS 7 is wrongly looking for the machine.config under framework64 and as it doesnt exist there it fails.. so we can fool it by creating the necessary folders and copying the file :)