Request.QueryString Problem

  • Thread starter Thread starter franklinbruce
  • Start date Start date
F

franklinbruce

Hi all,
I am passing a value from Javascript to a IFrame. when i tired to
acces that value like request.querystring("id1") it says "name id1 is
not declared"


code as follow:
---------------

javascript code:

function pass_iframe()
{
myval = document.Form1.name1[document.Form1.name1.selectedIndex].value
document.frame2.location.href="new_patient_personal.aspx?id1="
+myval;
}

Asp.net(Code behind is VB.net) code:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Request.QueryString("id1")
End Sub


Thanks in advance
Regards
Frank
 
My first guess would be that you've left the myval variable empty on
accident.
Are you sure the querystring is being posted that you thing is being posted?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top