Click here to Skip to main content
15,891,372 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: help in file uploade control plz Pin
ahmed_fci200618-Sep-07 23:06
ahmed_fci200618-Sep-07 23:06 
Questionip address of client machine Pin
Sonia Gupta17-Sep-07 21:48
Sonia Gupta17-Sep-07 21:48 
AnswerRe: ip address of client machine Pin
Parwej Ahamad17-Sep-07 22:08
professionalParwej Ahamad17-Sep-07 22:08 
GeneralRe: ip address of client machine Pin
Sonia Gupta17-Sep-07 22:16
Sonia Gupta17-Sep-07 22:16 
Questionhow to set Maximum Length In Multiline Mode of TextBox Pin
Jintal Patel17-Sep-07 21:44
Jintal Patel17-Sep-07 21:44 
AnswerRe: how to set Maximum Length In Multiline Mode of TextBox Pin
Naik A2Ze17-Sep-07 21:51
Naik A2Ze17-Sep-07 21:51 
GeneralRe: how to set Maximum Length In Multiline Mode of TextBox Pin
Sonia Gupta17-Sep-07 22:30
Sonia Gupta17-Sep-07 22:30 
AnswerRe: how to set Maximum Length In Multiline Mode of TextBox Pin
Ballita17-Sep-07 22:27
Ballita17-Sep-07 22:27 
If you want ot set maximum length of a multiline textbox, You can use the following code in page load.

System.Text.StringBuilder jScriptStr2 = new System.Text.StringBuilder();

jScriptStr2.Append("");
jScriptStr2.Append("function limitText (textObj, maxCharacters){");
jScriptStr2.Append("if (textObj.innerText.length >= maxCharacters){");
jScriptStr2.Append("if ((event.keyCode >= 32 && event.keyCode <= 126) || (event.keyCode >= 128 && event.keyCode <= 254)){");
jScriptStr2.Append("event.returnValue = false;");
jScriptStr2.Append("}}}");
Page.RegisterStartupScript("textLimiter", jScriptStr2.ToString());

And In Html of textbox add
OnKeyDown="limitText (this, 500);"

Thanks & Regards
Mishra

Questionupdate query when handling the database form remote machine. [modified] Pin
Sonia Gupta17-Sep-07 21:44
Sonia Gupta17-Sep-07 21:44 
AnswerRe: update query when handling the database form remote machine. Pin
Parwej Ahamad17-Sep-07 22:31
professionalParwej Ahamad17-Sep-07 22:31 
GeneralRe: update query when handling the database form remote machine. Pin
Sonia Gupta17-Sep-07 22:37
Sonia Gupta17-Sep-07 22:37 
GeneralRe: update query when handling the database form remote machine. Pin
Parwej Ahamad17-Sep-07 22:43
professionalParwej Ahamad17-Sep-07 22:43 
AnswerRe: update query when handling the database form remote machine. Pin
saini arun17-Sep-07 22:42
saini arun17-Sep-07 22:42 
GeneralRe: update query when handling the database form remote machine. Pin
Sonia Gupta18-Sep-07 0:00
Sonia Gupta18-Sep-07 0:00 
QuestionValidation Controls Inside DIV tag Not working Pin
John-ph17-Sep-07 21:38
John-ph17-Sep-07 21:38 
AnswerRe: Validation Controls Inside DIV tag Not working Pin
John-ph23-Sep-07 22:40
John-ph23-Sep-07 22:40 
Questionasp.net with VB Pin
abglorie17-Sep-07 21:29
abglorie17-Sep-07 21:29 
AnswerRe: asp.net with VB Pin
Parwej Ahamad17-Sep-07 22:01
professionalParwej Ahamad17-Sep-07 22:01 
GeneralRe: asp.net with VB Pin
abglorie17-Sep-07 22:43
abglorie17-Sep-07 22:43 
QuestionAdding VBscript code to ASP.Net 2.0 urgent.............. Pin
Priya_200717-Sep-07 21:18
Priya_200717-Sep-07 21:18 
QuestionDifference Pin
Naik A2Ze17-Sep-07 21:09
Naik A2Ze17-Sep-07 21:09 
AnswerRe: Difference Pin
VenkataRamana.Gali17-Sep-07 21:25
VenkataRamana.Gali17-Sep-07 21:25 
Questiononline shopping Pin
jai 12317-Sep-07 20:54
jai 12317-Sep-07 20:54 
AnswerRe: online shopping Pin
saini arun17-Sep-07 21:01
saini arun17-Sep-07 21:01 
AnswerRe: online shopping Pin
VenkataRamana.Gali17-Sep-07 21:06
VenkataRamana.Gali17-Sep-07 21:06 

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.