Click here to Skip to main content
15,888,351 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDefaultButton Problem Pin
N a r e s h P a t e l31-Oct-07 20:25
N a r e s h P a t e l31-Oct-07 20:25 
AnswerRe: DefaultButton Problem Pin
Atif Ali Bhatti31-Oct-07 20:37
Atif Ali Bhatti31-Oct-07 20:37 
Questiontrim in javascript Pin
Sonia Gupta31-Oct-07 19:44
Sonia Gupta31-Oct-07 19:44 
AnswerRe: trim in javascript Pin
Imran Khan Pathan31-Oct-07 19:54
Imran Khan Pathan31-Oct-07 19:54 
AnswerRe: trim in javascript Pin
soni uma31-Oct-07 19:57
soni uma31-Oct-07 19:57 
GeneralRe: trim in javascript Pin
Sonia Gupta1-Nov-07 0:02
Sonia Gupta1-Nov-07 0:02 
AnswerRe: trim in javascript Pin
Vasudevan Deepak Kumar31-Oct-07 20:17
Vasudevan Deepak Kumar31-Oct-07 20:17 
AnswerRe: trim in javascript Pin
InsDev31-Oct-07 20:25
InsDev31-Oct-07 20:25 
Just use this code and enjoy urself.
// Removes leading whitespaces
function LTrim( value )
{
var re = /\s*((\S+\s*)*)/;
return value.replace(re, "$1");
}
// Removes ending whitespaces
function RTrim( value )
{
var re = /((\s*\S+)*)\s*/;
return value.replace(re, "$1");
}

// Removes leading and ending whitespaces
function trim( value )
{
return LTrim(RTrim(value));
}
// Call this Function
function Test()
{
var _test=trim(' Devjit Das ');
alert("'"+_test+"'");
}

Devjit Das.
AnswerRe: trim in javascript Pin
InsDev31-Oct-07 20:36
InsDev31-Oct-07 20:36 
JokeRe: trim in javascript Pin
Sandeep Akhare31-Oct-07 20:40
Sandeep Akhare31-Oct-07 20:40 
GeneralRe: trim in javascript Pin
Sonia Gupta1-Nov-07 0:00
Sonia Gupta1-Nov-07 0:00 
QuestionMultiple Postback on my Page Pin
Riza Azmi31-Oct-07 19:35
Riza Azmi31-Oct-07 19:35 
AnswerRe: Multiple Postback on my Page Pin
Sandeep Akhare31-Oct-07 20:07
Sandeep Akhare31-Oct-07 20:07 
GeneralRe: Multiple Postback on my Page Pin
Riza Azmi31-Oct-07 20:21
Riza Azmi31-Oct-07 20:21 
GeneralRe: Multiple Postback on my Page Pin
Sandeep Akhare31-Oct-07 20:26
Sandeep Akhare31-Oct-07 20:26 
AnswerMultiple Postback on my Page Pin
Sarani Ravindran31-Oct-07 20:23
Sarani Ravindran31-Oct-07 20:23 
GeneralRe: Multiple Postback on my Page Pin
Riza Azmi31-Oct-07 20:47
Riza Azmi31-Oct-07 20:47 
GeneralRe: Multiple Postback on my Page Pin
Atif Ali Bhatti31-Oct-07 20:52
Atif Ali Bhatti31-Oct-07 20:52 
GeneralRe: Multiple Postback on my Page Pin
Riza Azmi31-Oct-07 21:04
Riza Azmi31-Oct-07 21:04 
GeneralRe: Multiple Postback on my Page Pin
Atif Ali Bhatti31-Oct-07 21:07
Atif Ali Bhatti31-Oct-07 21:07 
QuestionFailed to map the path App_GlobalResources Pin
Sun Rays31-Oct-07 19:33
Sun Rays31-Oct-07 19:33 
QuestionAJAX xmlhttp.status==500 Pin
Puneet Narang31-Oct-07 19:26
Puneet Narang31-Oct-07 19:26 
AnswerRe: AJAX xmlhttp.status==500 Pin
Vasudevan Deepak Kumar31-Oct-07 20:15
Vasudevan Deepak Kumar31-Oct-07 20:15 
GeneralRe: AJAX xmlhttp.status==500 Pin
Puneet Narang31-Oct-07 20:45
Puneet Narang31-Oct-07 20:45 
Questionhow i can change Pin
jagadeeshkumar198431-Oct-07 18:58
jagadeeshkumar198431-Oct-07 18:58 

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.