Results 1 to 7 of 7

Thread: Online Form using VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2007
    Posts
    2

    Smile Online Form using VB

    Hello,

    I am new to this message board, and I'm having a problem with my form that is fillable online. I have added some fields and I cant seem to get them declared?

    I get this message: Name 'Location_phone' is not declared.

    and I get this error when I pull it up on the internet: BC30451: Name 'location_phone' is not declared.

    Is there anyone who can help me on this?

    Thanks

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Online Form using VB

    Moved from FAQ section
    Last edited by Hack; Sep 11th, 2007 at 10:57 AM.

  3. #3
    Addicted Member
    Join Date
    Feb 2007
    Posts
    131

    Re: Online Form using VB

    You may want to post some of your code where the error is talking about.

  4. #4
    Hyperactive Member Rocketdawg's Avatar
    Join Date
    Feb 2003
    Location
    Back in the doghouse
    Posts
    294

    Re: Online Form using VB

    Sounds like you're using an html input and not an asp:textbox.

    If that's the case, remove name="location_phone" and substitute id="location_phone"

    You will need to add one attribute to the html input control, runat="server"

    If not, post some code.

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Online Form using VB

    It helps if you show the relevant code. Very few of us remain here that are truly psychic.

  6. #6

    Thread Starter
    New Member
    Join Date
    Sep 2007
    Posts
    2

    Re: Online Form using VB

    Hello,

    I have pasted the error message that I'm getting. Not sure if this will help.

    Server Error in '/' Application.
    --------------------------------------------------------------------------------

    Compilation Error
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: BC30451: Name 'location_phone' is not declared.

    Source Error:



    Line 31: Session.Contents("location_state") = location_state.Text
    Line 32: Session.Contents("location_zipcode") = location_zipcode.Text
    Line 33: Session.Contents("location_phone") = location_phone.Text
    Line 34: Session.Contents("description_risk") = description_risk.Text
    Line 35: Session.Contents("prior_losses") = prior_losses.Text


    Source File: D:\inetpub\andersonmurison\commercial\ezquote090707.aspx Line: 33

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Online Form using VB

    Is it in the HTML source view for the page? If you're using VS 2003, is it in the designer generated code?

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