Saturday, August 14, 2010
Here,i have handle some problem coming to developers when they try to bind server side values to Textbox on client side. So i decide to solve this problem for those developers who have some week points.Let starts.
Create a Person Class which have two members, which will set and get Firstname and Lastname as shown in below Figure 1.1.
On aspx page drag and drop two TextBox's as shown in below Figure 1.2
Add jQuery reference under the Head tag as shown in below Figure 1.3. you can also include latest online jQuery reference.
You can Override the LastName of Person class as shown in below Figure 1.4. Just for understanding who are on beginner level.
Display screen shows out in Internet Explorer as you see in Figure 1.5
Display screen shows out in Internet Explorer as you see in Figure 1.6
Pass values to jquery and set to textbox