.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Will Session_End event will be fired evenif somebody directly closes browser without sign out?

Posted By:      Posted Date: September 15, 2010    Points: 0   Category :.NET Framework
Hi,     In one of my application I m using InProc session state.Can anybody tell me if user closes the browser directly,then Session_End will be called? Regards, Mehul

View Complete Post

More Related Resource Links

Session_end event raised even open a different browser? vs2010,webform


file attachment control on infopath 2010 browser form, validating event not fired


If preview within InfoPath 2010, the validating event is fired. But After deploying the form to SharePoint 2010, the validating event does not fire.

Any ideas?


Blog: http://convergingpoint.blogspot.com/

Automatic expiration of forms authentication when user closes the browser windows without signing ou

Dear all, can u tell me how to automatically sign out a user if he/she closes the browser window without signing out. I'm using Forms Authentication.   Thanks 

Button click event is not fired on button click

 Hi am using jquery flexi gride in web page and it is working fine .But now the problem is ocured when i click button to call server side event.I am not able to find out .Please guide me for this My button is as fallows and i am<asp:Button ID="btnExport" runat="server" Text="Export" Style="font-family: 'Times New Roman', Times, serif" OnClick="btnExport_Click" />  

How to retrieve object that fired Command event.

Hi there, My situation is, I have a button that bind with a custom ICommand. When the button is clicked, the "CanExecute()" in the custom ICommand will be execute. The question is, how can I retrieve the button object inside "CanExecute()" ? Thanks. Regards, Rambo Ong

opening a web browser without opening form on windows form load event

Hello All, I have a main frame which has a display button. after clicking on display button I usually open a windows forms. Now I have a requirement to open a web page after clicking on display button. I should not show windows form to the user. for that I had written following code in the Form_int (override) event of windows form. System.Diagnostics.Process.Start(http://www.google.com); and I commented out ShowDisplay(); code.  Everything looks good till now and when I run the project and clicked on display button web browser has been opened, but if I click again another web browser is being opening. but I don't want another browser to be opened. can anybody please help me in that. Thanks in advance.

ItemAdded event not getting fired

Hi, I have ItemAdded event created. I have added a function in that. The function counts the number of files in the subfoldes of the list. I have build the class file, and created it as a feature and activated the feature. I am not sure if my code is being hit. This is the code i have used. [CODE] namespace ItemCountEventHandler {     class Constants     {         public const string url = "Server Name";         public const string listname = "list name";     }     public class ItemCounting : SPItemEventReceiver     {         public override void ItemAdded(SPItemEventProperties properties)         {             //   base.ItemAdded(properties);             GetOpenItems();         }                   public static void GetOpenItems()         {             using (SPSite site = new SPSite(Constants.url))     

What event (if any) is fired on calling ShowDialog on hidden window

I initialize a window at the launch of my application and hide it, so that when the user needs to launch it I can quickly show it. I am using showDialog to show the window. I use this window at multiple places. So when the user is done using the window I again hide it. My question is how does the window know that it is visible. 'Loaded' event is no longer fired when I can ShowDialog to show the window. ('Loaded' event is fired the first time I create the window and hide it). Is there any other event that is fired on calling 'ShowDialog' on a hidden window? Thanks for your response.  

Generate the event handler of a control directly in the markup view ?

Hi there, I was wondering if there is a way to generate the event handler of a control directly in the markup view and not in the design view. Thanks.

dont show JS hidden row after server event fired


Hi all,

i designed a gridview named outergrid and within that GV i designed a innerGrid, when the user click on expand button from the outergrid then the inner grid have to show. Now im doing some row filter works using JS, let us assume i have 5 rows in outergrid after filtered first 2 rows will be hiden so now 3 rows displaying, when user clicks on the expand button then im calling RowCommand Event of outergrid now the child grid has populated but the problem is 2 hiden rows(on outergrid) are now visible, how to make these hiden rows not to show while populate innergrid.

Catch Browser Close Event, but how?


I want to call a function in my Global.asax when the user closes his browser so I can delete a databse entry but how do I have to do this?


createchildcontrols is not fired on page load event


hello frnds

i have develop a custom control as shown below

public class MyControl : System.Web.UI.WebControls.WebControl, INamingContainer


private TextBox txtData ;

protected override void CreateChildControls()
txtData = new TextBox();
txtData.ID = "txtName";



Now, i have placed this control on web page. i also have other asp.net controls like combobox, checkbox etc on this same web page as displayed below. 

<%@ Page Title="" Language="C#" MasterPageFile="~/MyMaster.master" AutoEventWireup="true" CodeFile="Customer.aspx.cs" Inherits="Customer" EnableViewState="true" %>

<asp:Content ID="Content2" ContentPlaceHolderID="PageContent" runat="Server">
    <table cellpadding="0" cellspacing="0" width="100%">
           <td><asp:MyControl ID="CmbMyControl" runat="Server" /></td>

Now in page load ev

How to determine if a loaded event is fired as a result of a navigation button?


I want to perform different actions in my page loaded event based on whether or not the page is being loaded as a result of a navigation button click (ie if the navigation GUI back/forward button was pressed then I want to do A else do B).

Is there a built in flag that I can reference?

Button event not fired


hi all i designed a page like this 

<form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
     <asp:UpdateProgress ID="UpdateProgress1" runat="server"
                                    AssociatedUpdatePanelID="UpdatePanel1" DisplayAfter="1">

Check box check event not fired properly



 I have 3 Checkbox named as

ParentChk1, ParentChk2, ParentChk3 and i having three childcheckboxlist.

Each ParentChk want to enable corresponding childcheckboxlist.

Now issue is while i am checking  ParentChk1 and ParentChk2 continuously, the ParentChk1 checking event is not fired. 

But if i checking ParentChk2 after few seconds of  checking the ParentChk1 , that checking event trigger properly.


Get the Sign In as a different user event in sharepoint site.



i want to save some data for a each user when he/she log out from a sharepoint site ,

so can i get the  event of "sign in as a diffenrent user" in sharepoint .

InfoPath drop down list's Changed event does not occur when viewed in browser





I have the following problem:


On my InfoPath form, I have a drop down list that contains cities, and based on the selection of the user, I would like to pre-fill some fields on the form, like telephone and fax number, address of the company, etc. I have written an event handler that is run each time the selection in the drop down list changes. But when I publish the form on the SharePoint server, this functioanlity seems to be lost. If I change the selected item in the drop down list, nothing happens; whilst in the InfoPath client everything runs as expected.


Why does this happen? Is the drop down list's Changed event unavailable in a browser-enabled form? Is it possible to catch this event at all?


Thanks for your reply,


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend