Click here to Skip to main content
Licence 
First Posted 28 Jun 2006
Views 11,726
Bookmarked 12 times

Passing data to popup window

By | 28 Jun 2006 | Article
Passing data to popup window without postback

Introduction

The article/code useful to pass data from webpage's codebehind to popup window.it is more interactive and it should happen without postback also. 

Using the code

In a source webpage Fromwhich we are going to pass a data to popuForm.aspx,The following example code are used in datagrid_itemcommand event to pass binded data in datagrid while clicking a linkbutton control which also be contained in datagrid.

Dim strScript As String = "popupForm.aspx?Id=" & e.Item.Cells(0).Text
 strScript = "WindowOpen('" & strScript & "',800,300);"
 Page.RegisterStartupScript("Email", "<script> & strScript & </script><script>" & strScript & "</script>")

Now,In the Page_load event of popupForm.aspx we can get the Id value what we passed from source webpage.

Dim getId as integer = Request.QueryString("Id")

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

DuraiMurugan T

Web Developer

India India

Member

T.DuraiMurugan is a Software Engineer in Karnataka, India. Durai has designed and developed Microsoft Web and Windows solutions since 2003. His expertise lies in developing scalable, high-performance applications with Microsoft Enterprise Server Products in .NET technology .His core skills are ADO.NET, ASP.NET, C#, VB.NET, Web Services, XML and SQL Server.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralHelp with Single sign on Pinmemberlasertracs21:31 20 Jul '08  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120517.1 | Last Updated 28 Jun 2006
Article Copyright 2006 by DuraiMurugan T
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid