Can we use the java script code in .Net Code behind?
Answer Posted / satish v itagi
I have made use of scripts in code behind. My client
wanted cursor to move from one web ui control to another in
a specific order based on the data fed/selected by user.
For eg. after entering specific word in a textbox, cursor
has to focus on save button bypassing all other ui
controls; if another specific word is entered focus should
jump on third ui control skipping the second, so on and so
forth.
User got delighted when the facility was given.
Another case where I implemented was to focus to next
control even after a post back event (otherwise smart
navigation returns focus to the same control after a post
back and use has to press tab key again to set focus to
next ui control).
This facility made my clients again happy.
Of course, it is more worthy to earn clients delight than
weighty pay packet!!!
Ofcourse, I used Page.RegisterStartupScript() and the
Page.RegisterClientScriptBlock() methods!
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
How can you register a custom server control to a web page?
Tell me what is the request flow used for asp.net mvc framework? : asp.net mvc
What is .net remoting?
Explain the steps needed to be performed in order to create an animation in xaml?
Explain the difference between asp and asp.net?
What are the 3 types of web?
How can I have a particular web page in an asp.net application which displays its own error page?
Explain what does wsdl stand for?
Does web services support data reader like pom project?
If there are multiple update panels on the page say upd1 and upd2. There is a button placed in upd1. How can you stop upd2 to update when button placed in upd1 is clicked?
while developing webservices if i want some users to use my webservice only how can i give security to my webservice?
What is session and cookies in asp.net?
What are the different ways you would consider sending data across pages in ASP (i.e between asp to asp)?
Describe session handling in a webfarm?
What is difference in .net 1.1 and .net 2.0?