asp.net

Impersonation and Delegation

I am using impersonation is used to access file on UNC share as below. var ctx = ((WindowsIdentity)HttpContext.Current.User.Identity).Impersonate(); string level = WindowsIdentity.GetCurrent().ImpersonationLevel); On two Windows 2003 servers using IIS6, I am getting different impersonation levels: Delegation on one server and Impe...

Best way to show critical instructions to a user in a web app?

I'm also interested in more general thoughts, but here is my specific problem. In an ASP.NET web app, I am connecting to a 3rd-party via API. The 3rd-party requires that the user login and answer a few configuration questions to set this up. All of the questions except one the user can just choose the default. On one question if the user...

How would you refactor page members out of ASPX code?

I have inherited a project that uses the following pattern for passing parameters from the code behind to the aspx page. I know this is wrong, but I am on the fence on the best way to refactor it. Code Behind: using System; using System.Web; namespace BadPassing { public partial class _Default : System.Web.UI.Page { pr...

Best way to parse JSON data into a ASP.net object?

What's the best way to parse JSON date into and ASP.net object? I am trying to assist a coder friend of mine and he is trying to dump some data from a JSON string into a database using ASP.net. Are there any prebuilt scripts that would make this happen? Thanks in advance to any help. ...

Strange Date Problem with WebService ASP.Net SQL

My Server is located in US and I am running a query against it. The Data contained in the table both at Remote Server(U.S) and Local are same. The Problem is when I am retrieving the DataSet using WebService from Remote Server. The Dates Column is showing The Previous Date. For e.g Date Column is having "14 Jan 2007" but when retrieved ...

What is the best menu for an ASP.Net application?

What do you find to provide the best menu for an ASP.Net 2.0 - 3.5 web application? Suggestions do not have to particularly be ASP.Net controls, but could be other menu's that work well within an ASP.Net web application. I would like for the suggestions to be options that do not require purchasing or royalty fees. OpenSource suggestions...

How To Change Schema of DataSet at Runtime C# ASP.Net

I would like to know how to change the schema of DataSet at Runtime ...

Creating a reusable cms module (C#)

Are there any resources with information creating a self contained, reusable module? I need to create modules that I can drop into projects quickly and easily. An example would be a news module that would contain an admin area, news listing page, supporting css+js, etc. Am I smoking my socks or is this even possible? ...

what is ASPXAUTH cookie?

I am working in ASP.net cookie while using forms authentication I came to know about aspxauth cookie What is the purpose of this cookie? What is the location of this cookie? ...

Passing parameters to modelbinder on action parameter

Hi, I wish to use a modelbinder I've made directly on an action method parameter. Such as: public ActionResult MyAction([ModelBinder(typeof(MyBinder))] string param1) However, I need to pass a string into the binder itself, so I was wondering if you could do something along the lines of: public ActionResult MyAction([MyBinder("mystr...

Accessing TextBox Column in RadGrid By Telerik

Hi There Do you know how to access textboxes added to a radgrid that are not bound but are used to trap any row related input a user typed in to the textbox for that column. I need to access this data server side when a postback occurs. Your thoughts are greatly appreciated Thanking you Tony ...

How can i get the path configured for the current executing httphandler?

Consider an HttpHandler that can be configured for multiple paths. But based on the path that matched a url i could be able to select the settings to apply. I don't want to pass parameters in the url. ...

Is it possible to lock the ASP.net Dataset

I am having one requirement for locking the entire dataset. Is it possible to lock the ASP.net dataset that no further updates to dataset to be done. ...

How to prevent DOS attacks using image resizing in an ASP.NET application?

I'm currently developing a site where users can upload images to use as avatars, I know this makes me sound a little paranoid but I was wondering what if a malicious user uploads an image with incredibly large dimensions that will eat the server memory (as a DOS attack), I already have a limit on the file size that can be uploaded (250 k...

missing file or assembly tinymcetextbox

Hi There I have a project I am doing some maintenance work on and have got the solution files etc and attempted to build it and have got the following error:- Error 4 Could not load file or assembly 'TinyMCETextBox' or one of its dependencies. The system cannot find the file specified. This is a .net 2.0 project. Can anyone give me ...

SQL Server 2000 intermittent connection exceptions on production server - specific environment problem?

We've been having intermittent problems causing users to be forcibly logged out of out application. Our set-up is ASP.Net/C# web application on Windows Server 2003 Standard Edition with SQL Server 2000 on the back end. We've recently performed a major product upgrade on our client's VMWare server (we have a guest instance dedicated to u...

Using JQuery as an ASP.NET embedded webresource

I have an ASP.NET server control which relies on JQuery for certain functionality. I've tried to add as a webresource. My problem is my method of including the jquery file adds it to the body, or the form to be exact: this.Page.ClientScript.RegisterClientScriptInclude(...) The alternative to this is to add it as a literal in the head...

ViewState or HiddenField

If I have a simple piece of data to store (an integer or string for example) I might choose to store that in ViewState, or using a HiddenField control. Why would I choose one over the other? ViewState Hard for the user to decode (thought not impossible), which might be desirable HiddenField Value can be used in JavaScript Are t...

ASP.NET Membership Provider with Confirmation email

Is there any framework/library for using ASP.NET Membership Provider with confirmation email, something ready to be used ? Standard functionality used on almost all public web sites. ...

Is there a way to get rid of aspx placeholder files in a ASP.NET web deployment project?

I'm using a web deployment project in order to precompile my ASP.NET 3.5 web project. It creates a single extra DLL for the code in aspx and ascx files. And, for every aspx file there is a placeholder aspx file (empty) which needs to be copied to the server. I'd like to simplify the deployment process. Is there a way (configuring the II...