Click here to Skip to main content
15,886,873 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How can I access a method on a child page from its master page ? Pin
AspDotNetDev10-May-11 10:55
protectorAspDotNetDev10-May-11 10:55 
GeneralRe: How can I access a method on a child page from its master page ? Pin
Keith Barrow10-May-11 11:40
professionalKeith Barrow10-May-11 11:40 
GeneralRe: How can I access a method on a child page from its master page ? Pin
AspDotNetDev10-May-11 12:02
protectorAspDotNetDev10-May-11 12:02 
GeneralRe: How can I access a method on a child page from its master page ? Pin
Keith Barrow10-May-11 12:06
professionalKeith Barrow10-May-11 12:06 
GeneralRe: How can I access a method on a child page from its master page ? Pin
AspDotNetDev10-May-11 12:09
protectorAspDotNetDev10-May-11 12:09 
GeneralRe: How can I access a method on a child page from its master page ? [modified] Pin
Keith Barrow10-May-11 12:18
professionalKeith Barrow10-May-11 12:18 
Questionfetching radiobutton control value from gridview Pin
Karan_TN9-May-11 22:52
Karan_TN9-May-11 22:52 
AnswerRe: fetching radiobutton control value from gridview Pin
Roman_wolf10-May-11 0:29
Roman_wolf10-May-11 0:29 
First of all, you shouldn't be finding controls by indices. For one thing, it is confusing. Moreover, if you changed the order of your columns, you'll end up breaking your code.
Instead, use the row.FindControl method.

Another thing to check for the row type, since a grid may have several row types (header/footer/data/..)
So while you checkbox exists in the DataRow, it doesn't exist in the header row for example, which in turn probably causes your exception.

So you should do something like this:

foreach (GridViewRow row in grdFeedback.Rows)
{
    if (row.RowType == DataControlRowType.DataRow)
    {
        RadioButton btn=row.FindControl("RadioButton_ID_Goes_Here") as RadioButton;
        bool isChecked = btn.Checked;
        //do stuff
    }
}

GeneralRe: fetching radiobutton control value from gridview Pin
Karan_TN10-May-11 1:33
Karan_TN10-May-11 1:33 
GeneralRe: fetching radiobutton control value from gridview Pin
Roman_wolf10-May-11 20:58
Roman_wolf10-May-11 20:58 
QuestionA stupid CustomValidator [Solved] Pin
Ali Al Omairi(Abu AlHassan)9-May-11 22:12
professionalAli Al Omairi(Abu AlHassan)9-May-11 22:12 
AnswerRe: A stupid CustomValidator [Solved] Pin
Ali Al Omairi(Abu AlHassan)10-May-11 3:30
professionalAli Al Omairi(Abu AlHassan)10-May-11 3:30 
Questionhow can add javascript code ?? Pin
lolostar9-May-11 14:41
lolostar9-May-11 14:41 
AnswerRe: how can add javascript code ?? Pin
Anurag Gandhi9-May-11 19:13
professionalAnurag Gandhi9-May-11 19:13 
AnswerRe: how can add javascript code ?? Pin
Nitin S9-May-11 19:19
professionalNitin S9-May-11 19:19 
GeneralRe: how can add javascript code ?? Pin
lolostar9-May-11 20:10
lolostar9-May-11 20:10 
GeneralRe: how can add javascript code ?? Pin
Nitin S9-May-11 20:13
professionalNitin S9-May-11 20:13 
GeneralRe: how can add javascript code ?? Pin
Ali Al Omairi(Abu AlHassan)9-May-11 22:08
professionalAli Al Omairi(Abu AlHassan)9-May-11 22:08 
AnswerRe: how can add javascript code ?? Pin
Prasanta_Prince9-May-11 21:03
Prasanta_Prince9-May-11 21:03 
QuestionDatabase audit/journaling Pin
vanikanc9-May-11 8:09
vanikanc9-May-11 8:09 
AnswerRe: Database audit/journaling Pin
Ennis Ray Lynch, Jr.9-May-11 8:21
Ennis Ray Lynch, Jr.9-May-11 8:21 
QuestionASP & JavaScript Pin
future38397-May-11 1:56
future38397-May-11 1:56 
AnswerRe: ASP & JavaScript Pin
Luc Pattyn7-May-11 2:20
sitebuilderLuc Pattyn7-May-11 2:20 
AnswerRe: ASP & JavaScript Pin
keyur satyadev7-May-11 2:40
keyur satyadev7-May-11 2:40 
Questionregular expression Pin
fififlowertot5-May-11 23:00
fififlowertot5-May-11 23:00 

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.