Search

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

Matching Posts

  • Re: MVC & Globalization / Localization

    There are a couple ways to achieve this. If you are not using ASP.NET folders (App_GlobalResources), open your resource file and at the top of the file is a menu. Open the drop-down list labeled "Access Modifier" and change it to public. Save the file and then open the designer.cs file for your Resource file and verify the namespace, or open the properties window for your resx file and set the namespace to the desired value. Now, depending on what your namespace is you can do this: <
    Posted to ASP.NET MVC (Forum) by developmentalmadness on 5/20/2009
  • Latest MVC Bits?

    Are the latest bits for MVC the Preview 5 release? I've been out of the loop for a while and just wanted to make sure I had the latest and greatest.
    Posted to ASP.NET MVC (Forum) by developmentalmadness on 1/8/2009
    Filed under: ASP.NET MVC
  • Re: Composite UserControl throws NullReferenceException when referencing child control

    It turns out I mis-registered the control with the page. This is what I had: <% @ Register Assembly ="RioTintoWebSolution" Namespace ="RioTintoWebSolution" TagPrefix ="rtws" %> Here's what I should have had: <% @ Register TagPrefix ="rtws" TagName ="Pager" Src ="~/Controls/GridPager.ascx" %> The first Register directive was for a server control in the same project. I didn't think about adding the second directive because
    Posted to Web Forms (Forum) by developmentalmadness on 10/10/2008
  • Composite UserControl throws NullReferenceException when referencing child control

    Line 63 in the .cs file is throwing a NullReferenceException. The SetRecordCount() method is being called in the Page_Load event of the page hosting this control. I can't figure out why the control would be null at this point in the page lifecycle. I've never had this problem before. <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GridPager.ascx.cs" Inherits="RioTintoWebSolution.GridPager" %> < asp:Repeater ID= "m_GridPager"
    Posted to Web Forms (Forum) by developmentalmadness on 10/9/2008
  • Re: Route variables between action methods

    Why not have AddCategory call EditCategory? This will avoid the overhead of having to use session state and redirect the user? public ActionResult AddCategory( string name) { m_databaseConnection.NewCategory(name); return EditCategory(name); }
    Posted to ASP.NET MVC (Forum) by developmentalmadness on 10/9/2008
  • Re: Visual Studio "Open With..." always opens new instance of editor

    Well, I started trying different programs and finally tried Explorer - this seems to work except for the prompt to Open or Run the command seems a little strange. I just told it to not ask me in the future and told it to open. If anyone has a better solution I'd be really interested, I don't know why but this seems a strange. As a side note I now understand why VS always opens in a new window. It runs the ssms.exe (SQL 2008, use sqlwb.exe for 2005) command which is like opening SSMS from
    Posted to Visual Studio 2008 (Forum) by developmentalmadness on 8/15/2008
  • Visual Studio "Open With..." always opens new instance of editor

    I have Sql Server Management Studio (SSMS) set as the default editor for .sql files in Visual Studio. But when I open a .sql file a new instance of SSMS opens, even when I've already got an isntance of SSMS open. It's just my work PC that does this. At home it reuses the same instance. But I can't think of anything I ever changed to get either behavior. Does anyone know how to change this behavior?
    Posted to Visual Studio 2008 (Forum) by developmentalmadness on 8/15/2008
  • Re: 404 - /Default.aspx

    It'd be nice if it were that easy. However, the 404 is for Default.aspx, not for Home or Login. If I revert back to MVC Preview 2 then everything works again.
    Posted to ASP.NET MVC (Forum) by developmentalmadness on 5/6/2008
  • 404 - /Default.aspx

    I am using the 0416 Interim Source Code Release and am getting a 404 error when I start up the application. It can't find /Default.aspx, which is there in the root directory. I am running on IIS 5.1 and default.aspx is in my RegisterRoutes method, which I verified is being called. public static void RegisterRoutes(RouteCollection routes) { // ... other routes ... routes.Add( new Route( "Default.aspx" , new RouteValueDictionary( new { controller = "Login" , action = "Index"
    Posted to ASP.NET MVC (Forum) by developmentalmadness on 5/6/2008
  • Re: MVC and Page LifeCycle

    [quote user="jdcrutchley"]I'd just hate to see views in MVC get so built up that we're right back to WebForms![/quote] I couldn't agree more [quote user="jdcrutchley"]Lots of ways to skin a cat though and in the end you gotta do what makes sense for the app you're building [/quote] That's what it all boils down to [quote user="jdcrutchley"]Consider an e-commerce app where pricing is determined based on location. This kind of logic could be considered
    Posted to ASP.NET MVC (Forum) by developmentalmadness on 4/25/2008
Page 1 of 7 (65 items) 1 2 3 4 5 Next > ... Last ยป
Microsoft Communities