Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:405437
More Search Options
RSS Available
Matching Posts
Re: How to change default view locator?
The quick and dirty solution: Introduce a base class for all your controllers, and do it in its constructor. The more elegant solution: Create a custom controller factory and do it from its CreateController method.
Posted to
ASP.NET MVC
(Forum)
by
Fredrik K
on 4/21/2008
Re: Routes with float parameters ( periods )
I've been tinkering about a bit with using regular expressions for route patterns for a while now, and have stumbled upon the same problem regarding outbound urls. The only thing I can think of, is to allow for each route being registered to define a delegate callback which can be used to generate the url for that route. Something like: routes.Add( new RegexRoute ( "^(?<controller>.*?)//(?<action>.*?)(.aspx)?$" , new MvcRouteHandler ()) { GetVirtualPath = ((route, context
Posted to
ASP.NET MVC
(Forum)
by
Fredrik K
on 3/28/2008
Filed under: ASP.NET MVC
Re: List of all UITypeEditor's ?
Hehe, Scandinavia is a great place ;) When you look at a class with Reflector, there are two nodes 'Base Types' and 'Derrived Types' in the tree view on the left. Expand the 'Derrived Types' one, and it'll show all the classes that inherit from the class you're looking at. I just did that for UITypeEditor, and took some screenshots :) Note that it will only show information for any assemblies that are opened in reflector - you need to open System.Design.dll manually
Posted to
Custom Server Controls
(Forum)
by
Fredrik K
on 7/25/2007
Re: List of all UITypeEditor's ?
Using Reflector and looking up all classes that inherit from UITypeEditor I got this list: Grey ones are internal classes.
Posted to
Custom Server Controls
(Forum)
by
Fredrik K
on 7/21/2007
Re: checkbox validation
Use RadioButtons instead, which have this behavior.
Posted to
Web Forms
(Forum)
by
Fredrik K
on 7/20/2007
Re: problems with datetime searching c#
Use a parameterized query instead, then you dont have to worry about the format - and more importantly you wont be vulnerable to sql injection attacks .... Something like: SqlDataAdapter dtr = new SqlDataAdapter("select * from dbo.ImportedCashins where JTTransDate between @from AND @to", conn); dtr.SelectCommand.Parameters.AddWithValue("@from", fromDate); dtr.SelectCommand.Parameters.AddWithValue("@to", toDate);
Posted to
Getting Started
(Forum)
by
Fredrik K
on 7/19/2007
Re: Dynamic Image
[quote user="jobejufranz"] my Web Server will be filled with junk images right? [/quote] No, its still the same image, you just add a random querystring to it that makes the url seem different to the browser :) For example: "Images/image.jpg?12352345" and "Images/image.jpg?5454542" both point at Images/image.jpg, but the url is different so the browser will think they're two different images.
Posted to
Web Forms
(Forum)
by
Fredrik K
on 7/18/2007
Re: duration of cache object
Note, the item may still be removed from the cache if ASP.NET decides it needs to free up memory. The default priority is Normal, which means that it will be scavenged after all Low and BelowNormal items.
Posted to
State Management
(Forum)
by
Fredrik K
on 7/18/2007
Re: duration of cache object
The default is Cache.NoAbsoluteExpiration with Cache.NoSlidingExpiration - which effectively means it will "never" expire.
Posted to
State Management
(Forum)
by
Fredrik K
on 7/18/2007
Re: Creating a PersistentControl class
Because state is not preserved on the server between postbacks :) When a new request (GET) comes in, a new instance of the Page class for that page is created, then rendered to the output, and the Page object is lost (it would be far too expensive to keep it in memory between postbacks, and also raise a lot of other difficult problems). When the user then does something that causes a postback (POST), again a new instance of the Page class is created. ASP.NET does perform some magic at this stage
Posted to
Web Forms
(Forum)
by
Fredrik K
on 7/18/2007
Page 1 of 16 (160 items) 1
2
3
4
5
Next >
...
Last »
WindowsClient:
Developing an installer for your Surface application
ASP.NET:
Visual Studio 2010 and .NET 4 Update
WindowsClient:
Microsoft’s product placements in The Big Bang Theory
Channel 9:
Channel 9 Live at PDC09: Martin Cron
Channel 9:
Channel 9 Live at PDC09: Erik Meijer and Thomas Lewis
WindowsClient:
Download Data Services Update for .NET 3.5 SP1
Silverlight:
Extending the SMF for the HVP
Silverlight:
Extending the SMF for the HVP
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 12 of 13
Channel 10:
Bing Maps Update: Map Embeds and Draggable Routes
WindowsClient:
New WPF Showcase: WEB Touch
ASP.NET:
ASP.NET MVC 2 RC Released
WindowsClient:
Very exciting Microsoft Pivot from Live Labs
WindowsClient:
XAML for UI & .rc files
TechNet Edge:
DNS Security (DNSSec) Overview
Silverlight:
Silverlight 4 demos from my PDC Keynote now available
Channel 9:
Channel 9 Live at PDC09: Dave Campbell
Channel 9:
Channel 9 Live at PDC09: Yousef Khalidi
Channel 9:
Twitter App for Zune Launches
WindowsClient:
Incarnate
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online