|
hi
how to make Login Button to DefaultButton if i have use master page concept
Naresh Patel
|
|
|
|
|
Assalam-0-alaikum,
how r u? well ur .aspx page has a form tag. inside tht tag specify a property "DefaultButon = desiredbutton" and bhooop. the magic has happend. hope it helps. do let me know with ur feedback.
thnx
Atif Ali Bhatti.
Software Engineer.
Esoul Consultancy Pvt. Ltd.
|
|
|
|
|
how should i use the trim funciton in javascipt?I think a default function is not available in javascript to trim white spaces.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: I think a default function is not available in javascript to trim white spaces.
yes but you can make your own function
get it Trim function
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Yes,There is no inbuilt Trim Function in javascript.
You should implement own function for the trim white space like this
function Trim(s)
{
// Remove leading spaces and carriage returns
while ((s.substring(0,1) == ' ') || (s.substring(0,1) == '\n') || (s.substring(0,1) == '\r'))
{ s = s.substring(1,s.length); }
// Remove trailing spaces and carriage returns
while ((s.substring(s.length-1,s.length) == ' ') || (s.substring(s.length-1,s.length) == '\n') || (s.substring(s.length-1,s.length) == '\r'))
{ s = s.substring(0,s.length-1); }
return s;
}
umesh
|
|
|
|
|
what's the meaning of the follwing line
s = s.substring(1,s.length);
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
|
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.
|
|
|
|
|
Have u done or not.
Devjit Das.
|
|
|
|
|
Why are you so worried ? Let her try herself
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Thank.... Dev
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Hi All
Could you give me a solution for multiple postback problem. In this case, if you click a button, it seems that it is executed 2 times. Honestly, I dont know "a thing" that cause it. I just use 1 masterpage, 1 control and one page.
Appreciating for your comment much.
Regards
Azmi
Simple thiing should be simple, complex thing should be possible.
|
|
|
|
|
Yes it was happening with me also in my case the reason was
In aspx if you see Page directive there is AutoEventWireup property which is true by default and we also had written Page_init and Page Load event decalration in it. that was in 2003 in declrations sections . IN fact in 2005 there is no need to wtite it in code behind file as it is present in designer page
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi Sandeep
Thanks for your reply.
So, what should I do? Is it delete the AutoEventWireup property or just set it into false? Btw, in my code AutoEventWireup property is set into false (in html markup sections). But, it is still create twice postback. I test it with Response.write("<script>alert('test')</script>"). In result, alert test is comes up twice, which means there are 2 postback.
Regards,
Azmi
rizaazmi [at] yahoo [dot] co [dot] id
-----------------------------------------------------------
Simple thing should be simple, complex thing should be opssible.
|
|
|
|
|
I can't say anything just try to check events how they are firing
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Remove the "Handles button1.Click" from the button_click event.
God is always with you.
|
|
|
|
|
Hi Saranya Devi, Hi All
Thanks for the solution.
By your answer, I just find the problem. The reason is there is a 2 event click:
1. in the HTML page (markup section) there is OnClick = "Button1_Click"
2. in the aspx.vb (code section) there is Handles Button1.Click
So, choose one wheter delete Handles Button1.Click or remove OnClick="Button1_Click"
I guess this is cause when I move 2003 to 2005.
Case is closed.
Thanks all for sharing the solution.
|
|
|
|
|
yes he is right.there is an another alternative for tht. remove onClick="button_click" from the button's html in .aspx page.
Regards.
Atif Ali Bhatti.
Software Engineer.
eSoul Consultancy Pvt. Ltd.
|
|
|
|
|
Assalamua`laikum Atif Ali Bhatti
Thanks for the solution.
|
|
|
|
|
WaAlakum Assalam,
every buddy here is most welcome n requested to feel free to ask n e question regarding web development is there is ne. I always would be there if i know.
Regards.
Atif Ali Bhatti.
Software Engineer.
eSoul Consultancy Pvt. Ltd.
|
|
|
|
|
How to resolve this problem ?
I had gave permission to machinkey folder, but no help.
Eventhough I register framework with IIS again.
Thanks,
Sun Rays
|
|
|
|
|
Hello Everybody
I created a webservice that returns data in xml format and this service is working fine. But when i use Ajax to communicate between my webservice and aspx page my xmlhttp.status comes to 500(i.e. Internal Server Error) instead of 200(i.e. Ok). I tried whatever possible upto my knowledge.
Please Help.
Thanks and Regards
Puneet Narang
Software Developer(.net)
email: puneet72narang@yahoo.com
|
|
|
|
|
What was the response text that was coming from the server?
|
|
|
|
|
Hi Vasudevan
plz read the code and the comments also
if(this.xmlhttp.readyState==4 ) // this is coming 4 so got into the condition
{
if(this.xmlhttp.status==200) //getting 500 not able to get into condition
{
var row = this.xmlhttp.responseXML.selectNodes(".//");
alert(row[1].text);
ph.innerHTML = row[1].text;
}
.....
}
Thanks & Regards
Puneet Narang
Software Developer(.net)
email: puneet72narang@yahoo.com
|
|
|
|
|
iam working an iframe and i kept design mode =on.i placed an html page and i did modification to that page by placing some images on it .and when i call the same page for the next time .the page should contain this image how could be possible.
|
|
|
|