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:685459
More Search Options
RSS Available
Matching Posts
Re: ComplexModelBinder not compatible with auto round-tripping
Another option is to write your own binder. Here is one that pretty much works just like the complex binder but you can use "username" instead of "user.username" in your view It's at http://www.emadibrahim.com/2008/09/03/use-modelbinder-to-generically-bind-complex-types/
Posted to
ASP.NET MVC
(Forum)
by
eibrahim
on 9/23/2008
Re: Need help: Calling a ViewUserControl through jQuery
Did you try using the full url instead of relative? You can try to generate the proper url using url helpers.
Posted to
ASP.NET MVC
(Forum)
by
eibrahim
on 9/5/2008
Re: Html.ValidationMessage() Error
I think inserting a long string in a 50 character long database filed doesn't throw an error. I believe it just truncates it. When you step through the code does your catch clause execute?
Posted to
ASP.NET MVC
(Forum)
by
eibrahim
on 9/5/2008
Re: One controller method for all requests
You can create a catchall route and then parse the query on the server and determine which action to redirect to. You can take a look at these links: http://www.emadibrahim.com/2008/04/10/tricky-aspnet-mvc-url-rewriting/ and http://weblogs.asp.net/stephenwalther/archive/2008/07/02/asp-net-mvc-tip-13-unit-test-your-custom-routes.aspx
Posted to
ASP.NET MVC
(Forum)
by
eibrahim
on 9/5/2008
Re: How could we use ModelBinder to interact with Multi DataTables?
Check out some of these posts that might help: Mine : http://www.emadibrahim.com/2008/09/03/use-modelbinder-to-generically-bind-complex-types/ Scott Gu: http://weblogs.asp.net/scottgu/archive/2008/09/02/asp-net-mvc-preview-5-and-form-posting-scenarios.aspx Maarten Balliauw: http://blog.maartenballiauw.be/post/2008/09/01/Using-the-ASPNET-MVC-ModelBinder-attribute.aspx
Posted to
ASP.NET MVC
(Forum)
by
eibrahim
on 9/5/2008
Re: RenderUserControl vs RenderPartial, setting values to properties on the control....
Also remember that it is <% and not <%= i.e. don't use the equal sign = and a add a semi-colon at the end... e.g. <% RenderPartial(blah blah); %> [update: I fixed the post]
Posted to
ASP.NET MVC
(Forum)
by
eibrahim
on 9/5/2008
Re: Dropdownlist Onclick
There is no postback in MVC but you can generate the html onclick method like this: <%=Html.DropDownList( "ddlStats" , new Dictionary< string , object > {{ "onclick" , "javascript:clickme();" }}) %>
Posted to
ASP.NET MVC
(Forum)
by
eibrahim
on 8/25/2008
Re: Unity and MVC Preview 4 membership
I haven't really used Unity but here is my setup code using Ninject - it might give you an insight on how to do it in unity Bind<IFormsAuthentication>().To<FormsAuthenticationWrapper>(); Bind<MembershipProvider>().ToConstant(Membership.Provider);
Posted to
ASP.NET MVC
(Forum)
by
eibrahim
on 8/25/2008
Re: Mocking HttpContext.Request.Form using Rhino Mocks
I am not sure if this will help but I used Scott's example and modified it a little bit and made it work with Moq - check it out http://www.emadibrahim.com/2008/04/04/unit-test-linq-to-sql-in-aspnet-mvc-with-moq/
Posted to
ASP.NET MVC
(Forum)
by
eibrahim
on 8/25/2008
Re: How could i pass data between controllers and views
First you need to call categoryList.ToList() because LINQ uses deferred execution. Calling ToList will cause the query to execute. Other than that you are doing everything write. You can cast the ViewData.Model to the same type as categoryList so your code should look something like this: foreach (var item in (List<cms_category>) ViewData.Model) Or if you prefer you can change the your class definition in Index.aspx.cs file to: public partial class Index : ViewPage <List<cms_category>>
Posted to
ASP.NET MVC
(Forum)
by
eibrahim
on 8/25/2008
Page 1 of 2 (16 items) 1
2
Next >
TechNet Edge:
Improving Collaboration with SharePoint - Tech Focus December 2009 Part 1
Channel 9:
Channel 9 Live at PDC09: Scott Guthrie
ASP.NET:
More on medium trust: what permission are you missing?
Channel 9:
Channel 9 Live at PDC09: Bob Muglia
WindowsClient:
Adventures With Windows Azure Diagnostics
Mix Online:
Adventures With Windows Azure Diagnostics
Channel 9:
Channel 9 Live at PDC09: Ray Ozzie
Channel 9:
Coding4Fun: DrinkTendr
Channel 9:
TWC9: Scott Hanselman, John Galloway, Bing, parallel unit tests, more
TechNet Edge:
ISA to TMG Migration Guidance
Channel 9:
Life at Microsoft: Episode 3
TechNet Edge:
Microsoft Windows Server 2008 to AITP
ASP.NET:
How important is medium trust to you?
WindowsClient:
Microsoft Web Platform & You
WindowsClient:
New Book: Developing for Microsoft Surface
Channel 9:
BugCamSmash in Action!
Channel 9:
Virtual Earth Videomap Movies
TechNet Edge:
AD RMS Certificates and Licensing on the Client and the Server
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 10 of 13 [C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 10 of 13]
Channel 10:
Bing Launches 2nd Homepage Photo Contest
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online