2016-06-08 Instead of passing the datetime pass the datetime.Ticks which is a (long) numeric value so the complete datetime value will be preserved. Then convert ticks back to datetime in the server (controller action method).
Category Archives: ASP.Net
Stop asp.net from encoding the source HTML string (mvc raw html)
/// Stops asp.net from encoding the source HTML string. public static IHtmlString HTMLRaw(string source) { return new HtmlString(source); } call this function whenever you want asp.net NOT to encode the string. Note: You can use <%= and %> tags to avoid encoding as well. Menol ILT
C# ASP.NET – GridView : How to Use Checkbox in Gridview to Select Multiple Rows
2009-01-06 // http://pagead2.googlesyndication.com/pagead/show_ads.js I wanted to select multiple rows of the grid view using check boxes to select each row. In this post I will discus how and what I did to achieve this goal… I used a template column which holds a check box to select or de-select a row in the grid view.Continue reading “C# ASP.NET – GridView : How to Use Checkbox in Gridview to Select Multiple Rows”
ASP.NET – AutoPostBack : What is AutoPostBack and How AutoPostBack Works
2008-12-26 Today I was experimenting on a grid view where I was trying to select multiple rows of the grid view using a check box column. I wrote some code in the CheckedChanged of checkbox but then I found that the code was not executed when the state of the checkbox is changed. So IContinue reading “ASP.NET – AutoPostBack : What is AutoPostBack and How AutoPostBack Works”
C# ASP.NET – GridView : How to Keep Modified Data of Template Fields when Paging is Enabled?
2008-12-04 Today I had to take care of a problem of a certain company (CIS) that I consult. They had a problem of keeping the values modified in a template field of a gridview when the user moves from one page of the grid to another. Template fields allow us to add custom columns intoContinue reading “C# ASP.NET – GridView : How to Keep Modified Data of Template Fields when Paging is Enabled?”