Write a code for "RequiredFieldValidator" in java script
Answer Posted / jayamala
function validate()
{
if(document.getElementById("NameId").value =="")
alert("Please enter the name");
document.getElementById("NameId").focus();
return false;
}
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What are main return types supported in Web API?
What is difference between web api and web services?
Who generates session id?
Explain different authentication modes in asp.net?
Can one dll file contains the compiled code of more than one .net language?
Securitywise What are the Enhancements in 2.0?
Hello, Using Visual Studio 2005 (VB) I am working to create a Web Site implementing the following: Within a gridView I have placed a dropdownlist control with a DataSourceID="SDSLkupList". SDSLkupList is a sqlDataSource used to store a lookup list for dropdownlist translation from ID to text. SDSLkupList contains the translation text and other fields related to the dropdown selection ID. (Thought it would be efficient to get everything at the same time.) I would like to provide the user the ability to select from the dropdownlist and, based on the selection, use labels to list related columns stored on the SDSLkupList in separate gridView columns. I have read that SqlDataSources are not meant to be used for individual controls. Since SDSLkupList contains all related information, is there a way to do a find using the dropdownlist selectedValue? (I was not able to discover one.) Otherwise, what should I use? It would need to set the labels on the gridView DataRowBound event as well as the SelectedIndexChanged events. Has anyone done this? Any help would be appreciated. Thanks in Advance. Neal
What is difference between viewstate and session state in javascript?
What can we do with asp.net?
Explain About WebService
Is data edited in the Repeater control?
How can you identify that the page is post back?
Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?
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.
How does u call and execute a sp in .net?