SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jan 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    passing value from Third party to ASP

    Hello Folks, How are you all? I have an issue with Contract Date field, when I write date value through third party project to web-form its working fine as using code below:


    Code:
    IE.Document.Forms.Form1.ctl00_ContentPlaceHolder1_dtContractDate_dateInput_text.Value = txtConDate.Text
    But unfortunately Web-form still not see the date value i send to it and error message popps as "Please enter value" while the date value is exist in contract Date field (webform). But for sure will not have this error if entered date directly to ASP form. Please is there any other way to pass date from third party to ASP web-form? appreciated your help inadvance... Thank you

  2. #2
    SitePoint Wizard siteguru's Avatar
    Join Date
    Oct 2002
    Location
    Scotland
    Posts
    3,631
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Data is passed either in a form header (form method="POST") or in the URL (form method="GET"). The data is retrieved in ASP by:

    varDate=Request.Form("DateItem") 'method="POST"

    varDate=Request.Querystring("DateItem") 'method="GET"

    Code:
    <form>
    <input name="DateItem">
    </form>
    Ian Anderson
    www.siteguru.co.uk


Bookmarks

Posting Permissions

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