Hi All,
I have an asp page and in asp page there is iframe having HTML page. What i need is to send two values from asp page to inner HTML page. How is it possible.
From stackoverflow
-
You can pass them as query string vars:
<iframe src="page.asp?var1=<%=var1%>&var2=<%=var2%>"></iframe>
David Dorward : `&`! Your vars are not entity names.Anil : Thanks for reply but I have HTML page in the iframe.... SO...Sarfraz : @Anil Kumar: If it is html page how will you process the query string vars? Shouldn't it be asp page too?Anil : @ sAc..Thanks for reply...Yes i know but i it is a HTML template( NEEDED HTML) which brigs dynamic news article. so all the things are going well but i need the article id of asp page to send farward using javascript.Sarfraz : @Anil Kumar: Yes just replace name and extension in my answer in the `src` to html eg `src="pageName.html?var1=<%=var1%>&var2=<%=var2%>"` and you get the vars for url using `Request.QueryString("Name")`Anil : let me check....Anil : Thanks, sAc....Sarfraz : @Anil Kumar: You are welcome :)
0 comments:
Post a Comment