Thursday, March 18, 2010

Asp.net in visual studio

If you get difficulty setting asp.net website project, follow this link..might help

1) http://msdn.microsoft.com/en-us/library/aa964620(VS.85).aspx

Running Web Applications on Windows Vista with Visual Studio 2005

You can use Visual Studio to create and work with ASP.NET Web sites (which are also known as Web applications) in a variety of configurations: local Internet Information Services (IIS) sites, file-system sites, File Transfer Protocol (FTP)–deployed sites, and remote sites. For guidelines to help you decide when to use each type of Web site, see Types of Web Sites in Visual Web Developer.

After installing IIS, you can configure Visual Studio to run and debug local ASP.NET Web sites in IIS instead of the built-in ASP.NET Development Server. When you create a local IIS Web site, the pages and folders for your site are stored in a folder under the default IIS folder for Web sites, which is located at LocalDrive:\Inetpub\Wwwroot. Visual Studio also creates the appropriate IIS configuration so that the Web site is recognized by IIS as an application.

To create and work with ASP.NET Web sites without installing IIS, you can create a file-system Web site. For more information about file-system Web sites, see Types of Web Sites in Visual Web Developer.

Installing IIS and ASP.NET on Windows Vista
Installing the ASP.NET component of IIS 7.0 on the Windows Vista operating system will enable ASP.NET Web applications to run as local IIS Web sites. You must have administrative privileges to install IIS 7.0.

To install IIS and ASP.NET on Windows Vista
1.In Windows Vista, open Control Panel and then click Programs and Features.

2.In the right pane, click Turn Windows features on or off.The Windows Features dialog box opens.

3.Select the Internet Information Services check box.

4.Double-click (or expand) Web Management Tools, double-click IIS 6 Management Compatibility, and then select the IIS 6 Metabase and IIS 6 Configuration Compatibility check box.

5.Double-click (or expand) World Wide Web Services, double-click Application Development Features, and then select the ASP.NET check box.

Note
The related options that are necessary for Web application development will automatically be selected.

6.Click OK to start the IIS and ASP.NET installation process.


2) and then RUN visual studio with ADMINISTRATIVE access..i.e. Run as Administrator.

Thursday, December 3, 2009

events and delegates

some useful thing on events and delegates...

//Declare a delegate (class member)
private delegate void UpdateProgressBar();

//Create an instance of the delegate for us to use (class member)
private UpdateProgressBar updateProgressDelegate;

void StepProgressBar()
{
progressBar.PerformStep();
}

//Method executed on a different thread
DoDatabaseUpdate()
{

//Associate a method to our delegate (defined above)
updateProgressDelegate = new UpdateProgressBar(StepProgressBar);
for (;;) //Some loop
{
//Code for the lengthy operation
...
...
this.Invoke(updateProgressDelegate );//Update the progress bar by calling the delegate
}
}

Monday, November 23, 2009

UI looks different on different PC's

Do you know in Winform (.net 2.0) UI can look different on different resolutions and DPI settings. Useful link below

http://stackoverflow.com/questions/185804/how-to-control-the-font-dpi-in-net-winforms-app

Friday, November 20, 2009

subversin control in visual stuido : step by step guide

a nice article on how to set subversion in visual studio

http://www.west-wind.com/presentations/subversion/

http://www.codeproject.com/KB/dotnet/SourceControl_VSNET.aspx

Monday, November 16, 2009

good sql server utility

some good ms-sql related utilities are as follows

1) Microsoft SQL Server Management Studio Express

http://www.microsoft.com/downloads/details.aspx?familyid=C243A5AE-4BD1-4E3D-94B8-5A0F62BF7796&displaylang=en

2) Sql Script builder > with this you can export both structure and data in a script file.

3) Microsoft sql data publishing...

windows forms timer

there are following types of Timers available in c#

1 vote down star


System.Threading.Timer,
System.Timers.Timer, and
System.Windows.Forms.Timer

and in some cases using one in place of another helps sometimes. :-)

Wednesday, November 11, 2009

online proxy server

online proxy server
http://www.kroxy.net