How to open a popup window from C# code behind

Hi, When users click on submit button on my application, first it validates the data using requiredfieldvalidators, and then once all the data is perfect a popup window should open that tells them "please wait, processing request", the window stays as long as the parent unloads, I am able to do it by using Javascript and adding OnClick attribute to the button, but the problem is the popup opens everytime we click the button, even if it it fires the validators and not move to the next page, 
Can Anyone Help??
16
talasila
6/21/2006 10:28:53 PM
asp.net.client-side 24353 articles. 0 followers. Follow

18 Replies
64172 Views

Similar Articles

[PageSpeed] 54

How about adding the popup code to the onsubmit event handler of the
form tag instead?  Of course that assumes that your users will
have Javascript turned on and be able to use client-side validation,
and that there are no postbacks until then...

Additionally, I might suggest using an inline bit of HTML rather than a completely separate window, due to the widespread use of popup blockers -- but if you have a more controlled environment, this might not matter.

Cheers,



Peter Brunone
MS MVP, ASP.NET
Founder, EasyListBox.com
Do the impossible, and go home early.
1
PeterBrunone
6/22/2006 5:45:37 AM

How about something like:

protected void Test_Click(object sender, EventArgs e){

   OpenNewWindow("test.aspx");
}

 

public void OpenNewWindow(string url)

{

   ClientScript.RegisterStartupScript(this.GetType(), "newWindow", String.Format("<script>window.open('{0}');</script>", url));

}


David Barkol | ASP.NET AJAX in Action
2
davidbarkol
6/22/2006 5:50:10 AM
davidbarkol:

How about something like:

protected void Test_Click(object sender, EventArgs e){

   OpenNewWindow("test.aspx");
}

 

public void OpenNewWindow(string url)

{

   ClientScript.RegisterStartupScript(this.GetType(), "newWindow", String.Format("<script>window.open('{0}');</script>", url));

}



thanks for your reply, but I am still using Framework version 1.1, this feature is new in 2.0, any other way??
2
talasila
6/22/2006 2:23:31 PM
PeterBrunone:
How about adding the popup code to the onsubmit event handler of the form tag instead?  Of course that assumes that your users will have Javascript turned on and be able to use client-side validation, and that there are no postbacks until then...

Additionally, I might suggest using an inline bit of HTML rather than a completely separate window, due to the widespread use of popup blockers -- but if you have a more controlled environment, this might not matter.

Cheers,




thanks for your reply, I cannot use the onsubmit for form coz the form tag is within the template, I can not ass one more form tag to my ascx file, any other way??
0
talasila
6/22/2006 2:24:48 PM
i am sorry for the word "ass" in my last reply, was supposed to type "add"
-5
talasila
6/22/2006 2:43:48 PM
There should be an "Edit" button available on your posts, next to the Reply button :)

You can add an event handler to your form tag on the client side as well:

var theForm = document.forms[0];
theForm.onsubmit = function() { window.open(your parameters here); }


Peter Brunone
MS MVP, ASP.NET
Founder, EasyListBox.com
Do the impossible, and go home early.
-1
PeterBrunone
6/22/2006 4:44:37 PM
PeterBrunone:
There should be an "Edit" button available on your posts, next to the Reply button :)

You can add an event handler to your form tag on the client side as well:

var theForm = document.forms[0];
theForm.onsubmit = function() { window.open(your parameters here); }



thanks for your reply, I know there should be an Edit button to edit my posts, looked everywhere, couldn't find it, dont know why its hiding,
I tried the above mentioned procedure, it still does the same thing, opening the window even a validator fires,

-2
talasila
6/22/2006 6:01:32 PM
The syntax is a little different in 2.0 but registering a startup script to invoke some javascript is nothing new.
David Barkol | ASP.NET AJAX in Action
-2
davidbarkol
6/22/2006 8:32:34 PM

 But after opening child window and then close it(first child then parent) i got memory read error all the time for IE 6 not for mozilla.

if i dont open child window i wont get this error. i have used same code shown above by davidbarkol

thanks if anyone can help me out 

