Welcome to MSDN Blogs Sign in | Join | Help

Rahul Soni's blog

Never assume the obvious is true!

News



  • These postings are provided "AS IS" with no warranties, and confers no rights.

Browse by Tags

All Tags » Samples » ASP.NET 1.x   (RSS)
Run a batch file as a specific User (or Administrator) from ASP.NET...
...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...
Sample page in ASP.NET to show you different collections like Forms, Querystring, Cookies etc
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...
Using Forms Based Authentication in ASP.NET for Static Content (Doc Files, PDF Files etc.)
Scenario: You want to implement Forms based authentication for ASP.NET web application, and you have certain document/PDF files which need to be protected. It should be such that even if you try to browse that .doc file directly, it should take you to Read More...
A sample aspx page to show the security details
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...
Dynamic Datagrid Series - 4.Multiselect Datagrid behaving like most other Mail Service's Datagrid
Requirement 4 ============= This is the 4th requirement of the Dynamic Datagrid Series at my blog. For previous Requirements, click here . Till now, we have a datagrid which is dynamically created with nicely formatted columns and rows which changes color Read More...
Dynamic Datagrid Series - 3.Highlighting Datagrid Rows when the mouse hovers over any row
Requirement 3 ============= We have a formatted datagrid which is dynamically added on your page. Without doing much coding, we want to provide the functionality in such a way that whenever the mouse hovers over any row the color should change. Also, Read More...
Color Chart code which enumerates all the names of the .NET "Color Structure"
It often becomes difficult to remember the color names in .NET. Now, if you have a datagrid or any other control and looking for appropriate colors, this code will help you to create a small page which will show you all the colors in one page, along with Read More...
Dynamic Datagrid Series - 2.Formatting Columns
Requirement 2 ============= Give the Datagrid a decent User Interface with Appropriate Headers, Footers and Formatted Columns. Let's create a new ASP.NET Web Application under Visual Basic Projects called DataGridDemo2. Add the following lines just after Read More...
Dynamic Datagrid Series - 1.Simple Datagrid Binding
In some of the forthcoming series in my Blog, I will start exploring Datagrid and some of the most common requirements we face in the programming life! I know it is quite late for 1.1 Datagrid since the ASP.NET 2.0 has already been released. But I never Read More...
Page view tracker