SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2007
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Showing Records in table but hyperlink n transfer to other page+asp.net

    i m developing website in asp.net n page name is 1.aspx i want to show records in table form but my requirement is that it should be hyperlink username when ever visitor clicks on that.next page will come n the username passed to another page
    <td><%#Container.DataItem("user_name")%> </td>

  2. #2
    SitePoint Guru Jason__C's Avatar
    Join Date
    Oct 2009
    Location
    Racoon City
    Posts
    660
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I would store the UN and PW in a Session object, and pass it to the next page. Where you would grab it from Session and add it to the table like you showed above.

  3. #3
    SitePoint Mentor NightStalker-DNS's Avatar
    Join Date
    Jul 2004
    Location
    Cape Town, South Africa
    Posts
    2,878
    Mentioned
    46 Post(s)
    Tagged
    0 Thread(s)
    I would use a GridView control with a Hyperlink column type. Then link it with a querystring

    "nextpage.aspx?id=1" or "nextpage.aspx?username=" + Server.UrlEncode("username")

  4. #4
    SitePoint Enthusiast
    Join Date
    Feb 2007
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Its better to use grid or table to show records plz provide coplete code for hyperlink <a href of asp.net m confused

  5. #5
    SitePoint Mentor NightStalker-DNS's Avatar
    Join Date
    Jul 2004
    Location
    Cape Town, South Africa
    Posts
    2,878
    Mentioned
    46 Post(s)
    Tagged
    0 Thread(s)
    Gridview generates a table. Google asp.net gridview and you will find all the code you need


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
  •