3
Nnp
4/22/2008 8:42:57 PM

Thanks, this worked great!

2
justinleigh
9/4/2008 8:26:12 AM

This worked for me too, but I'm trying to pass some more attributes to the window.open() function.  I've found them on a bunch of other pages, but it's not working.  It only works if you ONLY pass the url.

Here is the other stuff I'm trying to pass in the String.Format("<script>window.open('{0}');</script>", url) string:

toolbar=no,status=no,menubar=no,location=center,scrollbars=no,resizable=no,height=500,width=657)

 

-3
im1dermike
9/8/2008 8:57:28 PM

Try this and next time start your own thread and don't hijack someone elses:

string winFeatures = "toolbar=no,status=no,menubar=no,location=center,scrollbars=no,resizable=no,height=500,width=657";
yourScript = string.Format("<script type='text/javascript'>window.open('{0}', 'yourWin', '{1}');</script>", url, winFeatures);

NC...

3
NC01
9/9/2008 4:02:44 PM

hai the code is not work forme. i have placed the same thing in my code ,the code is running with out errors but could not open a pop up window ,please help me .My code is placed in below format

protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
          
            if (Session["Admin_Id"] != null)
            {
                //Lbladminname.Text = "Hi" + Session["username"].ToString();
               // Response.Write(Session["username"].ToString());
                //Lbladminname.Text = "Dear" + Session["username"].ToString();
                //showlastlogindata();
              
                showlastlogindata();
              
               
                Label lbl = (Label)Master.FindControl("Lbladminname");

                Label lblt = (Label)Master.FindControl("Lbltime");
                if(lbl !=null)
                {
                lbl.Text =" Welcome " + Session["username"].ToString().Trim();
                }
                if (lblt != null)
                {
                    lblt.Text = DateTime.UtcNow.ToLongDateString().ToString();
                }

                //HttpCookie mycookie = Request.Cookies["link"];
                if (Session["link"] != null)
                {
                    //Response.Write(Session["link"].ToString());
                    Response.Redirect("PropertyViews.aspx");
                }
                else
                {
                    OpenNewWindow("Remainder.aspx");
                   
                }
               

                //Lbllastlogin.Text = Session["username"].ToString();
            }
            else
            {
                Response.Redirect("Adminlogin.aspx");
            }
            //addlogs();
        }
    }

 

 

public void OpenNewWindow(string url)
    {

        string winFeatures = "toolbar=no,status=no,menubar=no,location=center,scrollbars=no,resizable=no,height=500,width=657";
        ClientScript.RegisterStartupScript(this.GetType(), "newWindow", string.Format("<script type='text/javascript'>window.open('{0}', 'yourWin', '{1}');</script>", url, winFeatures));
      
    }

thanks in advance 

sai

1
venkatasaibabu
3/16/2009 11:22:58 AM

venkatasaibabu:

hai the code is not work forme. i have placed the same thing in my code ,the code is running with out errors but could not open a pop up window ,please help me .My code is placed in below format

protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
          
            if (Session["Admin_Id"] != null)
            {
                //Lbladminname.Text = "Hi" + Session["username"].ToString();
               // Response.Write(Session["username"].ToString());
                //Lbladminname.Text = "Dear" + Session["username"].ToString();
                //showlastlogindata();
              
                showlastlogindata();
              
               
                Label lbl = (Label)Master.FindControl("Lbladminname");

                Label lblt = (Label)Master.FindControl("Lbltime");
                if(lbl !=null)
                {
                lbl.Text =" Welcome " + Session["username"].ToString().Trim();
                }
                if (lblt != null)
                {
                    lblt.Text = DateTime.UtcNow.ToLongDateString().ToString();
                }

                //HttpCookie mycookie = Request.Cookies["link"];
                if (Session["link"] != null)
                {
                    //Response.Write(Session["link"].ToString());
                    Response.Redirect("PropertyViews.aspx");
                }
                else
                {
                    OpenNewWindow("Remainder.aspx");
                   
                }
               

                //Lbllastlogin.Text = Session["username"].ToString();
            }
            else
            {
                Response.Redirect("Adminlogin.aspx");
            }
            //addlogs();
        }
    }

 

 

