asp.net

Is Django Development faster than ASP.NET for small/medium-size apps?

This is one of the things I've been hearing in Django VS ASP.NET discussion. I personally find it hard to believe but I never tried Django. So my question is: assuming that I am equally familiar with both python and the .NET framework but I do not know anything about Django or ASP.NET (with Visual Studio), is Django faster than ASP.NET ...

raise postback event from div tag

I was trying to raise a post back event by div tag. I don't know how to do that. AL I could think of is javascript, but that is not what I want. I need to call function of a class inside a event handler. ...

getting domain\username for web app on intranet without loggin in

I have a web app on our intranet (VS 2005). There are a couple pages that don't require the user to be logged into the app (feedback and the default page). I am trying to get the domain and username to display and/or send with the feedback. Is there a way to do this without requiring the user to log in? I've tried this.Request.Server...

Why would Guid.NewGuid() be generating an empty guid?

I have a Guid.NewGuid() call that is creating an Empty Guid. What would cause such a problem and how can I fix it? Edit: The code: <WebMethod()> _ Public Function CreateRow(rowValue As String) as String Dim rowPointer As Guid = System.Guid.NewGuid() Dim rowPointerValue As String = rowPointer.ToString() Try Dim r...

MS MVC Preview 2 and .NET 3.5 sp1

I have a site built with MVC Preview 2 and have not got around to upgrading to latest release, mainly because of the number of changes required and I have not had time. Anyway, last night my host installed .NET 3.5 sp1 and it killed my site. It is an identified problem (thats what you get for using pre betas) on this site http://haacked....

asp.net viewstate encryption

I have a few questions about when and how viewstate is encrypted in asp.net 3.5. For instance, if I have a machinekey entry in my web.config like: decryptionKey="AutoGenerate,IsolateApps" validation="AES" decryption="Auto" /> Is viewstate encrypted at this point? Or do I need to specify the viewStateEncryp...

Can an ASP.NET HttpHandler handle an http 400 - Bad Request?

We have an HttpHandler that deals directly with binary posts over HTTP from custom client software. The client software occasionally sends data which results in IIS 7 responding with a 400 - Bad Request. Since the "400 Bad Request" is special in that HTTP.SYS transparently handles it in kernel mode without notifying user mode of anything...

Why are commas inserted when innerHTML is copied after Postback?

This case is going to sound complicated, but it's not that bad. The javascript at the end of this code seems to be sound. EDIT: Here's the page running on a live server. The first example doesn't alternate between open and closed because I ripped out a lot of code in order to narrow the example down as much as I could. http://69.64.80....

ASP.NET: How to change the itemTemplate used per row in an <asp:repeater>?

Existing code is using an asp:repeater to build an HTML table. (emphasis on the existing design). This is some partial pseudo-code to generate the table: <asp:repeater OnItemDataBound="ItemDataBound" ... > <headertemplate> <table> <thead> <tr> <td>Date</td> <td>Type</td> ...

Dynamic PDF Image Stamping in ASP.NET

Current project involves a series of PDFs in various sizes. Each PDF has a place for a logo. There are 50 or so possible logos. They are a consistent size, and, regardless of which PDF size, the logo does not need to be resized, just placed. The client currently just has a few PDFs but will be adding more on a regular basis. I am ...

Connection Management ASP.net

How do you manage your database connections in your ASP.Net application? My understanding tells me the "best" way is to open a connection, make a query, close the connection - and do that multiple times because connection pooling makes the cost negligable. The problem comes when I have a DAL where each method looks after its own connec...

Is there an open source Asp.net membership administration GUI (like netwebadmin, but works online)?

Visual studio 2005 comes with a project that lets you use the asp.net membership provider to look up, add, edit, and delete users and roles. It unfortunaltly can't be used online, and in order to have an adminiistration area in your site, it appears that you have to code your own admin interface. Is there an opensource, or free project...

Unit Testing Legacy ASP.NET Webforms Legacy Applications

I've inherited a legacy web application that has no unit tests in it. I'd like to add some, but am at a loss of where to start. Should I add them to old code? Or just new code going forward? What if that code interacts with legacy code? What would you suggest? ...

IIS Log Files showing Rewritten rather than Original Url

I've got a problem in that changing the way I'm doing Url Rewriting in an Asp.Net application has changed the IIS log files from looking like this: /page/ 80 etc.. /page/anotherpage/ 80 etc... to default.aspx page=1 80 etc... default.aspx page=2 80 etc... I'm a bit stumped as to how this happened. Is there a setting I'm missing (Win...

What is the best ASP.NET Open Source forum?

What is the best ASP.NET Open Source Forum platform? I need take a forum and integrate it into my existing website so that they share the same user logins. ...

ASP.NET custom error page - Server.GetLastError() is null

I have a custom error page set up for my application: <customErrors mode="On" defaultRedirect="~/errors/GeneralError.aspx" /> In Global.asax, Application_Error(), the following code works to get the exception details: Exception ex = Server.GetLastError(); if (ex != null) { if (ex.GetBaseException() != null) ...

asp.net survey questionnaire engine

I am looking to implement (or build as a last resort) a type of survey engine that allows for extensibility and integration into an existing workflow engine. The survey/questionnaire engine should allow for admin users to add new questions and response types (text/bool/multiple/etc), should use SQL Server for persistence and ASP.NET 2.0...

How to trim string in ClientValidationFunction

I am writing a client-side validation function for CustomValidator and I need to check length of entered string. But before, to counteract cheaters a little, I want to remove all leading and trailing spaces from the string. What is the easiest way to do it in this scenario? Thank you! ...

Timesheets: Retrieve data using SQL, LINQ or class?

My problem is that I want a grid that is populated with a set of times spent on tasks. It needs to have the days of the week at the top (these would preferably be fixed - i.e. Sun, Mon... Sat) and task names down the left column. The contents of the grid will have the individual hours spent for that day on that task. What would the be...

ViewState decoding failure when client connects via multiple IP's per request

We have a semi-weird issue for our site. Consistently, from 1 anonymous* user the following error occurs: Exception type: System.FormatException Exception message: Invalid length for a Base-64 char array. After some investigation, it appears the user is using some form of load-balancing firewall, as the IIS logs shows the r...