Hi, you have to add a attribute to that button during the page load event of the form that would call the popup .the code for that is like: ********************************************** loginButton.Attributes.Add("onclick", "window.showModalDialog('/MyWebsite/login.aspx', null, 'status:no; dialogWidth:360px; dialogHeight:229px; help:no; scroll:no; menubar:no; resizable:no')"); *********************************************** This code is for modalDialog or for popup button.Attributes.Add ("onclick", "javascript: functiontoopenpopup();"); this will open the popup window. In the popupwindow code....on the Page_unload you have to write this code. ***************************************** window.close(); window.opener.location.reload(); ***************************************** This will close the popup and refresh the parent window. Regards, Kaps
kapiljadhav
Posts
-
urgent -
Closing Pop Up.Hi, you have to add a attribute to that button during the page load event of the form that would call the popup .the code for that is like: ********************************************** loginButton.Attributes.Add("onclick", "window.showModalDialog('/MyWebsite/login.aspx', null, 'status:no; dialogWidth:360px; dialogHeight:229px; help:no; scroll:no; menubar:no; resizable:no')"); *********************************************** This code is for modalDialog or for popup button.Attributes.Add ("onclick", "javascript: functiontoopenpopup();"); this will open the popup window. In the popupwindow code....on the Page_unload you have to write this code. ***************************************** window.close(); window.opener.location.reload(); ***************************************** This will close the popup and refresh the parent window. Regards, Kaps
-
how to determine Session is Alive or notHey you have to check the sessions if they are empty during the page load event. write the below code on page load event If session("YOUR_SESSION_VARIABLE") = "" then response.redirect("LOGIN_PAGE_URL") End If Try this out..... Regards, Kaps
-
Datagrid Dropdown list - setting initial value problemsHi, You have declared iloop as Integer. In dot net if we do not initialize the intiger it will take it as -1 as the initial value. So assign it 0 or 1 as Dim iLoop As Integer = 0 This should work..... Regards, Kaps