public void OpenNewWindow(string url)
    {

        string winFeatures = "toolbar=no,status=no,menubar=no,location=center,scrollbars=no,resizable=no,height=500,width=657";
        ClientScript.RegisterStartupScript(this.GetType(), "newWindow", string.Format("<script type='text/javascript'>window.open('{0}', 'yourWin', '{1}');</script>", url, winFeatures));
      
    }

thanks in advance 

sai

Start your own post.

NC...

 

-2
NC01
3/16/2009 1:09:43 PM
NC01: Both of our posts were regarding the same issue in this topic.  STFU
-2
im1dermike
3/16/2009 1:15:31 PM

im1dermike:
NC01: Both of our posts were regarding the same issue in this topic.  STFU

 

It is a new question isn't it? And what does STFU mean?

NC...

 

-1
NC01
3/16/2009 1:27:11 PM

 the same problem is faced by me also,but the same code which i wrote is running in another system,its opening a pop up window ,ok i will try to help u

bye

sai

-1
venkatasaibabu
3/17/2009 4:05:12 AM

place a lable or some other as per ur req and assign it's value with this 

<a href=webform2.aspx style='text-decoration:none;COLOR: #0000ff' target=new onclick=window.open('','new','menubar=no,toolbar=no,statusbar=no,scrollbars=yes,height=700,width=600,left=0,top=0');>Click To Open</a>


PLEASE MARK AS ANSWER IF MY POST SOLVED YOUR PROBLEM
-1
indianmaestro
3/17/2009 6:10:49 AM
Reply:

Similar Artilces:

open a popup window from.net code behind
Hi I am trying to open a new window from a button in my aspx side. This works, but I have to push the button 2 times before it open. Any idea? Public Shared Sub OpenPopUp(ByVal opener As System.Web.UI.WebControls.WebControl, ByVal PagePath As String) Dim clientScript As String 'Building the client script- window.open clientScript = "window.open('" & PagePath & "')" 'register the script to the clientside click event of the opener control opener.Attributes.Add("onClick", clientScript) End Sub Sub Button1_Click(sender As Object, e As EventArgs) OpenPopup(Button1,"http://www.google.com") End Sub Hello, please check my BLOG below, I have an article I posted it there that explains how to open a pop up window from inside asp.net. regardsBilal Hadiar, MCP, MCTS, MCPD, MCTMicrosoft MVP - Telerik MVP Thanks But, What if you want to execute some server-side code before calling the client-side. Thats what I need to do. Hi, I advise you to check this post : view post 818881 regardsBilal Hadiar, MCP, MCTS, MCPD, MCTMicrosoft MVP - Telerik MVP...

how to open popup window through javascript in code behind( popup window should be aligned center)
I want to use javascript in code behind to open popup window. I have Datalist inside which there is linkbutton. On click of linkbutton open popup window through javascript & that pop up window should be aligned centraly.Regards,Mahesh--------------------click "Mark as Answer" on the post that helps you. Friend, Try this sample . <html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server">    <title>Untitled Page</title>        <style>    .blue{ bac...

Open popup window on click of button event from code behind side
 Hi friends I have one button called Preview which is placed in upadate panel. Now I want to open popup window on click of that button. I can call javascript onclientclick event but before open popup window i want to get some values from current window.I dont want to pass that value in query string. Here is my code <pre> ClientScript.RegisterStartupScript(this.GetType(), "JS", "javascript:window.open('PreviewPop.aspx?DesignID=" + txtImageHide.Value + "','MyTitle','height=250,width=505, top=100, left=100, scrollbars=yes, resizable=yes, status=no')", true);</pre> but popup window is not open.If I remove update panle then it works fine. can anybody give me solution for this. thanks in advance Click on 'Mark as Answer' if this post is helpful.ImranKhan pathan I doubt if that will work in an update panel, which I assume is an AJAX control. It would need to be rendered on a PostBack event. NC... Hi, I am not very sure what you are saying. Maybe you can use endrequest event to do it. Best Regards,Sincerely,Jin-Yu YinMicrosoft Online Community Support What I am saying is that you can only run startup code with a page refresh/reload and an asynchroneous refresh (AJAX) only does a partial refresh. NC......

