-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: Akshit56491
Message 2 in Discussion
1. Can i access a javascript function using server control. If so, pls tell me how?
There are many way of doing it. For example there is a object and u want to do some
thing when mouse is moved upon it it Write ur java script in the html (aspx) code
page and u can write this in the code behind page.
obj.Attributes.Add("onmousemove","callurfunction") 2. How can i stop a server
button click from posting back. Actually i want to call a js func b4 posting back.
For this i am giving u a link where small example is given. When the button is
clicked they call javascript which asks for the confirmation from the user. If u c the
example u can find the full souce code for ur problem. 3. Is it possible to access
viewstate from javascript. I want to add some text to viewstate thru some js func
View state will encrypted and stored in form of a hidden filed in the form. So what i
suggest u is have a html server control hidden filed and set the value from ur JS
function so that asp.net will store that in view state and decrypt it when respond
back. 4. Can i edit html control values from code behinds. Yes but u need to
make them server controls by adding runat="server" attribute to them Hope this
helps u Akshit
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]