Click here to Skip to main content
15,894,017 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: How can i place a picture without affecting the screen resolution of a client machine Pin
Shog910-Jun-08 6:09
sitebuilderShog910-Jun-08 6:09 
GeneralRe: How can i place a picture without affecting the screen resolution of a client machine Pin
Christian Graus10-Jun-08 6:33
protectorChristian Graus10-Jun-08 6:33 
QuestionReading XML in classic ASP Pin
Member 42321259-Jun-08 6:50
Member 42321259-Jun-08 6:50 
QuestionRe: Reading XML in classic ASP Pin
Manentia19-Jul-08 14:33
Manentia19-Jul-08 14:33 
QuestionSelect entire row details on click of button of that row inside a GridView Pin
salon9-Jun-08 4:09
salon9-Jun-08 4:09 
QuestionSelect entire row details on click of button of that row inside a GridView Pin
salon9-Jun-08 4:09
salon9-Jun-08 4:09 
AnswerRe: Select entire row details on click of button of that row inside a GridView Pin
Rasma Raj9-Jun-08 22:36
Rasma Raj9-Jun-08 22:36 
AnswerRe: Select entire row details on click of button of that row inside a GridView Pin
Rasma Raj9-Jun-08 23:27
Rasma Raj9-Jun-08 23:27 
To use RowDataBound to find Id in each row:

<asp:gridview allowpaging="true" pagesize="5" autogeneratecolumns="false" id="GridView1" runat="server" datasourceid="SqlDataSource1" onrowdatabound="GridView1_RowDataBound">
<columns><asp:boundfield datafield="studentid" headertext="Student ID">
<asp:boundfield datafield="Name" headertext="Name">



In code behind:

protected void Page_Load(object sender, EventArgs e)
{
//Accepting the Id of a clicked row.
string id = Convert.ToString(Request.QueryString["id"]);


}


protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
string id = e.Row.Cells[0].Text.ToString();

e.Row.Attributes["onclick"] = "window.navigate('samewebpage.aspx?id=" + id + ")";
}

}

you can access id from page load, reading the entire data of corresponding id using datatable or datareader and display the contents in a textbox or label.


Thankyou,
Rasma
Questionstoring and reteriving unicode char in SQL database Pin
Mann Khine8-Jun-08 22:50
Mann Khine8-Jun-08 22:50 
AnswerRe: storing and reteriving unicode char in SQL database Pin
Ashfield8-Jun-08 23:54
Ashfield8-Jun-08 23:54 
GeneralRe: storing and reteriving unicode char in SQL database Pin
Mann Khine8-Jun-08 23:58
Mann Khine8-Jun-08 23:58 
GeneralRe: storing and reteriving unicode char in SQL database Pin
Ashfield9-Jun-08 1:29
Ashfield9-Jun-08 1:29 
QuestionClassic ASP and XML Pin
LeilaBayat8-Jun-08 19:17
LeilaBayat8-Jun-08 19:17 
AnswerRe: Classic ASP and XML Pin
Christian Graus9-Jun-08 3:56
protectorChristian Graus9-Jun-08 3:56 
QuestionLimitation for Microsoft ESMTP Mail Server version 5.0.2195.6713 Pin
dabuskol7-Jun-08 22:38
dabuskol7-Jun-08 22:38 
QuestionRe: Limitation for Microsoft ESMTP Mail Server version 5.0.2195.6713 Pin
Vasudevan Deepak Kumar8-Jun-08 19:11
Vasudevan Deepak Kumar8-Jun-08 19:11 
QuestionHow can develop a website? Pin
Le@rner6-Jun-08 1:24
Le@rner6-Jun-08 1:24 
AnswerRe: How can develop a website? Pin
Ashfield6-Jun-08 2:02
Ashfield6-Jun-08 2:02 
AnswerRe: How can develop a website? Pin
Vasudevan Deepak Kumar6-Jun-08 2:24
Vasudevan Deepak Kumar6-Jun-08 2:24 
AnswerRe: How can develop a website? Pin
Yulianto.6-Jun-08 14:31
Yulianto.6-Jun-08 14:31 
AnswerRe: How can develop a website? Pin
Christian Graus6-Jun-08 16:44
protectorChristian Graus6-Jun-08 16:44 
Questionprogramming menu controls [modified] Pin
acodman6-Jun-08 0:49
acodman6-Jun-08 0:49 
AnswerRe: programming menu controls Pin
Le@rner6-Jun-08 1:27
Le@rner6-Jun-08 1:27 
GeneralRe: programming menu controls Pin
Le@rner6-Jun-08 1:39
Le@rner6-Jun-08 1:39 
Questiondisplay all dates within months Pin
idsanjeevjha5-Jun-08 23:52
idsanjeevjha5-Jun-08 23:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.