asp.net - Link to a New .aspx Page from Selected Database Entry by User -


i working on website using c# in asp.net , have page contains grid-view displays contents of 1 of tables in database. fields generic name, description, rating, ect. question how make when 1 of entries clicked, links new .aspx page has information displayed in nice format? example of talking can found @ http://www.imdb.com/chart/top?ref_=nv_ch_250_4.

from research have found little in way of answer, due inability ask question correctly. assume not suppose physically create new page every new entry, because crazy if have lots of database entries coming in. should there 1 page created auto-populates required fields based on specific values passed database entry selected, or when user inserts new entry database should create new .aspx page? question has had me stuck quite time, appreciate direction can provide!

create simple hyperlink rows of grid, url of hyperlink should contain reference item id or name. when link clicked passing id second page in querystring. in second page read id(request.querystring) , display details accordingly. > making hyperlink : 1 way it. add itemtemplate column in grid.

          <columns>              <asp:templatefield >                  <itemtemplate>                        <a href="products.aspx?id=<%# eval("id") %>"> view details </a>                  </itemtemplate>              </asp:templatefield>           </columns> 

Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -