Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2004
    Thanked 0 Times in 0 Posts

    Using the Request.Form method in asp.net

    I have a page that has one textbox to enter keywords in a search and two dropdown list boxes each called product_id and supplier_id and the textbox is called txtKeywords, my form also has a submit button named btnSubmit. I have attached a custom validator that ensures that some text has been entered in the textbox txtKeywords or at least one of the values of the dropdown list boxes has been selected. If the validation is a success the btnSubmit event procedure is fired in my asp.net code. The event procedure redirects the user to another page called search_results.aspx, which tries to read in the values either from the txtKeyword textbox or the dropdown list boxes using the Request.Form method on page load, here is a sample of my code

    Page_Load(ByVal sender As System.Object,ByVal object System.EventArgs)


    }//end of page load

    this is all done in the page load event of the search_result.aspx page but for some reason the page doesn't display anything when rendered. Could someone let me know where I have gone wrong!
    Thanks Bob.

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Between DC and Baltimore In a Cave
    Thanked 94 Times in 88 Posts
    First off are you using get or post? You should be using get.

    that is my first thought on what could be wrong
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts