Register   |  Login
You are hereInterview Questions > Asp.Net
 Recent Articles
 Recent Interview Question
 Recent Interview Questions and Answers
Asp.Net

[WebMethod]

public int GetPortNumber()

{

return this.Context.Request.Url.Port;

}

  

Asp.Net
How to maintain the scroll bar position and focus of the control even after the post back operation?

Including smartNavigation="true" attribute in the page directive will help to achieve this.
  

Asp.Net

Application_Start: Event is triggered once in application life time. That is, this event is triggered whenever application starts.

Session_Start: Event is triggered once in a session life time. That is, for every new session this event is triggered.

For one application only once the Application_Start event is triggered, but any number of times Session_Start event can be triggered

  

Asp.Net

Introducing a small change in web.config file. IIS will automatically detect the change and application will get restarted. Even introducing a change in the config file will restart the application

  


 Featured Blogs
 You may be interested