DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    rkbnair Guest

    Table in ASP page


    I have created an asp with table in it. Using the recordset I have populated
    the table also. Now, when I click on a row, I need certain session variable
    to be assigned with the clicked cell value.

    So, should I use the querystring or form submit method for this. Also, how
    can I write the script in the table definition?

    Thanks,
    RK.


  2. #2
    Ali Imran Guest

    Re: Table in ASP page


    I think you can use Cookies to store the values rather then Session. That
    Will be much better.



    "rkbnair" <rkannale@solus1.oceaneering.com> wrote:
    >
    >I have created an asp with table in it. Using the recordset I have populated
    >the table also. Now, when I click on a row, I need certain session variable
    >to be assigned with the clicked cell value.
    >
    >So, should I use the querystring or form submit method for this. Also, how
    >can I write the script in the table definition?
    >
    >Thanks,
    >RK.
    >



  3. #3
    Sachin Guest

    Re: Table in ASP page

    Put the some column of that cell in HREF & code in HREFs onClick event
    TIA
    Sachin
    "rkbnair" <rkannale@solus1.oceaneering.com> wrote in message
    news:3b4f6663$1@news.devx.com...
    >
    > I have created an asp with table in it. Using the recordset I have

    populated
    > the table also. Now, when I click on a row, I need certain session

    variable
    > to be assigned with the clicked cell value.
    >
    > So, should I use the querystring or form submit method for this. Also, how
    > can I write the script in the table definition?
    >
    > Thanks,
    > RK.
    >




  4. #4
    rkbnair Guest

    Re: Table in ASP page


    Sachin, Could you explain it a little bit more.
    I have created the table rows using the following syntax. What I need is
    when the user clock on this row or column, the post/querystring should be
    able to give me the row ID and thus I can assign this to a session variable.

    Thanks.

    response.write "<td href=" & chr(34) & "DataBrowse.asp?MyVariable1=MyValue1"
    & chr(34) & ">" & field.value & "</td>"

    "Sachin" <sachin.nigam@orbit-e.com> wrote:
    >Put the some column of that cell in HREF & code in HREFs onClick event
    >TIA
    >Sachin
    >"rkbnair" <rkannale@solus1.oceaneering.com> wrote in message
    >news:3b4f6663$1@news.devx.com...
    >>
    >> I have created an asp with table in it. Using the recordset I have

    >populated
    >> the table also. Now, when I click on a row, I need certain session

    >variable
    >> to be assigned with the clicked cell value.
    >>
    >> So, should I use the querystring or form submit method for this. Also,

    how
    >> can I write the script in the table definition?
    >>
    >> Thanks,
    >> RK.
    >>

    >
    >



  5. #5
    Sachin Guest

    Re: Table in ASP page

    Do something like this:-
    Response.Write "<td><a href='whatever'>Some Text </a></td>"
    TIA
    Sachin
    "rkbnair" <rkannale@solus1.oceaneering.com> wrote in message
    news:3b52f381$1@news.devx.com...
    >
    > Sachin, Could you explain it a little bit more.
    > I have created the table rows using the following syntax. What I need is
    > when the user clock on this row or column, the post/querystring should be
    > able to give me the row ID and thus I can assign this to a session

    variable.
    >
    > Thanks.
    >
    > response.write "<td href=" & chr(34) &

    "DataBrowse.asp?MyVariable1=MyValue1"
    > & chr(34) & ">" & field.value & "</td>"
    >
    > "Sachin" <sachin.nigam@orbit-e.com> wrote:
    > >Put the some column of that cell in HREF & code in HREFs onClick event
    > >TIA
    > >Sachin
    > >"rkbnair" <rkannale@solus1.oceaneering.com> wrote in message
    > >news:3b4f6663$1@news.devx.com...
    > >>
    > >> I have created an asp with table in it. Using the recordset I have

    > >populated
    > >> the table also. Now, when I click on a row, I need certain session

    > >variable
    > >> to be assigned with the clicked cell value.
    > >>
    > >> So, should I use the querystring or form submit method for this. Also,

    > how
    > >> can I write the script in the table definition?
    > >>
    > >> Thanks,
    > >> RK.
    > >>

    > >
    > >

    >




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links