Javascript confirm message in c# code behind,by clicking ok popup window open
how can i set a confirm javascript message in c# code behind and by clicking ok i have to open a pop up .aspx page. Hello,     Add onclick attribute with javascript function containing window.open() within your c# code. btn.Attributes.Add("onclick", "javascript:window.open('YourPage.aspx')")  Thanks,santosh_maharajaPlease mark as answer if you got expected solution. http://plugins.jquery.com/project/confirm  Cool stuff // The action. $('span').mouseover(function() { $(this).html('Here is the offer'); });   $('span').confirm({ msg:'See my interesting offer?', stopAfter:'ok', eventType:'mouseover', timeout:3000, buttons: { ok:'Sure', cancel:'No thanks', separator:' ' } }); popups are disabled on lots of browsers but you can still use them.  modify the code a little.  Good Luck In this example the popup page ust be in the same folder as the calling page.  protected void Page_Load(object sender, EventArgs e) { btnPopup2.Attributes.Add("onclick", "if(confirm('Open Popup?')) window.open('Popup.aspx');"); }    thanks to all. nothing working here. here's my code: ClientScript.RegisterStartupScript(this.Page.GetType(), "Report", "if(window.confirm('Do you want to see report?')){window.fnOpenReport='Reports/BuyerReportViewer....

Atlas client side control value available to server side C# code behind
I have an existing ASP.NET application. The page contains a datagrid (asp:datagrid). In my current C# code behind, I fetch data from SQL Server 2005 and bind to the datagrid when a button is selected (Click event). There can be many entires in the grid however, so the user typically enters text in a textbox as a filter on the returned results from SQL Server 2005. Now after studying an Atlas sample animalservice http://atlas.asp.net/docs/atlas/doc/data/default.aspx, with an HTML suggestion text box, I would like to use client-side Atlas to give the user a better indication of...

open popup window from code behind
hi i am coding with vb , i need to open pop up window with out display any tool bars. and also need to pass a value to opening page which will need to get related data to display on pop up. need to cal java script inside a vb method   You can call this either via javascript or use Ajax Here is a good example http://www.codeproject.com/KB/custom-controls/asppopup.aspx  or the JavaScript version, which uses the the ScriptManager for the JavaScript: C#public static void OpenWindow(Page currentPage, String window, String htmlPage, Int32 width, Int32 height) { System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append("popWin=window.open('"); sb.Append(htmlPage); sb.Append("','"); sb.Append(window); sb.Append("','width="); sb.Append(width); sb.Append(",height="); sb.Append(height); sb.Append(",toolbar=no,location=no, directories=no,status=no,menubar=no,scrollbars=no,resizable=no"); sb.Append("');"); sb.Append("popWin.focus();"); ScriptManager.RegisterClientScriptBlock(currentPage, typeof(ArvalPage), "OpenWindow", sb.ToString(), true); }  VBPublic Shared Sub OpenWindow(ByVal currentPage As Page, ByVal window As String, ByVal htmlPage As String, ByVal w...

opening multiple popup windows from code behind
HII am trying to open multiple pop up windows from code behind for the purpose of showing xls files but in only seems to work with one window. this is the code that I have so far. it works fine but when I'm trying to pop up more than one browser it only shows the first one.  file_array = dir.GetFiles("*.xls") For Each file In file_arrayClientScript.RegisterStartupScript (Me.GetType, "popup & file.Name &", "window.open('" & path & "','blank','menubar=no')", True) Next Can somebody help me in this matter. Thanks in advanced.         the situation is cause by "popup & file.Name &",it's totally a constant string,and won't change during the loop,so all the script you registered will have the same KEY,so the later one will override the previous one! you should change ClientScript.RegisterStartupScript (Me.GetType, "popup & file.Name &", "window.open('" & path & "','blank','menubar=no')", True)  to ClientScript.RegisterStartupScript (Me.GetType, "popup" & file.Name, "window.open('" & path & "','blank','menubar=no')", True) code for fun----------------Don't forget to mark it as Answer if it's useful for you okay now, this is what I came up with so each time the ke...

