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?
 
Back
Top