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


Please Help Members By Posting Answers For Below Questions

What are the media types of http requests and response?

506


Explain the differences between managed and unmanaged code?

498


How to find out what version of asp.net I am using on my machine?

579


What are session state modes?

562


What are type/key pairs in client script registration? Can there be 2 scripts with the same type/key pair name?

535






Explain one critical mapping?

560


Can anyone please tell me that the question posted on this website are Sufficient for the interview with 2+ year experience in .net

1497


Describe the .net base class library.

529


How ASP.NET page works?

674


Define dll hell?

625


Can I tap into other windows livetm services?

562


What is mvc in asp.net interview question? : Asp.Net MVC

487


What is the difference between union and structure?

501


Explain the difference between array and linkedlist?

517


Where sessions are stored in asp.net?

532