Show Region & ASP.NET forms

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Show Region & ASP.NET forms

    Using ASP.NET VB. I have a form generated through the insert record wizard. It
    works OK, but I want to prevent users from submitting the form depending on a
    session variable. However if I wrap "show region if data set is empty" around
    all or part of the form i get an error in the browser e.g. Compiler Error
    Message: BC30451: Name 'area_choice' is not declared.

    line 398 is highlighted

    Line 396: <ContentsTemplate>
    Line 397: <p>blah blah blah</p>
    Line 398: <p><% area_choice.SelectedIndex =
    area_choice.Items.IndexOf(area_choice.Items.FindBy Value("")) %>
    Line 399: <asp:dropdownlist id="area_choice"
    Line 400: DataSource="<%# dsTopicAreas.DefaultView %>"

    there's nothing perculiar about area_choice - it's just the first
    asp.dropdownlist in the form

    Geoff


    jefreywith1f Guest

  2. Similar Questions and Discussions

    1. I know we can set max image width, but I need to set itby region. Region A has one max width; Region B another.
      We can already set a maximum image width for use globally, throughout every page. Can we do it by region? This way one region can have a max...
    2. Flash forms don't show in ColdFusion 8
      I am not getting the display of <cfform format="flash" in a new installation of ColdFusion 8 on Windows 2003 server. Is there some setting, extra...
    3. Show region if recordset is not empty
      Hi? How can I make server behavior for this?: If Diet field empty in the food table,Don?t display Diet word in the Page <% If Not Food.EOF...
    4. Flash forms do not show up inside html table
      Will the cf 7.0 Flash forms show up inside a table?? If I surround any flash form with a simple set of table tags (<table><tr><td></td></tr></table>...
    5. ASP.NET C# - Show Region if NOT Empty Value in Field
      Using MS SQL Server 2K; DW MX2004 I have a phone list stored procedure that returns all of the data I need. The problem is that for a lot of...
  3. #2

    Default Re: Show Region & ASP.NET forms

    You would be better to disable the button rather than trying to wrap the
    form.

    Basically what happens in that when a page is called all of the code that is
    part of an onload event, or not defined in a function gets checked.
    --
    Regards

    Paul Whitham
    Macromedia Certified Professional for Dreamweaver MX2004
    Valleybiz Internet Design
    [url]www.valleybiz.net[/url]

    Team Macromedia Volunteer for Ultradev/Dreamweaver MX
    [url]www.macromedia.com/support/forums/team_macromedia[/url]

    "jefreywith1f" <webforumsuser@macromedia.com> wrote in message
    news:d4t04o$mm4$1@forums.macromedia.com...
    > Using ASP.NET VB. I have a form generated through the insert record
    wizard. It
    > works OK, but I want to prevent users from submitting the form depending
    on a
    > session variable. However if I wrap "show region if data set is empty"
    around
    > all or part of the form i get an error in the browser e.g. Compiler Error
    > Message: BC30451: Name 'area_choice' is not declared.
    >
    > line 398 is highlighted
    >
    > Line 396: <ContentsTemplate>
    > Line 397: <p>blah blah blah</p>
    > Line 398: <p><% area_choice.SelectedIndex =
    > area_choice.Items.IndexOf(area_choice.Items.FindBy Value("")) %>
    > Line 399: <asp:dropdownlist id="area_choice"
    > Line 400: DataSource="<%# dsTopicAreas.DefaultView %>"
    >
    > there's nothing perculiar about area_choice - it's just the first
    > asp.dropdownlist in the form
    >
    > Geoff
    >
    >

    Paul Whitham TMM Guest

  4. #3

    Default Re: Show Region & ASP.NET forms

    Many thanks for the advice, Paul

    Geoff
    jefreywith1f Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139