Click here to Skip to main content
15,907,392 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: button id in gridvew Pin
Imran Khan Pathan31-Oct-07 2:57
Imran Khan Pathan31-Oct-07 2:57 
GeneralRe: button id in gridvew Pin
Sonia Gupta31-Oct-07 2:59
Sonia Gupta31-Oct-07 2:59 
GeneralRe: button id in gridvew Pin
InsDev31-Oct-07 3:04
InsDev31-Oct-07 3:04 
AnswerRe: button id in gridvew Pin
Christian Graus31-Oct-07 0:56
protectorChristian Graus31-Oct-07 0:56 
GeneralRe: button id in gridvew Pin
Sonia Gupta31-Oct-07 1:06
Sonia Gupta31-Oct-07 1:06 
GeneralRe: button id in gridvew Pin
N a v a n e e t h31-Oct-07 1:10
N a v a n e e t h31-Oct-07 1:10 
GeneralRe: button id in gridvew Pin
Christian Graus31-Oct-07 1:10
protectorChristian Graus31-Oct-07 1:10 
AnswerRe: button id in gridvew Pin
Imran Khan Pathan31-Oct-07 1:21
Imran Khan Pathan31-Oct-07 1:21 
find button and Add attributes to button on Rowdatabound event of gridview.
if you want to check textbox value is empty or not then find textbox and add attributes to textbox.

for example
((TextBox)e.Row.FindControl("txtId")).Attributes.Add("OnBlur","return checkVal('"+((TextBox)e.Row.FindControl("txtId")).ClientID+"');");


Javascript Function

function checkVal(txtID)
{
if(document.getElementById(txtID).value=="")
{
alert('Please enter value')
return false;
}
else
{
return true;
}
}


Best regard
pAthan

please don't forget to vote on the post that helped you.

GeneralRe: button id in gridvew Pin
Sonia Gupta31-Oct-07 1:52
Sonia Gupta31-Oct-07 1:52 
QuestionProblem in spliting a string Pin
Pandiarajan R T31-Oct-07 0:22
Pandiarajan R T31-Oct-07 0:22 
AnswerRe: Problem in spliting a string Pin
Christian Graus31-Oct-07 0:56
protectorChristian Graus31-Oct-07 0:56 
QuestionPaging problem in GridView Pin
Thavika31-Oct-07 0:09
Thavika31-Oct-07 0:09 
AnswerRe: Paging problem in GridView Pin
InsDev31-Oct-07 0:40
InsDev31-Oct-07 0:40 
QuestionAsp.net Pin
Thavika31-Oct-07 0:00
Thavika31-Oct-07 0:00 
AnswerRe: Asp.net Pin
Christian Graus31-Oct-07 0:04
protectorChristian Graus31-Oct-07 0:04 
QuestionNot Exexute IIS Pin
Rinki Mukheraji30-Oct-07 23:59
Rinki Mukheraji30-Oct-07 23:59 
AnswerRe: Not Exexute IIS Pin
Christian Graus31-Oct-07 0:05
protectorChristian Graus31-Oct-07 0:05 
QuestionXML Navigation in Asp.Net Pin
Kuricheti30-Oct-07 23:44
Kuricheti30-Oct-07 23:44 
AnswerRe: XML Navigation in Asp.Net Pin
Christian Graus30-Oct-07 23:53
protectorChristian Graus30-Oct-07 23:53 
GeneralRe: XML Navigation in Asp.Net Pin
Rinki Mukheraji31-Oct-07 0:15
Rinki Mukheraji31-Oct-07 0:15 
GeneralRe: XML Navigation in Asp.Net Pin
Christian Graus31-Oct-07 0:20
protectorChristian Graus31-Oct-07 0:20 
Questionhow to validate character of text box Pin
Piyush Vardhan Singh30-Oct-07 23:42
Piyush Vardhan Singh30-Oct-07 23:42 
AnswerRe: how to validate character of text box Pin
r a j u u30-Oct-07 23:51
r a j u u30-Oct-07 23:51 
GeneralRe: how to validate character of text box Pin
Piyush Vardhan Singh31-Oct-07 0:11
Piyush Vardhan Singh31-Oct-07 0:11 
GeneralRe: how to validate character of text box Pin
r a j u u31-Oct-07 0:34
r a j u u31-Oct-07 0:34 

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.