Search

You searched for the word(s): userid:67892

Matching Posts

  • Re: No Return Type for a Stored Procedure in a Linq to SQL Data Layer

    I was having this problem because my db changed and the stored procedure would no longer run. Once I fixed the stored procedure, the Return Type would get set to (Auto-generated Type) in the designer.
  • Re: CS0436 problems with WDP 2008

    Thanks, HMobius! That was exactly my problem.
    Posted to VS Web Deployment Projects (Forum) by ghotiman on 10/16/2008
  • Can the routing engine build URLs for me inside a controller action?

    In my Views I've used Url.Action() to make URLs to put on my pages. In some cases, I would like to build a URL in a controller action and pass it to a View. I can't use Url.Action since Url is a property of the ViewPage of the type UrlHelper, and the Action method relies on the ViewContext. It seems like it would be better if UrlHelper didn't rely on ViewContext. Anyway, I am digressing, does anyone know how I can have the Routing engine build URLs for me in the context of a controller
    Posted to ASP.NET MVC (Forum) by ghotiman on 7/22/2008
    Filed under: MVC, routing
  • Re: How possible to retrieve multiple image from single datatable row ?

    I don't know that this question belongs in the ASP.NET MVC thread. You might have better luck posting it in another ASP.NET thread, but here is how I would go about doing what you want to do. You have a few options to retrieve these images and show them in your page. Keep in mind there is going to be a separate trip to the server for the page and each image you are showing. The image handler will return just one image at a time. 1. Create a separate handler for each image. Each handler should
    Posted to ASP.NET MVC (Forum) by ghotiman on 5/20/2008
    Filed under: image handler ashx
  • Routing with the host header

    Does anyone know if you can set routing rules based on the http host header? I know you couldn't do it with CTP1, and I haven't seen how to do it with the newer releases. Bonus points, if you can tell me how to test these routes as well. Thanks.
    Posted to ASP.NET MVC (Forum) by ghotiman on 4/18/2008
    Filed under: mvc routing host
  • Re: Deploying asp.net mvc web application on IIS 7.0

    I'm pretty sure that you will need 3.5 installed on the server. With CTP2 you can deploy the MVC dlls to the bin folder, but you will still need the .NET Framework 3.5. You might want to look at another shared host. I know Crystal Tech and Server Intellect both have 3.5 installed. Crystal Tech is really on top of installing the latest stuff.
    Posted to ASP.NET MVC (Forum) by ghotiman on 4/3/2008
  • Re: Can someone explain route addition syntax?

    Actually, there is a little more going on here than object initializers. The arguement to the RouteValueDictionary's constructor is an object. "new { action = "Index", id = "" }" creates an anonymous object with two properties (action and id) and passes it to the RouteValueDictionary where the anonymous object is then interrogated via reflection to add values to the dictionary. Here is an article by Eilon Lipton about it: http://weblogs.asp.net/leftslipper/archive
    Posted to ASP.NET MVC (Forum) by ghotiman on 4/3/2008
  • Re: Convince me to use MVC (no experience in MVC at all)

    I think it's a valid question to ask how the MVC framework can benefit your development, and it's perfectly normal to have some difficulty with it coming from ASP.NET. ASP.NET abstracts the statelessness of the web through viewstate while MVC does not (like you already mentioned). However, that doesn't mean that you can't solve the problem in a different way with MVC. You can use your own hidden form fields to keep track of data if you like, and you can use the UpdateFrom method to
    Posted to ASP.NET MVC (Forum) by ghotiman on 1/29/2008
  • Re: Bug in Route?

    My first thought is to add another routing rule prior to this one that will check for routes without a story. Something like this: routes.Add( new Route { Url = "Story/[action]/[page]", RouteHandler = typeof(MvcRouteHandler), Defaults = new { controller = "Story", action = "Category", page = (int?)null, } validation = new { page = "^[-+]?[1-9]\d*\.?[0]*$" } } ); The validation rule is there to make sure that page is a positive integer. That way a url like
    Posted to ASP.NET MVC (Forum) by ghotiman on 1/27/2008
  • Re: Windows 2003 problems

    You should have this route at the bottom of the list: RouteTable.Routes.Add(new Route { Url = "Default.aspx", Defaults = new { controller = "Home", action = "Index", id = (string)null }, RouteHandler = typeof(MvcRouteHandler) });
    Posted to ASP.NET MVC (Forum) by ghotiman on 1/24/2008
Page 1 of 6 (57 items) 1 2 3 4 5 Next > ... Last »