Hi SanjaySutar,
SanjaySutar: But can u just tell me when to use ID like "ctl00_ContentPlaceHolder1_DataList1_ctl00_RButton1"
and when to use "RButton1" ?????????
So , this is one concept question.
Each web control will render itself as html tag, so we can see it in html page.
For example: TextBox control <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> will be renderd as <input name="TextBox1" type="text" id="TextBox1" />
Please notice that the ID="TextBox1" and id="TextBox1" are quite different. The first is used to identify the server control at server side , and the second is used to indentify the element at client side. If the control is in Container control, it's Clientid will be different from it's ID, just like your scenario.
Clientid will be use if you want to write some javascript code to do some operation. ID will be used at codebehind.