Browse by Tags

All Tags » ASP.NET (RSS)

Keeping ASP.NET sessions alive by bunbun

I had an application where users would routinely start working, then stop to do something else and then keep the web page open for hours on end. This would inevitably lead to some ASP.NET Session has expired messages. To combat this, there is a simple...
Filed under:

Separate gridview column alignment with CSS Friendly Control Adapter by bunbun

When using the CSS Friendly Control Adapters, you get an easy to modify the look and feel of all your controls through one style sheet. With the gridview style, you can set the text alignment for your columns: .PrettyGridView .AspNet-GridView table tbody...
Filed under:

Convert SQLDataSource to DataTable by bunbun

Sometimes I find the need to convert a SQLDataSource to a DataTable. Here's how to do it: Dim dv As DataView = New DataView() Dim dt As New DataTable dv = Me .sqldsData.Select(DataSourceSelectArguments.Empty) dt = dv.ToTable()
Filed under:

Open menu item in new window by bunbun

By default when you open a menu item based on your application's sitemap, it opens in the current window. To have items open in a new window, it's just a simple two step process. First add the "target" property to the sitemapnode you want to be opened...
Filed under:

Disable/Enable export format in SSRS and ASP.NET by bunbun

When using the SSRS ReportViewer control in ASP.NET, by default you have the option to export to Excel or PDF. Recently I had an application where the users wanted to limit the export options to PDF only. Thanks to this blog post , I found it was very...

Malformed URL when sitemap node points to SSRS folder by bunbun

Needed to create a menu item linked to a folder on our SQL Server Reporting Services site. After putting the URL in my sitemap, I got error messages about a malformed URL even though I new the URL was good (I could copy and paste it into a web browser...
Filed under: , ,

Multiple file download from a single ASP.NET page by bunbun

Had an application that needed to generate two CSV files to send to corporate. One file was a simple one line header file and the other file had the data details. I really didn't want to have two buttons on my page and make the user create each file independently...
Filed under: ,

Common page titles for child pages in ASP.NET app by bunbun

In almost all my application I utilize master pages and in most cases my master page has two content place holders: one for the child page content and one for the child page heading content. This helps me give the application a consistent look and feel...
Filed under:

Opening SSRS Report in PDF format via ASP.NET by bunbun

I had to create a report where the report data was displayed over several columns. Just a simple report for admins with everyone's name and phone extension. SSRS allows you to do this by specifying the number of columns in your report but this view is...

SQL Server Reporting Services in web apps with sub reports by bunbun

I've started using SQL Server Reporting Services in more web applications recently. Using sub reports for the first time was a little tricky but once you do one, you're set. Here's a sample using a simple report based on a SQL datasource. Define the report...
More Posts Next page »