Results 1 to 3 of 3

Thread: posting form data to another web file.

  1. #1

    Thread Starter
    Registered User
    Join Date
    Jul 2002
    Posts
    80

    Question posting form data to another web file.

    Is there a way I can post data to a different form. I can do it with the code below. But, I don't want to hard code yr=2002 in my url. This HyperLink web control is in a server-side form. I'm use to using classic asp and can't figure out how to post data to another web file without the form posting back to itself. Please help.

    <asp:HyperLink id="HyperLink2" runat="server" NavigateUrl="http://10.10.13.56/CostTool/EditEst.aspx?yr=2002" Font-Size="XX-Small">02</asp:HyperLink>

    James

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    In your .vb file you can change the hyperlink for that hyperlink using code like this:

    VB Code:
    1. strYear = "2003"
    2. Hyperlink2.NavigateURL = "http://10.10.13.56/CostTool/EditEst.aspx?yr=" & strYear

    Hope this helps,

  3. #3
    Hyperactive Member
    Join Date
    Dec 2001
    Location
    Dublin, Ireland
    Posts
    262
    If you want to post a form to another page then use the html version of form and specifiy the page in the action attribute.
    You will not lose any functionality. Remember asp.net only renders proper html so it does not do anything you can't do with html and javascript yourself if you have the time.

Posting Permissions

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



Click Here to Expand Forum to Full Width