Want to open a popup window from code behind
Hi,I want to open a Popup window with code behind in ASPX page. So if you have ant codes and suggestion please do mail me.I am online on yahoo messsanger in invisible mode and my yahoo chat is is 'naveen_uicsa'ThanxNaveen Hello, use registerstartupscript function .Dim mystr as new StringBuilderwith mystr  .append("<script language='javascript'>")  .append("window.open(theUrl, '', 'toolbar=0,width=350,height=250,left=40,top=50');")  .append("</script>")end withregisterStartupScript("PopupScript", mystr.ToString)Hope this would help.Regards,ForzaOracle, mySQL & ASP.net lover Hi Naveen,You can open popup window from client side code only. You can howewer generate this client code at server. I think this is what are you looking for.Leon LangleybenMCSD, ASP.NET MVPBlog Hi Forza,Thax for solution i'll try that. But please tell me can i pass full path for url or i can pas relative path.RegardsNaveen hi, you can pass any valid url, including a full path on your site or any other site, and a relative path on your website.Regards,Ariya Hi Forza,When i am using StringBuiler then it is giving error StringBuilder not definedNaveen Hi Naveen,It is defined in System.Text namespaceLeon LangleybenMCSD, ASP.NET MVPBlog Hello again naveen, Can you tell me what the error is? Have you put these code to the top of your code : Option Strict offImports SystemImports System.CollectionsImports System.TextImports System.DataImports System.Data.OleDbImports...

javascript in c# code behind for window.open()
Hi all, So I have this code that I am using to pass variables in the query string but also use javascript in order to have a window.open and window.close function on both pages.string WindowOpen = "window.open('Notes.aspx?NoteTableId=" + id + "&NoteTable=" + Tables.InvoiceHeader + "'); return false;"; linkNoteButton.Attributes.Add("onclick", WindowOpen);   My question is where in that string would I implement things such as Heigth and Width of the window being open, also like setting menubar and toolbar = 0 so that those aren'...

C# code behind variable in client side javascript
Is there a way to add a code behind variable to a javascript: window.open command in the NavigateURL or DataNavigateUrlFormatString of Hyperlink Columns and Bound Hyberlink columns? M view post 1039Sushila Bowalekar PatelVisual ASP/ASP.NET MVPhttp://weblogs.asp.net/sushilasb How about inside a plain client side window.open call in javascript? view post 1034Sushila Bowalekar PatelVisual ASP/ASP.NET MVPhttp://weblogs.asp.net/sushilasb Thanks a ton! ...

How to access yes/no value from a popup window in the code-behind C#?
I've have looked into plenty of threads about this but nothings working for me. Basically I want to ask the user to confirm, if the user says yes then execute some c# code in the code-behind otherwise if the user says no then do nothing and let the user be able to click the button again.  Here's some stuff I've tried: In the aspx file,                 <script language="javascript" type="text/javascript">           &...

Using C# code behind to open a new Internet Explorer window
I'm using the Response object to stream pdf document to the browser when a user hits a particular button on a page. This is working correctly, however the pdf opens in the same browser window. How do I open a new (second) browser window and stream the output to this new window? Thanks! You have to use client side code (javascript) to open a new IE window. You can call the javascript after server side code executed.This posting is provided "AS IS" with no warranties, and confers no rights. Hi, first check out this code sample: Open a popup window after a button click After reading you...

Opening POPUP Windows from C# Windows application
Hi all,            I am opening Internet Explorer from C# Windows application by using SHDocVw.It is opening in Full screen. I want to open like a popup window(Without containing address bar,menu bar......).Please Provide me the solution.. RegardsNataraj           Since this is a Windows application question, you should ask your question on the MSDN Forums.RyanRyan OlshanASPInsider | Microsoft MVP, ASP.NEThttp://ryanolshan.comHow to ask a question...

