PC Review


Reply
Thread Tools Rate Thread

Datasource to use Querystring AND Form

 
 
Larry Bud
Guest
Posts: n/a
 
      26th Jan 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
 
      26th Jan 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
 
      29th Jan 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
Rate This Thread
Rate This Thread:

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
DataSource in form of Object Tony Johansson Microsoft C# .NET 1 27th Aug 2008 12:13 PM
Decode QueryString and redirect to new form Nirmal Singh Microsoft ASP .NET 5 10th Oct 2006 11:19 AM
HttpRequest[] : priority of cookies, form, querystring collections. ken.prat@gmail.com Microsoft ASP .NET 1 10th Nov 2005 11:07 PM
UDF as Form Datasource? Alan Z. Scharf Microsoft Access ADP SQL Server 0 17th Aug 2004 08:00 PM
Outlook Form : Excel Web component in form using access Datasource dave Microsoft Outlook Form Programming 1 22nd Jul 2004 12:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:16 PM.