some help here..
I have a gridview, at my home page, binded to a dataset. On the first column is a hyperlink, on which, if click it will go to another, page, Viewer Page, and passes the data to display on the other page
Here is my code... i have taken a page called image.aspx in that the following is the source code (which consists of a griview with hyperlink)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="image.aspx.cs" Inherits="image" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
</head> … Read More
After that i have taken another page called newpage.aspx in which i have a another gridview.. which diplays the details from the query string... as follows..
the following is the code behind for newpage.aspx file:
protected void Page_Load(object sender, EventArgs e)
SqlConnection con = new SqlConnection(@"Data Source=WINKC185045-MAB\SQLEXPRESS;Initial Catalog=CalendarUtility;Integrated Security=True");
SqlDataAdapter da = new SqlDataAdapter("select * from Employee_Record where [quicklook id] like '" + Request.QueryString + "'", con);
DataSet ds = new DataSet();
GridView1.DataSource = ds.Tables;