Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Datasource to use Querystring AND Form

Reply
Thread Tools

Datasource to use Querystring AND Form

 
 
Larry Bud
Guest
Posts: n/a
 
      01-26-2007
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.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?S2VpdGg=?=
Guest
Posts: n/a
 
      01-26-2007
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.
>
>

 
Reply With Quote
 
 
 
 
Larry Bud
Guest
Posts: n/a
 
      01-29-2007


On Jan 26, 4:12 pm, Keith <K...@discussions.microsoft.com> wrote:
> 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.

 
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
tomcat datasource realm and form based authentication kenp21@gmail.com Java 3 05-01-2006 02:53 PM
How to get value of QueryString inside QueryString Mehdi ASP .Net 6 04-06-2006 03:41 PM
Passing QueryString URL as a paremeter in QueryString Adeel Ahmad ASP General 1 03-07-2006 02:05 PM
Request.QueryString() and/or Request.Form() George ASP .Net 5 04-02-2004 08:46 PM
Re: Servlets and form posts/querystring John C. Bollinger Java 4 07-01-2003 07:51 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57