Question about client side and code behind code
How is code behind code processed on client side? I ask because I'm trying to figure out a problem I have with a link button in a gridview. If I open the page and run it as normal everything fires fine. I click on the link button and it loads the new page. However if I email the page to myself and click on the link button nothing happens. I do not think that the Gridview_Rowcommand fires. The link button represents a DB ID field and all the code is in the GridView_RowCommand event in the code behind and fires a Server.Transfer at the end to load the new page. I have tried Response.Redi...

execute 'window.open' client script function in server side code
I am using button control(web control) on my page (ReportControl.aspx). On button_click I want to open another page ReportViewer.aspx (in new browser) but before that I should able to collect control values of ReportControl.aspx and pass to that new page. So that i will use them on page_load of that new page(ReportViewer.aspx). Please reply urgent. Use this:ScriptManager.RegisterStartupScript(this, typeof(string), "OpenWindowScript", "window.open('ReportViewer.aspx');", true); Thanks kipo for your reply. How i pass parameter to this page (i collect par...

How to know in the code behind if the window has been open from another window
 HiI want to know in the code behind (server side) if the page has been open from another window. In the client side I can check, in a javascript function, if the window.opener is null or not, but how can I know this in the code behind. Is it possible?Thanks,Luis Miguel   I think your best bet might be to use a HiddenField, and populate that HiddenField with the javascript window.opener value. For example: <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html P...

superreview granted: [Bug 263844] Javascript window.close() on popup not working when popup is opened in tab : [Attachment 162257] set opener on opened windows diverted into tabs
Boris Zbarsky <bzbarsky@mit.edu> has granted Boris Zbarsky <bzbarsky@mit.edu>'s request for superreview: Bug 263844: Javascript window.close() on popup not working when popup is opened in tab https://bugzilla.mozilla.org/show_bug.cgi?id=263844 Attachment 162257: set opener on opened windows diverted into tabs https://bugzilla.mozilla.org/attachment.cgi?id=162257&action=edit ------- Additional Comments from Boris Zbarsky <bzbarsky@mit.edu> r+sr=bzbarsky. Dan, thanks for doing this! I really wish we could factor some of this code that's being copied from windowwatcher all over, thoug. Maybe we need some utility functions somewhere that this and windowwatcher would both call? ...

use VB.NET and C#.NET code in the same C#.NET project
All-- Here is a sample that is "off the beaten path", (at least for me). Is it possible, in an ASP.NET application, using the code-behind page building technique, to have both pages written in VB.NET and pages written C#.NET?At http://www.WebLogicArts.com/DemoList.aspx there is a sample that shows that, (contrary to popular belief), it IS possible to mix ASP.NET pages built with C#.NET with ASP.NET pages built with VB.NET in the same VS.NET 2003 project. Note that this is just a "fun" sample to see if it can be done and I do not recommend this practice as a "standard" way of developing. The trick is to use the "Src" attribute of the @Page directive. Check out the link if you are inclined. You are welcome to download the code if you are interested further, found at the same link. (Note that the reason that I looked for a way to do this is because I wanted to have the option to include some VB.NET-based demos at my site. Since my site is a C#.NET ASP.NET, I was told that there was no want to do this. Therefore, I looked for a workaround and just happened to find one.) Enjoy (and then get back to work!) http://www.NetBrainer.com you are right !!!mixing languages could cause unknow and uncontrolled problems !!! if a developer has to mix ....the practical way is to create a new project with different language and what will be absolutely fine !!!thanks mkamoski for raising this issue !!Fadil Alnassar www.fadilalnassar.com | FREE Nodil Tab Controlhttp://www.mefranchisi...

Popup window appears behind opener window in v2.0
I have a web app that contains a button which brings up a popup window when clicked.  It worked just fine in ASP.NET 1.0 (using Studio 2003). But now that I converted my project over to ASP.NET 2.0 (using Studio 2005), my popup window appears, but then immediately hides behind the opener window. The only way I've found to get around this problem is to put "onload=self.focus()" in the BODY tag of the popup window - and even then, if I look closely, I can see the popup window appear, immediately go behind the opener window, and then appear again when the 'onload' got called. Here's my c...

HANDLING THE SEQUENCE OF CODE BEHIND CODE AND CLIENT SIDE SCRIPTING?
In a form on a page I want to save the data values entered into the varieous server controls, such as RadioButtonLists, TextBoxes, etc. before displaying the saved information in a new page suitable for later print. I have a LinkButton on page1.aspx, whose Click event uses the code behind to save the values into a dataset. The LinkButton also has a OnClientClick then execute the JavaScript on page1.aspx, that simply does a window.open of page2.aspx that uses a different Masterpage from Page1 in order to respect the printing requirements. But!!!!!!! The client side script is executed befor...

Open Popup Window and Close the window that Opened it
I'm using some code that I found on this site to open a Popup window with a Button Click for a Crystal Report: Dim PopUpScript As String = "<script language='javascript'>" + "window.open(" & Chr(39) & strExportFile & Chr(39) & ");</script>" Page.ClientScript.RegisterStartupScript(Me.GetType(), "PopUpWindow", PopUpScript, False) After the Popup Window shows the Report I would like to close the window that opened this popup window.  Thanks, Mark just add window.close(); in Dim PopUpScript As String ...

How to disable a Parent window when the Child pop-up window opens in C#.net
My Code: using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Data.SqlClient;public partial class _Default : System.Web.UI.Page {dbUtils dbu = new dbUtils(); //SqlDataAdapter dataAdapter; //DataSet dSet; //SqlCommand cmd; //int value; //string Temp,var;protected void Page_Load(object sender, EventArgs e) {if (Page.IsPostBack == false) { session(); }     }public v...

Calling a sever side code behind sub routine from client side java script
Hi is it possible to call a server side sub routine from client side javascript what I what to do is call a form based email routine from the client, I am hoping that by doing it this way I can disable the button used to call the routine imeadiatly so it's only possible to click it 1 time to prevent the same email being send multiple times, and in addtion start a client routine to indicate the email is underway with some graphic of some sort so the use knows that something is happening, all this is because if the attacment is quite large it takes a little while for the procees to...

Web resources about - How to open a popup window from C# code behind - asp.net.client-side

Window - Wikipedia, the free encyclopedia
This article is about the part of a building. For the Microsoft operating system, see Microsoft Windows . For other uses, see Window (disambiguation) ...

Microsoft Windows Information, Solutions, Tools - Windows IT Pro
Microsoft Windows information and solutions for IT pros. Topics include cloud computing, Windows Server, Exchange, Outlook, PowerShell, virtualization, ...

The Windows Blog
The Windows Blog is Microsoft's Official Blog for the Windows Operating System.

Microsoft Extends Skylake Support On Windows 7 And Windows 8.1
... As part of the announcement, going forward, the latest processors and chipsets would only be supported on the current version of Windows. As ...

Skylake support on Windows 7 and 8.1 given a one year extension
Microsoft announced earlier this year that support for Skylake processors in Windows 7 and 8.1 would be quite limited: compatibility, reliability, ...

Twitter drops TweetDeck for Windows, but Mac version is safe
Even though TweetDeck is one of the most powerful and beloved Twitter clients for Windows, the social network has announced that it will soon ...

Microsoft is trying to change Windows software forever — here’s why it’ll be a tough fight
One of Satya Nadella's biggest initiatives is also his riskiest: The Universal Windows Platform, or UWP , a new way for Microsoft developers ...

Twitter to close the door on its Windows TweetDeck app
TweetDeck users will still be able to use the Web version of the dashboard to manage multiple Twitter accounts.

Windows 10's Edge browser finally gets add-ons
Microsoft yesterday updated its Windows 10 preview, adding support for extensions to the default Edge browser, finally fulfilling a promise it ...

Latest Windows 10 preview brings Edge browser extensions
Microsoft has finally started testing the feature that could make its new Edge browser a real alternative to the likes of Chrome and Firefox: ...

Resources last updated: 3/19/2016 2:10:56 AM