471,073 Members | 1,359 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,073 software developers and data experts.

parameter loading

My first page of the asp.net project is a html page that has frame and
for some reason I am unable to get the parameter that is being sent in
via the url.

The link that I have defined in my project as start url is:

http://localhost/MDN0100/index.htm?store=5000

Then in the index.htm page I have the following line that references
the page to load for a frame:

<frame name="banner"
src="top.aspx?store="'<%=request.param("store")%>' scrolling="no"
noresize>

Then in my code behind for top.aspx I have the following which always
returns 'sn' as an empty string:

Dim sn As String = Request.Params.Get("store")
Label1.Text = "Store Information (Store #" + sn + ")"

If I change the frame scr to be as follows, then it works fine.
<frame name="banner" src="top.aspx?store=5000" scrolling="no"
noresize>

I have tried every variation of request.* that I could think of but
nothing seems to work.

Anyone have any suggestions?

Thanks.
Jul 21 '05 #1
1 1095
On 25 Nov 2003 13:14:30 -0800, tomjones wrote:
My first page of the asp.net project is a html page that has frame and
for some reason I am unable to get the parameter that is being sent in
via the url.

The link that I have defined in my project as start url is:

http://localhost/MDN0100/index.htm?store=5000

Then in the index.htm page I have the following line that references
the page to load for a frame:

<frame name="banner"
src="top.aspx?store="'<%=request.param("store")%>' scrolling="no"
noresize>

Then in my code behind for top.aspx I have the following which always
returns 'sn' as an empty string:

Dim sn As String = Request.Params.Get("store")
Label1.Text = "Store Information (Store #" + sn + ")"

If I change the frame scr to be as follows, then it works fine.
<frame name="banner" src="top.aspx?store=5000" scrolling="no"
noresize>

I have tried every variation of request.* that I could think of but
nothing seems to work.

Anyone have any suggestions?

Thanks.


Just use Request("paramName")
BTW - you wrote Request.Param and nor Request.Params maybe that's your
problem
--
Roy Osherove
weblog: http://www.iserializable.com
Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Erwin Gabler | last post: by
1 post views Thread by Stanley Cheung | last post: by
1 post views Thread by Joe Monnin | last post: by
reply views Thread by lrobo01 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.