473,320 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 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 1164
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Erwin Gabler | last post by:
Trying to validate a document with a reference to a DTD ("PUBLIC" identifier): <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE systems-description PUBLIC "-//foo/nono" ""> .... The DTD uses...
1
by: TC | last post by:
Anyone know what this means Parser Error Message: Error loading XML file E:\Inetpub\wwwroot\web.config Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks. Parameter name:...
1
by: Bill Nguyen | last post by:
Report source is an SQLSERVER 2K store procedure. VB.NET application. Report created by CR 8.5. At runtime, I still had to click "CANCEL" to bypass the parameter prompts before the report display...
0
by: Helen | last post by:
Hi, I have a crystal report version 9 in vb .net 2002, am calling the parameters at runtime and not using the crystal parameter box. I get results by hard coding the discrete values But, I really...
3
by: Arnold | last post by:
I am having problem loading the image from the database. It gives this error: "Invalid parameter used." This is my source code: Private abyt() As Byte Private fo As New OpenFileDialog Private sf...
1
by: Stanley Cheung | last post by:
Dear all, how can I pass a parameter to dynamic user control? As I know we can pass parameter into traditional user control. e.g: add pageid into user control and write a property from user...
1
by: Joe Monnin | last post by:
I have a web service that takes an XmlDocument as a parameter, performs some processing on it, and saves it to a database. The web service signature looks similar to this: public void...
0
by: lrobo01 | last post by:
I'm having a problem with Crystal report.net with ASP.NET. The problem occurs when exporting the report. The report uses a discrete parameter with multiple values. When the report is loaded into...
0
by: lrobo01 | last post by:
I'm having a problem with Crystal report.net with ASP.NET. The problem occurs when exporting the report. The report uses a discrete parameter with multiple values. When the report is loaded into...
20
by: exipnakias | last post by:
Hello Guys. In a form I created a listbox which looks up the values of a table. I want: 1) ..to create a query where a parameter will be needed in order to be loaded. But I do not want to...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.