0

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.

1 Answer 1

3

You can pass them as query string vars:

<iframe src="page.asp?var1=<%=var1%>&var2=<%=var2%>"></iframe>
Sign up to request clarification or add additional context in comments.

4 Comments

&amp;! Your vars are not entity names.
@Anil Kumar: If it is html page how will you process the query string vars? Shouldn't it be asp page too?
@ 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.
@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")

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.