If anyone can help - wwwroot.zip (0/1)

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default If anyone can help - wwwroot.zip (0/1)

    I built a database and asp display to be used in an intranet
    enviroment.

    All work well except one problem

    The main list has an edit link next to each person in the db.
    Each person has 6 check boxex being displayed representing products
    they have used.

    the problem is

    when you go to edit a user, the checked boxes do not carry over to the
    edit page. All of the boxes are unchecked, and you have to check them
    again in addition to any other changes you are making.

    I would like the data to carry over.

    I have attached all the components in a zip file that im running in
    IIS.

    The problem I believes is rooted in a "getdata" string of code.

    The main page is titled CLEARPORT_USERS_list

    The edit page is titled CLEARPORT_USERS_edit

    There is also a page in a folder called "include" titled
    CLEARPORT_USERS_aspfunctions

    One of these pages is the culprit im sure.


    The code that I added to get the check boxes to display on the main
    page is as follows It was added to the CLEARPORT_USERS_aspfunctions



    ' long binary data?
    if (Field.Attributes and 128) and ( Field.Type = 204 or Field.Type =
    205 ) then
    GetData = "LONG BINARY DATA - CANNOT BE DISPLAYED"
    else
    if Field.Type <> 205 then
    if Field.Type=19 then
    GetData = CInt(Field.Value)
    else
    if Field.Type=11 then
    GetData = "<input type=""Checkbox""
    disabled name=""" & Field.Name & """"
    if
    Trim(CStr(Field.Value))="True" then
    GetData = GetData & "
    checked "
    End If
    GetData = GetData & ">"
    else
    GetData = Field.Value
    end if
    end if
    end if

    If anyone could help on this I would be greatful. Been trying to
    figure it out for days now.
    TIA

    GG


    Bill Carson Guest

  2. Similar Questions and Discussions

    1. Hosting from wwwroot under CFusionMX7
      Even though I have our servers using IIS 6.0 (inetpub/wwwroot) I'm able to put files into the CFusionMX7/wwwroot folder and they will server out. ...
    2. temp\wwwroot-tmp
      How long are these neotmp files supposed to be in C:\CFusionMX\runtime\servers\default\SERVER-INF\temp\wwwroot-tmp ? This folder is taking up 5...
    3. Any way to not have to put your site inside wwwroot?
      Guys: This is the LAST place I want to keep my site files. Using ASP, I can just point the testing folder into the local root folder wherever it...
    4. CF MX7 won't map to existing wwwroot
      CF MX7 appears to be running fine. But the CF applications that I had running in my IIS wwwroot directory won't work. When I try to run a very...
    5. d:\inetpub\wwwroot\
      When creating a web service using .net the folders inetput\wwwroot is created. If you need to move an existing web service on another machine...
  3. #2

    Default If anyone can help - wwwroot.zip (0/1)

    I built a database and asp display to be used in an intranet
    enviroment.

    All work well except one problem

    The main list has an edit link next to each person in the db.
    Each person has 6 check boxex being displayed representing products
    they have used.

    the problem is

    when you go to edit a user, the checked boxes do not carry over to the
    edit page. All of the boxes are unchecked, and you have to check them
    again in addition to any other changes you are making.

    I would like the data to carry over.

    I have attached all the components in a zip file that im running in
    IIS.

    The problem I believes is rooted in a "getdata" string of code.

    The main page is titled CLEARPORT_USERS_list

    The edit page is titled CLEARPORT_USERS_edit

    There is also a page in a folder called "include" titled
    CLEARPORT_USERS_aspfunctions

    One of these pages is the culprit im sure.


    The code that I added to get the check boxes to display on the main
    page is as follows It was added to the CLEARPORT_USERS_aspfunctions



    ' long binary data?
    if (Field.Attributes and 128) and ( Field.Type = 204 or Field.Type =
    205 ) then
    GetData = "LONG BINARY DATA - CANNOT BE DISPLAYED"
    else
    if Field.Type <> 205 then
    if Field.Type=19 then
    GetData = CInt(Field.Value)
    else
    if Field.Type=11 then
    GetData = "<input type=""Checkbox""
    disabled name=""" & Field.Name & """"
    if
    Trim(CStr(Field.Value))="True" then
    GetData = GetData & "
    checked "
    End If
    GetData = GetData & ">"
    else
    GetData = Field.Value
    end if
    end if
    end if

    If anyone could help on this I would be greatful. Been trying to
    figure it out for days now.
    TIA

    GG


    Bill Carson Guest

  4. #3

    Default Re: If anyone can help - wwwroot.zip (0/1)

    On Thu, 13 May 2004 18:43:02 -0400, Bill Carson
    <bcarson@goforgold.net> wrote:
    >The main list has an edit link next to each person in the db.
    >Each person has 6 check boxex being displayed representing products
    >they have used.
    >
    >the problem is
    >
    >when you go to edit a user, the checked boxes do not carry over to the
    >edit page. All of the boxes are unchecked, and you have to check them
    >again in addition to any other changes you are making.
    >
    >I would like the data to carry over.
    Not really a database problem, you need to pass the state of the check
    marks to the next page in either a query string or session variables.
    If you post a snippet of your form and the ACTION page to the general
    ASP group you'll get a good solution for passing the information
    between pages.

    Jeff
    Jeff Cochran 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