Blog that contains articles about new technologies related or not with programming. I will describe and solves some problems that I encounter in my career. ASP .NET, AJAX, Javascript, C++, C# and SQL are some of the subjects that will appear.
11 September 2012
Get the html control to asp without using runat='server' property
string strValue = Page.Request.Form["name of the control"].ToString();
How to get the current row in the grid view rowcommand event
GridViewRow row = ((LinkButton)e.CommandSource).NamingContainer as GridViewRow;
In RowDataBound for datakeys
GridView1.DataKeys[e.Row.RowIndex].Value.ToString()
((DataRowView)e.Row.DataItem)["mainid"].ToString()
In RowDataBound for datakeys
GridView1.DataKeys[e.Row.RowIndex].Value.ToString()
((DataRowView)e.Row.DataItem)["mainid"].ToString()
Subscribe to:
Posts (Atom)