My application is in VS2010 coded in c#.Net,im using Silverlight for the first Time.I have a form where there are
combo boxes,textboxes,rich TextBox,DTP.The data in all these controls are populated from database at the Loaded Event.
I hve a Cancel button on the same page.Now my requirement is that when the User click on Cancel all the controls should get reset and should be in the state as they were after the Loaded Event.
I want to do this using JavaScript.
I have the following code but im getting Error
Expand|Select|Wrap|Line Numbers
- <script language="javascript">
- formreset()
- {
- myform.reset();
- }
Im calling the Above code on Click of Cancel button.
Please guide me about how should i create Javascript for this and use in my Form.
Would be great if i gets the assistance by tomorow morning..