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:774248
More Search Options
RSS Available
Matching Posts
Re: Creating non-visual control
I created a similiar control recently. Here is some sample code: [ToolboxData( "<{0}:VerifyAccess runat=server></{0}:VerifyAccess>" )] [NonVisualControl( true )] public class VerifyAccess : Control { protected override void OnInit(EventArgs e) { // code to verify access and redirect if needed } protected override void Render(HtmlTextWriter writer) { } } The NonVisualControl attribute stops Studio from displaying the appearance properties. Overriding the Render method stops the
Posted to
Custom Server Controls
(Forum)
by
Michael Carman
on 3/30/2008
Re: Create a repeater grouped in alphabetical order
Yes, it is possible. The key is to use a DataList with an embedded Repeater control. < asp:DataList ID= "dlInitials" runat= "server" onitemdatabound= "dlInitials_ItemDataBound" RepeatColumns= "3" RepeatDirection= "Vertical" ItemStyle-VerticalAlign= "Top" > < ItemTemplate > < div > < div >< strong > <%# Container.DataItem %> </ strong ></ div > < div > < asp:Repeater ID= "rptNames"
Posted to
Data Presentation Controls
(Forum)
by
Michael Carman
on 3/30/2008
Re: Code Blocks vs. Code Behind
Yea, this is a good discussion. I personally use a combination of inline code, HTML helpers and server controls. For reason already mentioned in this thread (refactoring, type safey, etc..), I always use inline code when referencing the model. But I do like to use server controls for common HTML blocks. For example, here is a some of code for a simple form. < form action= " <%= Url.Action(new {action="SaveContact", id=ViewData.ContactId}) %> " method= "post"
Posted to
ASP.NET MVC
(Forum)
by
Michael Carman
on 3/29/2008
Re: Bug in preview 2: Resolving URLs using lambdas
Ok, I did a little more testing. Apparantly, passing a null or empty value only works if the parameter is defined in the route. To get it to work, I created this method in my HomeController class: public void Test( string title) Then I added the following route: routes.Add( new Route( "home/test/{title}" , new MvcRouteHandler()) { Defaults = new RouteValueDictionary( new { controller = "Home" , action = "Test" , title = "" }), }); With that route in place,
Posted to
ASP.NET MVC
(Forum)
by
Michael Carman
on 3/5/2008
Re: Bug in preview 2: Resolving URLs using lambdas
What is the name of your parameter. I was only able to get the null value to work if I named the parameter "id", like this: public void Index(string id) ...
Posted to
ASP.NET MVC
(Forum)
by
Michael Carman
on 3/5/2008
Page 1 of 1 (5 items)
ASP.NET:
Live Preview jQuery Plugin
WindowsClient:
Remember JScript closures capture all variables in scope
TechNet Edge:
UAG reaches RTM
Channel 9:
Who, What, When, Where, Why and How of MIX10
Channel 10:
Berlin Wall in Silverlight
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 2, Installation
Silverlight:
Contributing to the SL HVP
Silverlight:
Best SF Books of All Time
Channel 9:
Reactive Extensions API in depth: Repeat
Channel 9:
Jeffrey Van Gogh: Testing Rx with Pex
Channel 9:
The Visual Studio Documentary: Dan Fernandez Full Length Interview
ASP.NET:
Search Engine Optimization (SEO) Toolkit
Channel 10:
This Is Your Data on Silverlight
ASP.NET:
How the IIS SEO Toolkit Saved My Butt
TechNet Edge:
Windows 7 XP Mode User Experience
ASP.NET:
Using WCF RIA Services without Silverlight in Visual Studio 2010 for building 3 tier ASP.NET Applications
Channel 9:
Ping 41: Top stories of 2009, bing, windows 7, laptop hunters, azure
Channel 9:
endpoint.tv - Windows Server AppFabric in action monitoring and troubleshooting
Channel 10:
Windows Marketplace for Mobile Opens to 6.0, 6.1 Phones
Channel 9:
Rx API in depth: Hot and Cold observables
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online