Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Request.QueryString Problem

Reply
Thread Tools

Request.QueryString Problem

 
 
franklinbruce
Guest
Posts: n/a
 
      01-12-2005
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_persona l.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
 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      01-12-2005
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?

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


"franklinbruce" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> 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_persona l.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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem problem problem :( Need Help Mike ASP General 2 05-11-2004 08:36 AM



Advertisments