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
What are different types of authentication techniques that are used in connection strings to connect .net applications with microsoft sql server?
Mention the execution process for managed code?
If you are using components in your application, how can you handle exceptions raised in a component?
Explain how asp.net page works?
What is Web API?
What is the difference between a cookie and a pixel?
What is authentication in asp.net?
Explain what is postback in asp. Net?
Will session work if cookies is disabled?
What is a runtime version?
How to Separate background image and front image from original picture....
What are the new navigation controls in asp.net 2.0?
How many types of sessions are there in asp net?
List all templates of the repeater control.
Describe the master page.