can i call the java script to code behind file?if yes how?
Answers were Sorted based on User's Feedback
Answer / swapna
we can call a javascript function from code behind by using
ScriptManager.RegisterStartupScript(this, GetType(),
UniqueID, "alert('asdf');", true);
| Is This Answer Correct ? | 17 Yes | 1 No |
Answer / .net funda
yes u can do it.
write a javascript inside a string.
call Page.ClientScript.RegisterClientScriptBlock() method.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / vivek
using Microsoft ajax library and creating a web method we can call a code behind code using java script.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / tejkrishna
yes. for custom validation control's server validate event.
| Is This Answer Correct ? | 1 Yes | 5 No |
You need to be able to retrieve data from DataSet object that has four DataTable objects. There are currently UniqueConstraint and ForeignKeyConstraint Object on the DataTable objects to enforce the data rules. You find that you can retrieve the data from the individual DataTable objects, but you are not able to retrieve the data from the combination of DataTable objects in a Parent/Child manner. What should you do to able to retrieve the data in a Parent/Child manner? a) Set the EnforceParentChild parameter of the DataSet to True. b) Set the EnforceRelation parameter of the Relations collection to True. c) Add DataRelation objects to the Relations Collection to make the DataSet present the data in Parent/Child manner. d) Add a primary key and a foreign key to each of the DataTable objects that should present the data in a Parent/Child manner.
How to automatically get the latest version of all the asp.net solution items from source safe when opening the solution?
what is state management in ASP.NET
What is state management in asp.net and define Client-side state management and Server-side state management?
Web API supports which protocol?
What is the compiled object?
What is the difference between table and query?
What are the asp.net 2.0 features?
Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?
What are the differences between primary foreign and unique keys?
how can i insert array values and retreive in asp.net
what is publisher?
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)