The DNN application I develop has this familiar problem in the deployment env (Win 2003/IIS 6). From all resources I've searched only one came close to my situation. i.e this request returning 404 instead of 302 I get.
Common suggestions like aspnet reinstallation, web.config settings, removing 'verify file exists' in IIS handler settin...
I am currently developping an web site that require DateTime entry and I am using MaskEdit extender on the TextBox used to enter the date and time. These DateTime are used as input to compute the total hours and other stuff that need to be displayed back on the same page (for previewing)
However, after the postback using MS AJAX, my com...
I want to handle links like this:
http://example.com/test.aspx?userid=tras&server=bum
I looked here, and they do this:
HttpApplication objApp = (HttpApplication) sender; <--- ERROR LINE
string userid = objApp.Request["userid"].ToString();
But I get the error:
Unable to cast object of type 'ASP.test_aspx' to type 'System.Web.H...
What is the difference between calling Response.Redirect from the codebehind of a page, versus calling HttpContext.Current.Response.Redirect from a shared method on another class?
When I call HttpContext.Current.Response.Redirect it is giving me a 404 error sometimes, when calling Page.Respsone.Redirect doesn't.
EDIT:
Oops, my mistake...
Hi,
I am using jquery remote tab in my asp.net application.So each tab will load an aspx page on click.I have implemented forms authentication in my application, so after authentication time out, if i click on a tab, the login page gets loaded in that tab instead of the actual page(which is the correct behavior).But i want to prevent thi...
hey i am using threads on my own not using thread pool.each thread is making web request .so is there any restriction from platform side fr number of threads to be used .or it will just degrade performance ?
...
Ok I got a strange issue that I hope someone could help with
I have a MVC project based upon this demo
http://blogs.msdn.com/hammett/archive/2009/04/23/mef-and-asp-net-mvc-sample.aspx
However it has a problem when specifying a strongly typed view I get this error
Parser Error
Description: An error occurred during the parsing of a r...
in my overridden OnPreRender function, I can modify the text of a label: Label1.Text='in OnPreRender'
However, I cannot do this.Header.Title='changed in OnPreRender'
The only way to change the browser title is by doing:
this.Controls.Remove(this.Controls[0]);
this.Controls.AddAt(0, new LiteralControl("<html><head><title>changed in On...
I am setting up a .net project that is called to generate other webpages. Basically a true CODE BEHIND page. How do I go about making a connection on a Class Library File, when there is no webconfig file present/available?
...
I asked from few weeks ago this question:
How can I teach a beginner to write ASP.NET web applications quickly?
And i got some good answers but i liked the answer which tell me to make some small projects with them (me with the beginners)
So i decided to collect some small websites ideas to do with them (i do a part then they complete...
Hello,
I am applying a new version of an assembly to a web project and have found that I am going to have to replace about 500 instances of the Register Assembly tag at the top of each web control. I considered registering it in the web.config but when I try this and remove the "Register" tag from the controls, i receive the "unrecognize...
the file looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<data>
<a7190>
<food>Almond</food>
<food>American Cheese</food>
<food>Apple</food>
</a7190>
<a7191>
<food>Trout</food>
<food>Tuna</food>
</a7191>
<a7192>
<food>Turkey</food>
<food>Wheat</food>
</a7192>
<a7193>
<food>Yogurt</fo...
Hi,
I am using a ListView and DataPager in my web project for pagination. It works fine, but the generated HTML for the pagination is simply a span containing some hyperlinks.
I wanted to customize the HTML and display the links in an unordered list instead (ul).
Anybody know how this can be done? One way I can think of is CSSFriendly...
<rant>
In development, the biggest time sink seems to be Visual Studio. Solving issues with it eats up half of my development time and I'm left implementing with half the alloted time!
</rant>
Back to the question. I've got a couple of custom controls developed in ASP.NET: RaiseEventControl, HandlerControl. They reside on a Parent For...
I want to setup a Win7 virtual machine to develop using Visual Studio 2008 and ASP.Net 3.5.
I don't know what the best order to install what I need. I will need to install:
a) Visual Studio 2008
b) IIS
c) Service Packs for Visual Studio and/or .Net Framework
My last try was bad, I cannot do my old ASP.Net 3.5 web app to work on Win7 ...
I'm using a SessionObject which is stored inside a database.
The SessionObject is wrapped inside SessionObjecWrapper which implements IDisposable.
The SessionObjectWrapper is then placed in HttpContext.Current.Session.
On session expiration, does ASP.NET "dispose" (or lets the GC do just that) of any object inside the session?
And on a...
For some reason by css link in a webforms master page is getting mangled by ASP.NET.
The page using the masterpage is located in /subdir1/subdir2/page.aspx
Not sure why it is happening but here is a snippet of the code:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<link href="...
I'm working on a web project that is multilingual. For example, one portion of the project involves some custom google mapping that utilizes a client-side interace using jquery/.net to add points to a map and save them to the database.
There will be some validation and other informational messaging (ex. 'Please add at least one point to...
I'm trying to create a web page that will display an appropriate user control based on the selected value of a drop down list.
Basically the page layout is this:
Drop Down Selection
< User Control created based on drop down selection >
I have it half working... the controls are changing when the selection changes.
In OnInit(), I dynam...
This one is a little... odd. Basically I have a form I'm building using ASP.NET Dynamic Data, which is going to utilize several custom field templates.
I've just added another field to the FormView, with it's own custom template, and the form is loading that control twice for no apparent reason. Worse yet, the first time it loads the ...