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

ASP.NET

 
AnswerRe: css file not getting applied by asp.net page Pin
PSK_9-Jun-10 18:42
PSK_9-Jun-10 18:42 
AnswerRe: css file not getting applied by asp.net page Pin
Sandeep Mewara9-Jun-10 19:02
mveSandeep Mewara9-Jun-10 19:02 
AnswerRe: css file not getting applied by asp.net page Pin
Jamil Hallal9-Jun-10 20:10
professionalJamil Hallal9-Jun-10 20:10 
QuestionASP .Net Page with two languages Pin
FJJCENTU9-Jun-10 8:00
FJJCENTU9-Jun-10 8:00 
AnswerRe: ASP .Net Page with two languages Pin
T M Gray9-Jun-10 8:27
T M Gray9-Jun-10 8:27 
GeneralRe: ASP .Net Page with two languages Pin
FJJCENTU9-Jun-10 8:40
FJJCENTU9-Jun-10 8:40 
AnswerRe: ASP .Net Page with two languages Pin
Jamil Hallal9-Jun-10 20:13
professionalJamil Hallal9-Jun-10 20:13 
QuestionLinkButton Visibility inside a Gridview Pin
mtataric9-Jun-10 6:54
mtataric9-Jun-10 6:54 
Hi,



I am new to C# and I have a LinkButton inside a gridview. I have been trying to set the myLinkButton.Visible property true or false depending on a database entry.



Here is the code behind I have been working on:



protected void gvBalance_RowCommand(object sender, GridViewCommandEventArgs e)
{

if (e.Row.RowType == DataControlRowType.DataRow)
{

LinkButton MyButton = (LinkButton)e.Row.FindControl("lbPayStatement");



if (Status.Text == "PaymentType1")
{
MyButton.Enabled = false;

}
else
{
MyButton.Enabled = true;
}

}

It gives me errors:

'System.Web.UI.WebControls.GridViewCommandEventArgs.Row' is inaccessible due to its protection level

The property or indexer 'System.Web.UI.WebControls.GridViewCommandEventArgs.Row' cannot be used in this context because the get accessor is inaccessible





I tried making the method "public" and so on , it didn't help. What am I doing wrong? Is there an easier way to access a LinkButton "id" inside a gridview?



Thanks in advance.



~Kaan
AnswerRe: LinkButton Visibility inside a Gridview Pin
Sandeep Mewara9-Jun-10 7:48
mveSandeep Mewara9-Jun-10 7:48 
QuestionIn Google Maps - how do I add more information to the Info Windows? Pin
jkesterson9-Jun-10 6:36
jkesterson9-Jun-10 6:36 
AnswerRe: In Google Maps - how do I add more information to the Info Windows? [modified] Pin
Sandeep Mewara9-Jun-10 7:45
mveSandeep Mewara9-Jun-10 7:45 
QuestionProgress Bar Stylesheet Pin
Member 17738959-Jun-10 3:48
Member 17738959-Jun-10 3:48 
AnswerRe: Progress Bar Stylesheet Pin
Peace ON9-Jun-10 3:51
Peace ON9-Jun-10 3:51 
QuestionProgress Bar Pin
MaheshSharma9-Jun-10 2:55
MaheshSharma9-Jun-10 2:55 
AnswerRe: Progress Bar Pin
JHizzle9-Jun-10 3:22
JHizzle9-Jun-10 3:22 
QuestionMessage Removed Pin
9-Jun-10 0:00
geeeeeeeetha9-Jun-10 0:00 
AnswerRe: WebServices Pin
Abhijit Jana9-Jun-10 0:17
professionalAbhijit Jana9-Jun-10 0:17 
QuestionCalculate prices using radio button value on a GridView Pin
Nopo8-Jun-10 23:57
Nopo8-Jun-10 23:57 
AnswerRe: Calculate prices using radio button value on a GridView Pin
Sandeep Mewara9-Jun-10 7:55
mveSandeep Mewara9-Jun-10 7:55 
GeneralRe: Calculate prices using radio button value on a GridView Pin
Nopo9-Jun-10 22:31
Nopo9-Jun-10 22:31 
QuestionDeploy the Website on hosted webserver Pin
GauravGupta2128-Jun-10 22:46
GauravGupta2128-Jun-10 22:46 
AnswerRe: Deploy the Website on hosted webserver Pin
Abhijit Jana8-Jun-10 23:55
professionalAbhijit Jana8-Jun-10 23:55 
GeneralRe: Deploy the Website on hosted webserver Pin
GauravGupta2129-Jun-10 23:21
GauravGupta2129-Jun-10 23:21 
QuestionIs it possible to develop email piping on windows using asp.net or classic asp (C# or vb.net) and plesk, helm? Pin
Friends128-Jun-10 21:19
Friends128-Jun-10 21:19 
AnswerRe: Is it possible to develop email piping on windows using asp.net or classic asp (C# or vb.net) and plesk, helm? Pin
Abhijit Jana8-Jun-10 23:59
professionalAbhijit Jana8-Jun-10 23:59 

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.