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 the media types of http requests and response?
Explain the differences between managed and unmanaged code?
How to find out what version of asp.net I am using on my machine?
What are session state modes?
What are type/key pairs in client script registration? Can there be 2 scripts with the same type/key pair name?
Explain one critical mapping?
Can anyone please tell me that the question posted on this website are Sufficient for the interview with 2+ year experience in .net
Describe the .net base class library.
How ASP.NET page works?
Define dll hell?
Can I tap into other windows livetm services?
What is mvc in asp.net interview question? : Asp.Net MVC
What is the difference between union and structure?
Explain the difference between array and linkedlist?
Where sessions are stored in asp.net?