public partial class CaseStudy1 : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
Dictionary<string, string> data = new Dictionary<string, string>();
rpUpdateAdpdetails.DataSource = data;
protected void rpUpdateAdpdetails_ItemDataBound(object sender, RepeaterItemEventArgs e)
Label lblName = (Label)e.Item.FindControl("lblName");
TextBox txtBox = (TextBox)e.Item.FindControl("txtCost");
KeyValuePair<string, string> data = (KeyValuePair<string, string>)e.Item.DataItem;
lblName.Text = data.Key;
txtBox.Text = data.Value;
//Attaching an attribute onfocus that is used attach the validator to the control whenever user set focus on the textbox.
txtBox.Attributes.Add("onfocus", "AttachValidator(this,'" + gridValidator.ClientID + "')");
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Software Developer (Senior)
Brij is a 3-times Microsoft MVP in ASP.NET/IIS Category and a passionate .NET developer. More than 6 years of experience in IT field, currently serving a MNC as a Tech Lead/Architect.
He is also certified as Microsoft Certified Technologies Specialist-ASP.NET and Microsoft Certified Technologies Specialist-WCF in .NET 4.0. He has also received several awards at various forums and his various articles got listed as "Article of the day" at ASP.NET Microsoft Official Website www.asp.net.
He has done MCA from NIT Durgapur and completed his graduation from Lucknow University.
Learning new technologies and sharing knowledge excites him most. Blogging, solving problems at various forums, helping people, keeps him busy entire day.
Visit his Blog: Cide wala
Area of Expertise :
C#, ASP.NET 2.0,3.5,4.0, AJAX, JQuery, JSON, XML, XSLT, ADO.Net, WCF, Active Directory, Exchange Server 2007 (EWS), Java script, Web Services ,Win services, DotnetNuke, WSS 3.0,Sharepoint Designer, SQL Server 2000/2005/2008