Click here to Skip to main content
15,901,205 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
open popup window and pass value to pop window on click of view button in Repeater
Posted
Comments
bbirajdar 31-Aug-12 2:56am    
Use window.open with querystring
sp1786 31-Aug-12 3:05am    
i tried that approach but popup did not open.. i used eval to pass the required value in query string..
Vipul J Patel 31-Aug-12 2:58am    
Will you provide more input so i can give you the right solution...? i am waiting...

My Question is

1) how to display the popup window..? using Javascript/Jquery/Ajax.. Please Explain.
bbirajdar 31-Aug-12 3:02am    
Are you the same person who has posted the question? Why are you using two accounts ?And are you going to post the solution too and asking the question also ?

1 solution

Hi,

Although you have not post code along with your question but please have a look at my solution. that may give you hint.

For passing value from one page to another there are possible ways. like QueryString/Cookies/Page.PreviousPage/Session. But in your case i suggest you to go for the QueryString. pass the value from the URL.

As people says do not post the similar question multiple times. You should follow the instruction given by your seniors. Anyway you have more life to learn. but try to learn from not only your mistakes but from other mistakes too.

Best Luck, and don't keep posting similar questions please.
Thanks
-Amit Gajjar
 
Share this answer
 
Comments
sp1786 31-Aug-12 3:50am    
This is what i do...
In repeater item template i write

href="javascript:ShowPopup(<%# Eval("RegisterationNo") %>)">Report

and i write a javascript function;
<script type="text/javascript">

function ShowPopup(id) {

window.open('ReportPage.aspx?Value=' + id, "Report", "scrollbars=no,resizable=no,width=400,height=280");

}

</script>

I get Uncaught ReferenceError: Reg0079 is not defined

here Reg0079 is the id fetched from database .. this value is in string format..
AmitGajjar 31-Aug-12 3:54am    
try to debug your application and check from where you are getting this error. i think your ReportPage.aspx is executed but error comes from there.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900