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

  1. #1

    Default Need some advice

    Hi,

    I need to keep a big database in memory for an aspx
    application (a lot of user need access).
    My intention is to use the application state or the cache
    for this purposes.

    Is this a good idea or are there much better solutions? I
    can store it on disk for performance reasons.


    Thanks in advance,
    Ric
    Ric Guest

  2. Similar Questions and Discussions

    1. Advice
      Hello All, I am looking for advice on the purchase of a digital camera. I will be using it primarily for personal photos, and to e-mail shots...
    2. Help and Advice
      Hi, I have a dynamic menu in my Intranet application that loads from a database. What I would like to do is to make parent nodes visible based on...
    3. some advice please
      Hallo, I have to make a web application in Javascript/ASP for tenniscourt reservation (based on Access database). I would like to do everything...
    4. A bit of advice!
      Hi guys, im kinda new to this forum stuff, and i was wondering if anyone could help me out. I'm using 3d Studio Max 5 and Director MX for a...
    5. Need advice
      Hi I am in the process of "beautifying" a web site based on PHP + XTemplate. I wish to include a fixed left navigation bar on almost all the pages....
  3. #2

    Default need some advice

    Hi,

    I come from classic asp and i need some advice for this application.
    It's about a computer reservation system in a school. I want a page where a
    student can see his own made reservations, the number and the date of each
    reservation, and where he can check a checkbox beside each reservations to
    cancel it (or them).
    Those data are in a database. I use aspnet 2.0.

    What i would like is a table with four cells (one for each field + one for a
    chekbox).

    I tried different things, like creating a table in test.aspx file and then
    adding rows in test.aspx.vb file, like this:
    (in test.aspx file)
    <asp:Table id="Table1" runat="server"/>
    ....

    (in test.aspx.vb)
    sql = "select ... "
    ....
    dtreader = comd.ExecuteReader
    ....
    For j = 0 To numberofrec - 1
    dtreader.Read()
    r = New TableRow()
    For i = 0 To numberoffield - 1
    c = New TableCell()
    f = dtreader.GetValue(i)
    c.Text() = f
    r.Cells.Add(c)
    Next i
    table1.Rows.Add(r)
    Next j

    This works, but it's only showing the reservations.
    My idea was now to create each row a checkbox with as ID the reservation
    number, and then in test.aspx and in JavaScript, posting a form to a file
    that delete the checked records.
    But if i do (in test.aspx.vb):
    ch = new checkbox
    page.controls.add(ch)
    i get :"The Controls collection cannot be modified because the control
    contains code blocks (i.e. <% ... %>). "
    And how to put the checkbox into the fourth cell?


    So is there a better approach for this? What should be in test.aspx and what
    in test.aspx.vb?
    I did it with classic asp (with javascript). An solution would be to put the
    whole asp file in test.aspx and drop test.aspx.vb, but then why is aspnet
    good for?

    Thanks for any advices.
    Ben


    Ben Guest

  4. #3

    Default Re: need some advice

    It would be better to read a quick-start tutorial. There are some
    concepts that have changed in asp.net. You should check them.Any other
    suggestion would most probably confuse you.

    [url]http://www.asp.net/QuickStart/aspnet/Default.aspx[/url]

    Tasos

    Tasos Vogiatzoglou Guest

Posting Permissions

  • You may not post new threads
  • You may not 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