|
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.
|
|
|
|
|
Hello all,
in my master page is having body onkeydown event. Which code written using Java Script. In this JS code are avoiding Enter key press.
I have one webpage1.aspx pages, it is refers to that master page. In this aspx page there is one multiline textbox txtBox1
My problem is in multiline textbox enter key is not working, because masterpage is having body onkeydown validation, so that i am unable to press enter in my multiline textbox
I need to avoid this onkeydown event only for webpage1.aspx. How can i do this.
plz give me any solution. any sounds will be appritiated.
How to avoid Master Page Javascript Event in aspx
Ramana
|
|
|
|
|
You obviously need a way to stop the masterpage from addng this script to your specific page.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
if i write onkeydown event code(accepting enter button)in my aspx page, is it overrides the masterpage onkeydown code?
is there any other way?
plz reply
Ramana
|
|
|
|
|
You can solve this problem using keycode value for enter key .
set condition true for enter key.
< script type="text/javascript" >
function CheckKeyCode()
{
if( (event.keyCode == 13 )
{
return true; }
else {
return false;
}
}
< /script >
verify this link for keycode values:
http://livedocs.adobe.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentation&file=00002398.htm
God is always with you.
|
|
|
|
|
Hi! i am developing a multilingual site in which i am using global resources. i want when an user select a language from a drop down list in the home page, this language automatically become default language for all web page for this session. i have solved this problem by putting selected language in session & in every page's page load event i have retrieve value from the session & set CurrentThread's CurrentUICulture & CurrentCulture.
but i want when a user select a particular language then it become default laguage for this session. what is the solution?
|
|
|
|
|
I don't understand, I thought you said you had done that already. You're choosing a language, and it works for the session, so you have what you asked for.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
on loading xml string in xmldocument it gives error illegal characters in path even if i give sinfle mode in it like
Can any body tell me the reason
Its urgent !!!
Thanks in advance....
Gaurav
|
|
|
|
|
G.K.M. wrote: Its urgent !!!
Wow, there's a change
G.K.M. wrote: it gives error illegal characters in path
G.K.M. wrote: Can any body tell me the reason
Beceause there are illegal characters in your path ? If you posted some code ,that would make it easier
G.K.M. wrote: even if i give sinfle mode in it like
What does this mean ?
Have you perhaps confused the method to load XML from a string and the method to load XML from a file path ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
I am working on asp.net 2000.i have search button in my application..
I have give the keyword or any character, to be displays in the keyword having a form links...
Like I will give the keyword—“Home”
It’s display to how many forms’s found the home keyword, displaying the form links...
This is my query please help me...
|
|
|
|