1
Answer

Adding buttons on Gridview

Photo of Zuber Kazi

Zuber Kazi

13y
1.1k
1
Hello Everyone,
I want to add edit, update and delete buttons on gridview(In ASP.net). All data shown on gridview is taken by Dataset.
I used add columns but it doesn't working. So I add template field containing buttons but i Didn't get the code for that.
Please help me out.
Regards
Zuber Kazi

Answers (1)

1
Photo of Vulpes
NA 98.3k 1.5m 13y
You can check for a string being either null or empty with:

if (String.IsNullOrEmpty(strResult))
{                
   label1.Text = "INCORRECT USER/PASS!";
}
else
{              
   label1.Text = "YOU ARE LOGGED IN!";
}
Accepted
0
Photo of mike Delvotti
NA 287 0 13y
Thanks Vulpes, that was bang on, I've been going round in circles with that one.