Archive for C#
Custom paging in Data Grid using C#.net
Posted by: | CommentsPagination is a good technique used to improve the performance of the application and usability. But it’s always not suitable to use the built-in pagination approach of Data Grid, in that case we may require to write our own custom paging. In this article i will explain implementing custom paging using Link Buttons, in this approach we will write our paging logic in the stored procedure to improve the performance of the application.
Exported Excel sheet is not opening in IE new window?
Posted by: | CommentsRecently i was working on a task to export my reports in excel format, i found that my exported excel sheets are not opening in new browser window or in excel window , they are opening in the same page itself where i clicked the button to export data to excel sheet. I Googled the problem, i didn’t find any promising solution at all. Later i tried the same functionality in my friend’s machine there it’s working fine. Then i thought there was some thing with settings of the client machine which are making my excel to open in the same window Here is the setting which made my Exported excel sheet to open in the same browser window.
How to Register JavaScript on Server Side with and without Atlas update panel
Posted by: | CommentsThis article would help you in executing the JavaScript code after Server code execution finished in different scenario’s Like,
- Register JavaScript Code on the server side when your page is not having the update panel.
- Register JavaScript Code on the server side when you use update panel in your page.
Exporting Data Table or Data Grid to Excel sheet in ASP.NET
Posted by: | CommentsAfter reading this post you would be able to do the following tasks.
- Different ways of exporting Data to Excel Sheet.
- Exporting Excel sheet in http as well as secured mode (https with SSL).
- Format the data in Excel sheet like Dates etc.
Lets start with first task.