Click here to Skip to main content
15,896,557 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: runtime dropdownlist in grid..., Pin
VenkataRamana.Gali31-Aug-07 1:56
VenkataRamana.Gali31-Aug-07 1:56 
GeneralRe: runtime dropdownlist in grid..., Pin
Member 387988131-Aug-07 2:01
Member 387988131-Aug-07 2:01 
GeneralRe: runtime dropdownlist in grid..., Pin
Imran Khan Pathan31-Aug-07 1:57
Imran Khan Pathan31-Aug-07 1:57 
QuestionHelp regarding creating PDFs Pin
anu8131-Aug-07 1:08
anu8131-Aug-07 1:08 
AnswerRe: Help regarding creating PDFs Pin
Vasudevan Deepak Kumar31-Aug-07 7:30
Vasudevan Deepak Kumar31-Aug-07 7:30 
Questionauthorization and customErrors Pin
Itay Levin31-Aug-07 0:34
Itay Levin31-Aug-07 0:34 
QuestionValidations in gridview Pin
anujose30-Aug-07 23:37
anujose30-Aug-07 23:37 
AnswerRe: Validations in gridview Pin
VenkataRamana.Gali31-Aug-07 1:13
VenkataRamana.Gali31-Aug-07 1:13 
anu,
In RowDataBound Event write this code

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)<br />
{<br />
 if (e.Row.RowType == DataControlRowType.DataRow)<br />
 {<br />
    int dbValue = (int)e.Row.Cells[0].Text;<br />
    TextBox txtbox =  (TextBox)e.Row.FindControl("TextBox1");<br />
    txtbox.Attributes.Add("onblur", "validateValue('"+ dbValue +"','"+ (int)txtbox.Text  +"');");<br />
 }<br />
}<br />


add this javascript code in head section
function validateValue(dbvalue, enteredValue)<br />
{<br />
   <br />
	if(enteredValue < dbvalue)<br />
	{<br />
	   alert("please enter the value equal or greate of column1 ");<br />
	}<br />
}


hope this will help, as per the ur requirement fire this javascript validation related event.
Smile | :)


regards
GV Ramana

GeneralRe: Validations in gridview Pin
anujose31-Aug-07 2:27
anujose31-Aug-07 2:27 
QuestionAJAX and FileUpload Pin
steve_a_p30-Aug-07 23:18
steve_a_p30-Aug-07 23:18 
AnswerRe: AJAX and FileUpload Pin
qtuan30-Aug-07 23:44
qtuan30-Aug-07 23:44 
GeneralRe: AJAX and FileUpload Pin
steve_a_p31-Aug-07 2:17
steve_a_p31-Aug-07 2:17 
GeneralRe: AJAX and FileUpload Pin
Vasudevan Deepak Kumar2-Sep-07 1:02
Vasudevan Deepak Kumar2-Sep-07 1:02 
QuestionRe: AJAX and FileUpload Pin
steve_a_p2-Sep-07 23:22
steve_a_p2-Sep-07 23:22 
Questionhow we navigatetourl with buttonfield column in gridview Pin
puspendra napit30-Aug-07 23:16
puspendra napit30-Aug-07 23:16 
AnswerRe: how we navigatetourl with buttonfield column in gridview Pin
VenkataRamana.Gali31-Aug-07 1:22
VenkataRamana.Gali31-Aug-07 1:22 
QuestionError: Value of type 'Byte' cannot be converted to '1-dimensional array of Byte' Pin
Milind Panchal30-Aug-07 22:42
Milind Panchal30-Aug-07 22:42 
AnswerRe: Error: Value of type 'Byte' cannot be converted to '1-dimensional array of Byte' Pin
Imran Khan Pathan30-Aug-07 23:15
Imran Khan Pathan30-Aug-07 23:15 
AnswerRe: Error: Value of type 'Byte' cannot be converted to '1-dimensional array of Byte' Pin
l0kke30-Aug-07 23:21
l0kke30-Aug-07 23:21 
QuestionHow to get IpAddress of the system. Pin
rahul.net1130-Aug-07 22:22
rahul.net1130-Aug-07 22:22 
AnswerRe: How to get IpAddress of the system. Pin
Imran Khan Pathan30-Aug-07 23:17
Imran Khan Pathan30-Aug-07 23:17 
GeneralRe: How to get IpAddress of the system. Pin
rahul.net1130-Aug-07 23:26
rahul.net1130-Aug-07 23:26 
AnswerRe: How to get IpAddress of the system. Pin
Vasudevan Deepak Kumar31-Aug-07 7:31
Vasudevan Deepak Kumar31-Aug-07 7:31 
AnswerRe: Give me a solution Pin
Michael Sync30-Aug-07 22:04
Michael Sync30-Aug-07 22:04 
QuestionHow can I input data into a dropdownlist ? Pin
Big Ralph30-Aug-07 21:46
Big Ralph30-Aug-07 21:46 

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.