Pop up window

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2009
Posts: 1
Reputation: Anusha Rose is an unknown quantity at this point 
Solved Threads: 0
Anusha Rose Anusha Rose is offline Offline
Newbie Poster

Pop up window

 
0
  #1
Oct 27th, 2009
In my application, When the user clciks a button,some coding wil run, after that a popup window should appear, with a image button and its saved to sql server.

I am using asp.net 2.0

Plz help me
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 35
Reputation: anish.anick is an unknown quantity at this point 
Solved Threads: 3
anish.anick anish.anick is offline Offline
Light Poster
 
0
  #2
Oct 27th, 2009
Hi Anusha,

You can run the code asynchronously using ajax and initiate a ModalPopUp which will pop up with your requirement (image or anything you want) after running the code. Hope this helps.

Thanks
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 439
Reputation: Ramesh S will become famous soon enough Ramesh S will become famous soon enough 
Solved Threads: 82
Ramesh S Ramesh S is offline Offline
Posting Pro in Training
 
0
  #3
Oct 27th, 2009
You can use Page.ClientScript.RegisterStartupScript to open a popup window from ASP.NET code behind. For example

  1. protected void LinkButton1_Click(object sender, EventArgs e)
  2. {
  3.  
  4. //Write some code here
  5.  
  6.  
  7. string url = "TestPage2.aspx";
  8. ClientScript.RegisterStartupScript(this.GetType(), "newWindow", String.Format("<script>window.open('{0}');</script>", url));
  9.  
  10. }
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 205
Reputation: carobee is an unknown quantity at this point 
Solved Threads: 11
carobee carobee is offline Offline
Posting Whiz in Training
 
0
  #4
Oct 28th, 2009
for pop up in asp.net
  1. %>
  2. <SCRIPT LANGUAGE="Javascript">
  3. alert("<% = strMessageToShow %>")
  4. </SCRIPT>
  5. <%
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC