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 validator? How do you disable them?
what are the Custom controls in asp.net?
Explain the different types of directives in .net?
What is simple data binding?
What does mean by a neutral culture?
Give an example of what might be best suited to place in the application_start and session_start subroutines?
What is the usage of DelegatingHandler?
What are server-side comments in ASP.NET?
What are the different types of sessions in asp.net? Name them?
What does occur first in ASP.Net, Authentication or Authorization?
What are the differences between application object and session object?
Is it possible to migrate visual interdev design-time controls to asp.net?
What is the purpose of master page?
What is difference between asp.net and asp?
if i want to give an alert message like "try after sometime" to a web page which is being seen by other person.if a web page is not seen by anyone then it should display otherwise it show a display a message stating that other person is viewing so try after some time........how can i implement this.