asp.net

HttpRequest object in HealthMonitoring

I'm setting up some health monitoring for an asp .net 2.0 app. I'd like to be able to pick up the original web request object. I'd like to be able to inspect the headers sent through and if possible any post data. I currently have a event provider that inherits from WebEventProvider, but this does only includes the HttpWebResponse data...

Is there any method to clean the website unused resources

Is there any method to clean the website unused resources like... CSS that are no more used in the website skins that are no more than in the website images that are no more than in the website Javascript function that are no more used in the website this thing require, when website is completed and ready for deployment. ...

jquery $post posts page, but Request.Form is null

I have few input fields in a form. after some validation, I use jquery to post the page. $.post("Myproduct.aspx?action=1"); The post appears to go through. But when I debug the server code, the request.form[] is null. Has any one had this problem? ...

Asp.net webparts or portlet like functionality

What is the best way to let other parties use your website as their own content using their own style ? We have build a small website for a customer, asp.net, .net framework 3.0. Now the customer wants other parties to be aple to use our website in their own websites while maintaining the styling of the costumers website. I have done ...

Double __doPostBack when using GetPostBackEventReference and RadAjaxPanel

I have a button control which is disabled as soon as the user clicks a button (so that they don't click more than once if the waiting time is long). This is achieved like this _buttonOk.OnClientClick = "disableDialogButtons();" + Page.ClientScript.GetPostBackEventReference( _buttonOk, string.Empty ) + ";"; I am now updating my applica...

ASP.Net 1.1 Viewstate Security

In ASP.Net 1.1 is it possible for the end user to change the viewdata before it's sent back to the server to for instance make it look like an item is selected in a dropdown that does not exist? I've tried manipulating the values in the dropdown using firebug but the server seems to ignore that, I'm presuming because the viewstate says t...

How do I access the ModelState from within my View (aspx page)?

How do I access the ModelState from within my View (aspx page)? ...

Automatically logging into and out of FBA SharePoint site

We've got a WSS 3.0 site that is using Forms Based Authentication (FBA). We want to set the site up so that certain users can be logged in automatically, rather then getting the login screen, and I'm not sure of the best way to do this. Actually, based on this article, I've already created an HTTP Module that handles the logging in. M...

Creating public temporary files with expiration time.

Hi, I'm building a small webapp on win2003 with asp.net 2.0. I need to create small files that i suppose to be accessable by for the web and the files is suppose to have 10 minute expiration time. I didn't find any support for this in the framework and my other solution that came to mind was to have a schedule job that cleans the file ...

How can I confirm and then disable a button in asp.net/javascript

I have a standard ASP.NET 2.0 web page with a Delete button on it. What I need and can't figure out how to pull off is when the user presses the delete button a confirm dialog popups asking the user "are you sure?". If the user says yes then I want to disable the delete button and perform a postback that will run the server side code del...

Browser fails to recognise Content Type header correctly

I have an issue with my browser failing to recognise the content types I am sending in my responses and trying to download the file instead of displaying it. I have a generic handler (named SPARQL.ashx) written in ASP.Net which does some work and produces an object which is of two possible types. Either it gets a SPARQLResultSet or a...

OnFocus TextBox change Gridview Header Font??

Hey guys I have a gridview and below it 4 textboxes I'm using to enter data, for styling purposes I'd like to highlight the specific column headers as the user enters/leaves focus on each textbox.. I've been able to highlight the entire row color on focus using: <script language="javascript"> function headerRoll(id) { document.get...

JQuery - ASP.NET and JQuery

Do I need to remove code-behind *.cs files to use JQuery with ASP.NET? If yes, why should I do that? ...

Windows App (One Click) Vs Web App

We are moveing our old Access VBA / SQL 2005 application to new technologys and have 2 options do we build a Windows Form Application with Microsoft One Click Deploy or a ASP.Net Website? The application is a work force mangement system booking jobs dynamic scheduling gantt chart components. It will be used by 400 + Users over 20 Locati...

How do I stop web.config inheritance

Ok I have a Asp .net 3.5 Website in IIS6 on Windows Server 2003 (32bit). with a Asp.Net 1.1 WebApplication in a sub virtual directory. (this is set to use the older 1.1 .net runtime and is configured with it's own App Pool. So for all intents and purposes is completely seperate. Except it keeps on inheriting the root website's .net 3...

asp.net (C#): get value of a non-displayed field from a gridview selection

I have a GridView control bound to an ObjectDataSource which returns a list of objects that look like this: public class X { public string DisplayName { get; } public string Guid { get; } } I don't want to show the Guid property in the GridView, but I need to retrieve it when an object is selected. I co...

Convert Word Document to XML and back ASP.Net

Hi All, I need to convert Word Document to XML and back once editing has been performed on it. I don't have Microsoft Office Installed at my server, and I want my users to edit their documents via Web Browser. I am using C# and ASP.Net Thanks ...

NonComVisibleBaseClass was detected; How do I fix this?

My class derives from System.Web.Security.MembershipUser I am getting this error when submitting the form. The popup form uses ASPPDFand the application did not have this problem before implementing the custom MembershipProvider goodies. Note this is a debugging error only. It seems to work when I am not debugging. Does anyone know how I...

place multiple formviews in the same html table

I have two formview objects on a page next to each other (with different data sources), and they generate html table rows for me. Each formview when rendered places fields in thier own html table, however, and I'd much rather have them in one html table. Is there any way to tell a FormView not to encapsulate the rendered contents insid...

Retrieve single Entity Framework entities using a LINQ query or GetObjectKey?

It looks like GetObjectKey has the benefit of searching for existing, instantiated objects, and THEN the data store. However, it also seems like you lose some of the strong typing, and need to cast your resulting object: GetObjectKey int customerID = 1; EntityKey key = new EntityKey("MyEntities.Customers", "CustomerID", customerID); C...