Click here to Skip to main content
16,008,299 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralTwo Different Login Page Pin
mehran.asg1-Jan-08 5:13
mehran.asg1-Jan-08 5:13 
GeneralRe: Two Different Login Page Pin
Christian Graus1-Jan-08 15:49
protectorChristian Graus1-Jan-08 15:49 
QuestionPreferred way to delete Pin
David Kalkwarf1-Jan-08 4:26
David Kalkwarf1-Jan-08 4:26 
GeneralRe: Preferred way to delete Pin
Michael Sync1-Jan-08 15:24
Michael Sync1-Jan-08 15:24 
QuestionCrystal Report runtime designer Pin
Tenk1-Jan-08 3:13
Tenk1-Jan-08 3:13 
Questionproblem regarding the white spaces and trimming in the regular expression using the replace function [modified] Pin
Sonia Gupta1-Jan-08 0:01
Sonia Gupta1-Jan-08 0:01 
GeneralRe: problem regarding the white spaces and trimming in the regular expression using the replace function Pin
UsmanMunier1-Jan-08 0:52
UsmanMunier1-Jan-08 0:52 
QuestionRe: problem regarding the white spaces and trimming in the regular expression using the replace function [modified] Pin
Sonia Gupta1-Jan-08 1:55
Sonia Gupta1-Jan-08 1:55 
i was trying to figure out the solution of trimming.
i reached the following expression
function ltrim(s)<br />
        {<br />
             var temp = s;<br />
             alert('hi');<br />
             var obj = /^(\s*)([\W\w]*)/;<br />
             if (obj.test(temp)) <br />
             {<br />
                temp = temp.replace(obj, '$2'); <br />
             }<br />
             return temp<br />
        }<br />
<br />
        function rtrim()<br />
        {<br />
            var temp = s;<br />
             alert('hi');<br />
             var obj = /^([\W\w]*)(\s*)$/;<br />
             if (obj.test(temp)) <br />
             {<br />
                temp = temp.replace(obj, '$2'); <br />
             }<br />
             return temp<br />
        }<br />
<br />
        function trim(s)<br />
        {<br />
            return rtrim(ltrim(s));<br />
        }


I think there is missing something.
One more thing , What is the difference between $1 and $2.

Please help

Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

modified on Tuesday, January 01, 2008 8:07:19 AM

AnswerRe: problem regarding the white spaces and trimming in the regular expression using the replace function Pin
UsmanMunier1-Jan-08 3:00
UsmanMunier1-Jan-08 3:00 
QuestionRe: problem regarding the white spaces and trimming in the regular expression using the replace function [modified] Pin
Sonia Gupta1-Jan-08 17:38
Sonia Gupta1-Jan-08 17:38 
GeneralCapture the user role globally in application. Pin
aakar31-Dec-07 23:33
aakar31-Dec-07 23:33 
GeneralRe: Capture the user role globally in application. Pin
Michael Sync1-Jan-08 0:58
Michael Sync1-Jan-08 0:58 
GeneralRe: Capture the user role globally in application. Pin
UsmanMunier1-Jan-08 1:54
UsmanMunier1-Jan-08 1:54 
Generalurl encoding [modified] Pin
shabi uz zaman31-Dec-07 23:27
shabi uz zaman31-Dec-07 23:27 
GeneralRe: url encoding Pin
UsmanMunier1-Jan-08 0:01
UsmanMunier1-Jan-08 0:01 
GeneralRe: url encoding Pin
Michael Sync1-Jan-08 0:56
Michael Sync1-Jan-08 0:56 
Questionhow to change caption of alert or confirm Pin
sindhutiwari31-Dec-07 21:44
sindhutiwari31-Dec-07 21:44 
GeneralRe: how to change caption of alert or confirm Pin
UsmanMunier1-Jan-08 1:44
UsmanMunier1-Jan-08 1:44 
GeneralRe: how to change caption of alert or confirm Pin
sindhutiwari1-Jan-08 2:06
sindhutiwari1-Jan-08 2:06 
GeneralRe: how to change caption of alert or confirm Pin
UsmanMunier1-Jan-08 3:05
UsmanMunier1-Jan-08 3:05 
GeneralAdd externallink in rectangle Pin
Krupa31-Dec-07 20:42
Krupa31-Dec-07 20:42 
GeneralRe: Add externallink in rectangle Pin
Michael Sync31-Dec-07 20:55
Michael Sync31-Dec-07 20:55 
GeneralRe: Add externallink in rectangle Pin
Krupa31-Dec-07 21:00
Krupa31-Dec-07 21:00 
GeneralRe: Add externallink in rectangle Pin
Michael Sync31-Dec-07 21:12
Michael Sync31-Dec-07 21:12 
Questionhow i can convert the text entered in the text box to sentence case Pin
jagan12331-Dec-07 18:32
jagan12331-Dec-07 18:32 

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.