Click here to Skip to main content
15,908,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
How to send single query string value into two or multi page at same time?

The scenario that I have done is this.
I have 3 pages
first page:Default page: in this page which is contain of a gridview, i want that when click on one of the grid view listed data the id of this page wich is Elan_id should be send to another two page like( adverdetails.aspx) and **(finaltest.aspx).**
I have done something like this but its not working.

<asp:HyperLink ID="HyperLinkshowtitle" style="font-weight:bolder;" NavigateUrl='<%# ("~/gen_Adver_Details.aspx?gid=" + Eval("Elan_id") + "~/final_test.aspx?gid=" + Eval("Elan_id"))  %>' runat="server" Text='<%# Eval("Title_dari") %>'></asp:HyperLink>

please if its posible give complete guid with an example
Posted
Updated 15-Nov-15 6:52am
v2
Comments
[no name] 15-Nov-15 12:24pm    
Do you want that on click hyperlink it will redirect to two pages or you want to open two pages in browser? If it is yes then it is not proper way to redirect two pages at time. If I am wrong please explain.
Eng.Mukhtar ahmad osmani 17-Nov-15 22:03pm    
in this program i have three pages:
Default.aspx: which is use to show list of information according to our searching in a gridview.
gen_Adver_Details.aspx: is use to show details of the selected information in the from gridview.
final_test.aspx: is contains of google map which is use to show current address of the website user and specified address from the girdview which is in the database which is contain of a field for the specified address google map latitude and longtitude.

the hyperlink is locate in default.aspx, that is the main page. so the exact senraio is like this, i want that when i search in the defalul page and click on one of the list item in gridview, that hyprelink should send (Elan_id) field to the gen_Adver_Details.aspx for showing details and also send the same column (Elan_id") to the final_test.aspx, which is use to select the google map latitude and longtitude of that user from database.Because final_test.aspx is shown as a ifrme in the gen_Adver_Details.aspx. os in this case i want to send single query string value into two or multi page at same time.I request you all, that if its possible give me details as much is possible. Thanks in advance
Sinisa Hajnal 16-Nov-15 2:36am    
What are you trying to do? Why would you need to send to two pages?
One way is to redirect through javascript, but I'd like to know what are you trying to do and why before commiting
Eng.Mukhtar ahmad osmani 17-Nov-15 22:03pm    
in this program i have three pages:
Default.aspx: which is use to show list of information according to our searching in a gridview.
gen_Adver_Details.aspx: is use to show details of the selected information in the from gridview.
final_test.aspx: is contains of google map which is use to show current address of the website user and specified address from the girdview which is in the database which is contain of a field for the specified address google map latitude and longtitude.

the hyperlink is locate in default.aspx, that is the main page. so the exact senraio is like this, i want that when i search in the defalul page and click on one of the list item in gridview, that hyprelink should send (Elan_id) field to the gen_Adver_Details.aspx for showing details and also send the same column (Elan_id") to the final_test.aspx, which is use to select the google map latitude and longtitude of that user from database.Because final_test.aspx is shown as a ifrme in the gen_Adver_Details.aspx. os in this case i want to send single query string value into two or multi page at same time.I request you all, that if its possible give me details as much is possible. Thanks in advance
Eng.Mukhtar ahmad osmani 17-Nov-15 21:47pm    
in this program i have three pages:
Default.aspx: which is use to show list of information according to our searching in a gridview.
gen_Adver_Details.aspx: is use to show details of the selected information in the from gridview.
final_test.aspx: is contains of google map which is use to show current address of the website user and specified address from the girdview which is in the database which is contain of a field for the specified address google map latitude and longtitude.

the hyperlink is locate in default.aspx, that is the main page. so the exact senraio is like this, i want that when i search in the defalul page and click on one of the list item in gridview, that hyprelink should send (Elan_id) field to the gen_Adver_Details.aspx for showing details and also send the same column (Elan_id") to the final_test.aspx, which is use to select the google map latitude and longtitude of that user from database.Because final_test.aspx is shown as a ifrme in the gen_Adver_Details.aspx. os in this case i want to send single query string value into two or multi page at same time.I request you all, that if its possible give me details as much is possible. Thanks in advance

1 solution

My solution would be simply to pass the parameter through Session object.

But you can:
- use one of the persistant objects (session, viewbag, etc)
- use javascript / jQuery to add src attribute to placeholder iframe, when your second page loads just add src to iframe
- use literal control[^]
- change the design, instead of iframe, inject the content of the page to div in the same page (this is finicky and I wouldn't do it this way without very good reason)
 
Share this answer
 

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