Browse by Tags
All Tags »
Samples »
ASP.NET 2.0 (RSS)
...well first of all, I am NOT recommending it, but sometimes it could be necessary! Now, let's proceed to the code... 1. Create a page called RunBatchFile.vb and paste the following... Imports System.Diagnostics Imports System.IO Partial Class RunBatchFile
Read More...
Sometimes, while troubleshooting I am interested to find out all the details about certain collections in ASP.NET, like Forms, QueryStrings, Headers, ServerVariables, Cookies, Sessions and Params... I created a very simple aspx page which would show you
Read More...
This is a pretty small sample to help you figure out the ASP.NET identity matrix and how it comes in effect. I am posting this since quite often we need to troubleshoot security related issues on a production website and making any Application level changes
Read More...
Yesterday, I came up with an interesting issue where a customer wanted to customize a 500 error message ("Internal Server Error"). Interestingly, customErrors DID NOT seem to work for StatusCode 500! We just wanted to verify if it works for 404, and it
Read More...
I had an issue where I was changing a WebPartManger's displaymode using the following code... WebPartManager1.DisplayMode = WebPartManager.CatalogDisplayMode or WebPartManager1.DisplayMode = WebPartManager.EditDisplayMode I didn't use SQL Express for
Read More...
I don't have the SQL Express on my box and I still want to use database for my ASP.NET 2.0 application. Here is what I do to configure each of my application to use the MS SQL 2000. 1) Go to the the Visual Studio 2005 command prompt OR a regular command
Read More...
In this pick, I am sharing a project using which you can send PDF files to the IE Client in four different ways. You may download the project by clicking here . Create a new C# Website. While creating the following pages ensure that you DON'T have "Place
Read More...
Today we are going to discuss how to add webparts to a Catalog Zone dynamically in your webpage. Sometimes, you may have quite a lot of different webparts which you don't want to add by default to any page. Instead, you want to design an interface where
Read More...
Recently, I found an issue with the Gridview control. I was adding some formatted columns and no matter how much I tried it wouldn't show up as expected. Similar code seems to work fine in Datagrid of VS 2003. One of the columns which I had was supposed
Read More...
Requirement 2 ============= Give the Datagrid a decent User Interface with Appropriate Headers and Formatted Columns created dynamically. Let's create a new ASP.NET Web site. Add the following lines just after your <configuration> tag in the web.config.
Read More...
Requirement 1 =========== We need to bind the data dynamically to the GridView of ASP.NET 2.0 Let's create a new ASP.NET Web site. Add the following lines just after your <configuration> tag in the web.config. I will be working with the "pubs" database
Read More...
Requirement 1 ============= You have a GridView in ASP.NET 2.0 and you want to read the row whenever the Button of that row is clicked. Additionaly, you want to pass the key information to a different page, where you are supposed to show the details.
Read More...