asp (13,472)


sql ASP.NET Site Maps

sql ASP.NET Site Maps

Has anyone got experience creating SQL-based ASP.NET site-map providers? I've got the default XML file web.sitemap working properly with my Menu and SiteMapPath controls, but I'll need a way for the…


c# Adding scripting functionality to.NET applications

I have a little game written in C#. It uses a database as back-end. It's a trading card game, and I wanted to implement the function of the cards as a script. What I mean is that I essentially have…


Checklist for IIS 6/ASP.NET Windows Authentication?

I've been having trouble getting my ASP.NET application to automatically log users into the Intranet site I'm building. No matter the googling or the experimentation I applied, there is always a logi…


How do I connect to a database and loop over a recordset in C#?

What's the simplest way to connect and query a database for a set of records in C#?…


c# How to get the value of built, encoded ViewState?

I need to grab the base64-encoded representation of the ViewState. Obviously this would not be available until fairly late in the request lifecycle, which is OK. For example, if the output of the pag…


c# ViewState invalid only in Safari

One of the sites I maintain relies heavily on use of ViewState(it isn't my code). However, on certain pages where the ViewState is extra-bloated, Safari throws a "Validation of viewstate MAC failed"…


Catching SQL Injection and other Malicious Web Requests

I am looking for a tool that can detect malicious requests(such as obvious SQL injection gets or posts) and will immediately ban the IP address of the requester/add to a blacklist. I am aware that i…


ASP.Net Custom Client-Side Validation

I have a custom validation function in JavaScript in a user control on a.Net 2.0 web site which checks to see that the fee paid is not in excess of the fee amount due. I've placed the validator cod…


asp.net Bandwith throttling in IIS 6 by IP Address

I am writing an application that downloads large files in the background. All clients are logged in locally, or through a VPN. When they are logged in locally, I do not want to throttle downloads. Ho…


ASP.NET built in user profile vs. old stile user class/tables

I am looking for guidance regarding the best practice around the use of the Profile feature in ASP.NET. How do you decide what should be kept in the built-in user Profile, or if you should create you…


Triple Quotes? How do I delimit a databound Javascript string parameter in ASP.NET?

How do I delimit a Javascript databound string parameter in an anchor OnClick event? I have an anchor tag in an ASP.NET Repeater control. The OnClick event of the anchor contains a call to a Javas…


c# CSV File Imports in.Net

I realize this is a newbie question, but I'm looking for a simple solution-it seems like there should be one. What's the best way to import a CSV file into a strongly-typed data structure? Again si…


c# How to RedirectToAction in ASP.NET MVC without losing request data

Using ASP.NET MVC there are situations(such as form submission) that may require a RedirectToAction. One such situation is when you encounter validation errors after a form submission and need to r…





net mvc how core example web from with not using