Saturday, September 4, 2010

Some Important Operation

Get Item Control Value from server Side
Convert.ToString((DataGrdi.Items[e.Item.ItemIndex].FindControl("hdnfield") as HiddenField).Value);

Get Data Kety Values
Convert.ToString(DataGrid.DataKeys[e.Item.ItemIndex].ToString());

Using Of string.IsNullOrEmpty

Java Script Mesasge From Server Side

Call parent function by User control ( by Reflection Class ) Asp.Net V Imp

this.Page.GetType().InvokeMember("DisplayMessage", System.Reflection.BindingFlags.InvokeMethod, null, this.Page, new object[] { txtMessage.Text });