Skip to content

Gridview controls

Raju Verma

Asked Feb 4, 2014, 12:58 AM EST2 answers
Share
LinkedInX
how we view the all values of a perticular row in the next page on click on the view button on the gridview pls provide code
for example when we go on website www.durgajobs.com
Posting Date&Time Job Title Location Position Eligibility Last Date More Information
4thFEB(4PM)
General Electric Across India Software Engineer BE/BTech ASAP Get Details
4thFEB(3PM)
TechMahindra Delhi-Noida Associate/Senior Associate AnyDegree 5/2 Get Details
4thFEB(2PM)
American Express Gurgoan Business Development Executives MBA 5/2 Get Details
  when we click get details the it redirect to next page  and give all information how can we do this pls give me solution for this
 
thanking you

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Biswa Pujarini Mohapatra
    0
    you need to pass the record id on the click of hyperlink

    you can do this by adding hyperlink on gridview. ex

    VB.NET
     <asp:HyperLinkField      DataNavigateUrlFields="NameID"      DataNavigateUrlFormatString="~/details.aspx?nameid={0}"     DataTextField="name"      HeaderText="Client Name"      SortExpression="Name"      ItemStyle-Width="100px"     ItemStyle-Wrap="true" />
    
    
    in details.aspx take the id from query string and show the detail
    0