Can we use the java script code in .Net Code behind?
Answers were Sorted based on User's Feedback
Answer / zikku
yes we can use javascript in code behind.
Define the script block that contains the JavaScript
function. You can add this directly to the HTML of the page.
Insert the script block by the
Page.RegisterStartupScript() or the
Page.RegisterClientScriptBlock() method.
or by using updatepanel by raising an async postback using
JavaScript code
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / 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 |
What?s the difference between Response.Write() and Response.Output.Write()?
2 Answers Siebel, Visual Soft,
How Can assign alias name for ASP.NET Web API Action?
Describe the Server Control Events of ASP.NET?
0 Answers SwanSoft Technologies,
how to get modified rows from Dataset
Can we have multiple worker process in an ASP.NET application? If so then how it has been handled by application? And who handles it?
0 Answers InfoAxon Technologies,
What is the Global.asax used for?
Is asp.net core faster?
what is satellite assembly in .net?
Which two new properties are added in asp.net 4.0 page class?
we can able to display a MessageBox in asp .net without using any script langages?
What do you mean by role-based security?
hi .net gurus. plz if any one has dumps on 70-631 and 70-541 on windows sharepoint services kindly mail me.
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)