Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
6
Reply
Only assignment, call,increment and new object expressions c
mohammed shamsheer
Sep 2 2013 3:13 AM
1.3k
Reply
string isEditable=grdDesignation.DataKeys[index].Values["IsDeletable"].ToString();
if (isEditable == "True")
{
chkEditable.Checked = true;
}
else
{
chkEditable.Checked = false;
}
I just shortned the code to below like this but showing the errors
Only assignment, call,increment and new object expressions c
(isEditable == "True") ? chkEditable.Checked=true : chkEditable.Checked = false;
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
6
)
Next Recommended Forum
GridView Edit Function in ASP.NET
Decrypt an email body using Microsoft Exchange Server API