Maybe the pro's can help me!

Results 1 to 3 of 3

Thread: Maybe the pro's can help me!

  1. #1
    Join Date
    Dec 1969

    Default Maybe the pro's can help me!

    Hello ! ASP developers<BR>Since i&#039m New in ASP and i have made an SQL query...if i want the results to be place in a textbox what would be the instruction in the .asp page...i think its something like that :<BR><BR>&#060;input type=text...value=&#060;%theresultofmyquery%&#062; &#062;<BR>but what is the real thing ???<BR><BR>i&#039ve also have one more question<BR>What is the big difference between <BR><BR>Request.Form(" ") and Request.QueryString(" ")<BR>can somebody explain to me

  2. #2
    Jason Cochran Guest

    Default RE: Maybe the pro's can help me!

    If you are populating the text boxes with data from a database then use:<BR><BR>&#060;input type = "text" name = "somename" value = "&#060;%Response.Write(rst("fieldname"))%&#062;"&# 062;<BR><BR>The difference between Request.Form and Request.Querystring:<BR><BR>Request.Form retrieves data from the Request object&#039s Form collection. This data is sent to the server in the HTTP header of the client browser&#039s submission. It is hidden from view, unlike the Request.Querystring method. If you use Request.Querystring, such as when you use the GET method on a form, the data sent to the server is included in the URL and can be seen by all:<BR><BR>

  3. #3
    Ashish Mishra Guest

    Default RE: Maybe the pro's can help me!

    Well, just an addition to what jason said, take care not to use request.querystring while using method=post or vice versa, it will create hell lot of trouble, I had spent a day just to figure out this problem in my initial days.

Posting Permissions

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