Geeks With Blogs

News


Rodney Vinyard - .NET & SQL Developer When all is said and done, more will be said than done March 2011 Entries
ASP.NET Export n GridViews to Excel
ASP.NET Export n GridViews to Excel Thanks to awesome article by Matt Berseth http://mattberseth.com/blog... http://forums.asp.net/t/152... //Web Page Call to ExcelExport Class protected void lnkExport_Click(object sender, EventArgs e) { //creating the array of GridViews and calling the Export function GridView[] gvList = new GridView[] { gvPlateList, gvPlateDetails }; ExcelExport.Export("Deliver... gvList); } //ExcelExport Class using System; ......

Posted On Friday, March 25, 2011 1:51 PM

ASP.NET Conditionally Change ButtonField text at runTime
ASP.NET Conditionally Change ButtonField text at runTime <asp:ButtonField CommandName="Edit" HeaderText="" Text="Edit" ButtonType="Link" /> protected void gvRequests_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { //-------------------------... // If status = "Saved", change buttonField.LinkButton.Text to "Copy" //-------------------------... if (e.Row.Cells[(int)gCol.Stat... == "Saved") ......

Posted On Tuesday, March 1, 2011 8:28 AM

Copyright © Rodney Vinyard | Powered by: GeeksWithBlogs.net