Click here to Skip to main content
15,887,288 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionMultiple value under a single dropdownlist item Pin
cocoonwls24-Sep-09 3:10
cocoonwls24-Sep-09 3:10 
AnswerRe: Multiple value under a single dropdownlist item Pin
Abhishek Sur24-Sep-09 3:17
professionalAbhishek Sur24-Sep-09 3:17 
AnswerRe: Multiple value under a single dropdownlist item Pin
Nisha Agrawal24-Sep-09 3:24
Nisha Agrawal24-Sep-09 3:24 
GeneralRe: Multiple value under a single dropdownlist item Pin
cocoonwls25-Sep-09 4:43
cocoonwls25-Sep-09 4:43 
Questiona problem in menu.(IRANIAN) Pin
hasani200724-Sep-09 2:31
hasani200724-Sep-09 2:31 
AnswerRe: a problem in menu.(IRANIAN) Pin
Not Active24-Sep-09 2:36
mentorNot Active24-Sep-09 2:36 
QuestionHi, I need help !!! Pin
_ASPAle_24-Sep-09 2:03
_ASPAle_24-Sep-09 2:03 
AnswerRe: Hi, I need help to view image on a datalist control. Pin
Nisha Agrawal24-Sep-09 2:10
Nisha Agrawal24-Sep-09 2:10 
for that u have to handle RowDataBound and SelectedIndexChanged Events. Below is the code


protected void gvItems_SelectedIndexChanged(object sender, EventArgs e)
{
         Response.Redirect("ToPage.aspx?SelectedItemId=" + gvItems.SelectedDataKey.Value)
}

protected void gvItems_RowDataBound(object sender, GridViewRowEventArgs e)
{
            if(e.Row.RowType==DataControlRowType.DataRow)
            {
                e.Row.Attributes.Add("onclick", ClientScript.GetPostBackEventReference(this.gvItems, "Select$" + e.Row.RowIndex));
            }
}



Now at ToPage.aspx u have the Id of the Selected Item so you can display the data related to that item as you want to display.
GeneralRe: Hi, I need help to view image on a datalist control. Pin
Not Active24-Sep-09 2:16
mentorNot Active24-Sep-09 2:16 
GeneralRe: Hi, I need help to view image on a datalist control. Pin
sashidhar24-Sep-09 2:25
sashidhar24-Sep-09 2:25 
GeneralRe: Hi, I need help to view image on a datalist control. Pin
Nisha Agrawal24-Sep-09 2:28
Nisha Agrawal24-Sep-09 2:28 
GeneralRe: Hi, I need help to view image on a datalist control. Pin
Not Active24-Sep-09 2:33
mentorNot Active24-Sep-09 2:33 
GeneralRe: Hi, I need help to view image on a datalist control. Pin
Nisha Agrawal24-Sep-09 3:00
Nisha Agrawal24-Sep-09 3:00 
GeneralRe: Hi, I need help to view image on a datalist control. Pin
_ASPAle_24-Sep-09 7:04
_ASPAle_24-Sep-09 7:04 
GeneralRe: Hi, I need help to view image on a datalist control. Pin
sashidhar24-Sep-09 7:30
sashidhar24-Sep-09 7:30 
GeneralRe: Hi, I need help to view image on a datalist control. Pin
_ASPAle_26-Sep-09 1:07
_ASPAle_26-Sep-09 1:07 
AnswerRe: Hi, I need help !!! Pin
Not Active24-Sep-09 2:18
mentorNot Active24-Sep-09 2:18 
AnswerRe: Hi, I need help !!! Pin
sashidhar24-Sep-09 2:18
sashidhar24-Sep-09 2:18 
AnswerRe: Hi, I need help !!! Pin
S.Dhanasekaran24-Sep-09 2:22
S.Dhanasekaran24-Sep-09 2:22 
GeneralRe: Hi, I need help !!! Pin
sashidhar24-Sep-09 2:26
sashidhar24-Sep-09 2:26 
AnswerRe: Hi, I need help !!! Pin
_ASPAle_24-Sep-09 2:41
_ASPAle_24-Sep-09 2:41 
Questioni found error 500 on ie Pin
mauji24-Sep-09 1:25
mauji24-Sep-09 1:25 
AnswerRe: i found error 500 on ie Pin
sashidhar24-Sep-09 1:28
sashidhar24-Sep-09 1:28 
Question[Solved]Confirmation Box Problem [modified] Pin
nagendrathecoder24-Sep-09 0:33
nagendrathecoder24-Sep-09 0:33 
AnswerRe: Confirmation Box Problem Pin
Christian Graus24-Sep-09 0:36
protectorChristian Graus24-Sep-09 0:36 

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.