|
Dynamically Build an Array using ArrayList
|
Total Hit (1697) |
«Code LangId=4»Dim Values as New ArrayList()
Values.Add("Scott")
Values.Add("Fred")
Values.Add("Sam")
Dim Names as String()
Names = Values.ToArray(Type.GetType("System.String"))«/Code»
Note that because ArrayList implements ICollection -- you can do standard
foreach interation over it.
....Read More |
Rating
|
|
|
|
|
Saving HTTP requests for better debugging
|
Total Hit (2589) |
The new SaveAs method of the Request object saves the current HTTP request to a file, which can be very useful for logging and debugging reasons. You should pass True to its second argument if you want to save HTTP headers as well:
«Code LangId=4»
Request.SaveAs "c:\lastrequest.txt", True
«/Co
....Read More |
Rating
|
|
|
|
Securing an ASP.Net application
|
Total Hit (5325) |
this article develops a reasonably secure login facility utilizing the inbuilt features of ASP.Net (forms based authentication). Also presented is an introduction to related security features and issues, in particular mentioning how security could be further improved by consideration of technologies
....Read More |
Rating
|
|
|
Windows Authentication with Web Services
|
Total Hit (749) |
You can enable windows authentication for your web applications using web.config file. You need to set authentication mode to Windows in the <authentication> section. Additionally you need to set <authorization> section to deny anonymous access. Once you set these parameters in the web.config file t
....Read More |
Rating
|
|
|
|
|
|
Tracing Features of ASP.NET
|
Total Hit (740) |
If you were an ASP developer in past, you know how difficult it was to debug your applications. Commenting and un-commenting those Response.Write statements was a nightmare for most of the developers. ASP.NET simplifies the debugging and tracing process a lot. This in depth article takes you through
....Read More |
Rating
|
|
|
|
|
|
Understanding How to Use XSL Transforms
|
Total Hit (762) |
Original abstract: XSLT, XPATH and how to apply the concepts in .NET. Examines the concept of transformation and how an XSLT stylesheet defines a transformation by describing the relationship between an input tree and an output tree. Continues to look at the structure of a stylesheet, its main sub-c
....Read More |
Rating
|
|
|
|
Yet, another ViewState viewer
|
Total Hit (4170) |
In the following lines, I'll show how to create a very simple viewer that displays the contents of the controls store in view state. It's NOT just a tree holding all the ViewState data as stored in __VIEWSTATE field, but a list of all the controls storing data in ViewState and the saved data.
....Read More |
Rating
|
|
|
|
|
Displaying Images from SQL Server database in ASP.NET DataGrid
|
Total Hit (784) |
ASP.NET DataGrid web control can be bound quickly with any database table like SQL server. For most of the data types all you need to do is to add a bound column and set its datafield property to the column name from the table. However, displaying image data type i.e. binary data is not that easy. I
....Read More |
Rating
|
|
|
How To: Set Up Client Certificates
|
Total Hit (1082) |
IIS supports client certificate authentication. This How To shows you how to configure a Web application to require client certificates. It also shows you how to install a certificate on a client computer and use it when calling the Web application.
|
Rating
|
|
|
|
Including a DropDownListBox in an Editable DataGrid
|
Total Hit (574) |
The data choices for some database table columns are relatively fixed. Examples would be countries, states, and counties for instance. In these cases a dropdown list of fixed choices makes more sense than keyboard input where mistakes can be made easily. In an editable datagrid you can include dropd
....Read More |
Rating
|
|
|
ASP.NET Query control
|
Total Hit (587) |
A declarative ASP.NET Query control with parameter support; this article offers examples of custom control parsing and provider-neutral database access
|
Rating
|
|
|
|
Work with the DataGrid control?
|
Total Hit (534) |
«LI» Introduction to Server-Side Data
«LI» Connections, Commands, and DataSets
«LI» Accessing SQL-based Data
«LI» Binding SQL Data to a DataGrid
«LI» Performing a Parameterized Select
«LI» Inserting Data in a SQL Database
«LI» Updating Data in a SQL Database
«LI» Deleting Data in a SQ
....Read More |
Rating
|
|
|
User controls in ASP .NET
|
Total Hit (4551) |
In traditional ASP code reuse and encapulation was traditionally done using a combination of include files and web classes. While this worked reasonably well for business logic, it was always a little fiddly for visual components. For example, if you wanted to display a grid of data in many differen
....Read More |
Rating
|
|
|
|
|