473,325 Members | 2,805 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,325 software developers and data experts.

Datasource to use Querystring AND Form

I've got a page with a simple search form for a Part #. User enters a
partial part #, click Submit, datagrid does it's thing and displays
part #s that match the search. The datasource that is used uses a
Parameter coming from the Form object.

All is well and good.

Have another page that lists a BOM (Bill of Materials) which obviously
contains part #s, and I want to link from Page #2 back to the search
page, passing it a part #, and having it do a lookup for that part, as
if that part # was entered into the search form and the user pressed
the Submit button.

I'm stumped as how to "fool" .NET into thinking the user did this.

Jan 26 '07 #1
2 1268
Page 1: Part Search
Page 2: Bill of materials (Multiple parts, with links to Page 1)

Why aren't you simply passing the part # as a query string, then calling the
functionality handled by the Submit button click during the Page_Load event?
You don't need to force a submit.

"Larry Bud" wrote:
I've got a page with a simple search form for a Part #. User enters a
partial part #, click Submit, datagrid does it's thing and displays
part #s that match the search. The datasource that is used uses a
Parameter coming from the Form object.

All is well and good.

Have another page that lists a BOM (Bill of Materials) which obviously
contains part #s, and I want to link from Page #2 back to the search
page, passing it a part #, and having it do a lookup for that part, as
if that part # was entered into the search form and the user pressed
the Submit button.

I'm stumped as how to "fool" .NET into thinking the user did this.

Jan 26 '07 #2


On Jan 26, 4:12 pm, Keith <K...@discussions.microsoft.comwrote:
Page 1: Part Search
Page 2: Bill of materials (Multiple parts, with links to Page 1)

Why aren't you simply passing the part # as a query string, then calling the
functionality handled by the Submit button click during the Page_Load event?
You don't need to force a submit.
There are additional parameters, such as in a drop down, that can be
selected in the Part Search page (they're optional). So when a user
is in the BOM and selects a part #, it needs to do the Search function
on the part search page since multiple rows can be returned.

But I didn't even think of passing the form as a GET instead of a
POST.

Jan 29 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Deepiceman | last post by:
Hi all, I am new to asp so bear with me. I want to write a page which will load a default page for me with some links and all. lets say someone clicks on the link, which not only points to the...
4
by: Raterus | last post by:
Howdy, Simple question, but I can't figure out how to do it. I have a a page which is called initially with a querystring. After I get the querystring values, I don't need the querystring to...
6
by: Joe | last post by:
Hello All: I have a webform (WebForm1.aspx) that retrieves a value from a database (_formSessionId) the first time that it is posted. After the user filles in the form, he/she clicks a Button...
1
by: sck10 | last post by:
Hello, I have a GridView that has AutoGenerateSelectButton="true". When the "Select" link is clicked, it opens a FormView with the appropriate data. Below is the following SelectParameter that...
4
by: Monty | last post by:
Hi there, From one page, I have created a dropdown list of employees. When an employee is selected, I would like another page to open, based upon the employee. Here is my question... How do I...
1
by: Jim McGivney | last post by:
When configuring a DataSource for a control in VS'05, when formulating the WHERE clause, one of the options is to use a Query String to supply the parameters. Is this the Query String that is used...
6
by: Simon Gare | last post by:
Hi all, is there anyway of separating a string by either a space or + sign, I have an sms.asp page that receives a string in this format below ...
0
by: bharathreddy | last post by:
Here I will given an example on how to access the session, application and querystring variables in an .cs class file. Using System.Web.HttpContext class. 1) For accesing session variables :...
1
by: bogorman | last post by:
I am using the following coding: Dim strWordDocFile As System.String = Me.txtLetter.Text Dim WordDocFile As New System.IO.FileInfo(strWordDocFile) Dim Msg As String Dim...
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
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
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: 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.