
<span class="Apple-style-span" style="font-family: verdana; font-size: 13px; "><p>n this article, I am going to show two AJAX Control - TextBoxWatermarkExtender and ValidatorCalloutExtender. We use error validation control, now by using AJAX we can use these controls in a very attractive way.</p><p>Here are the brief descriptions of these two controls.</p><p><strong>TextBoxWatermarkExtender</strong></p><p>This Ajax control attached to Textbox control to get WaterMark behavior. When a Textbox control is empty it display Watermark text.To attach TextBoxWatermarkExtender to TextBox, set TargetControlId of TextBoxWatermarkExtender to particular TextBox. Here, I set TargetControlID of twFirstname to txtFirstname and set WatermarkText for txtFirstname.</p><p><strong>ValidatorCalloutExtender</strong></p><p>This Ajax control enhances the functionality of existing ASP.NET validators. To use this control, add an input field and a validator control as you normally would. Then add the ValidatorCallout and set its TargetControlID property to reference the validator control.</p><p>The following code of ASP.NET page shows how to use both of these controls.</p><p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0pt; margin-left: 0in; line-height: normal; "><span style="font-size: 10pt; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: yellow; font-family: Verdana, sans-serif; background-position: initial initial; "><%</span><span style="font-size: 10pt; color: blue; font-family: Verdana, sans-serif; ">@</span><span style="font-size: 10pt; font-family: Verdana, sans-serif; "> <span style="color: maroon; ">Page</span> <span style="color: red; ">Language</span><span style="color: blue; ">="C#"</span> <span style="color: red; ">AutoEventWireup</span><span style="color: blue; ">="true"</span><span style="color: red; ">CodeFile</span><
No recent activity.
Articles, blogs, videos and forum posts show up here.
No expertise to show yet.
This is worked out from what a member publishes.