Search

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

Matching Posts

  • Re: MVC and WF

    Hi, Try this blog post series - it some interesting ideas on itegrating MVC, WF and WPF :
    Posted to ASP.NET MVC (Forum) by foreachbiscuit on 5/4/2008
  • Re: Each page requires a ViewData<>, and a class? This is allot of coding no?

    The main reason for using strongly typed viewdatas is to enforce a contract between the view and the controller. In a true MVC pattern neither is aware of the other's inner workings and to ensure that all of the view data's requirements are fulfilled a strongly typed object can facilitate this. For example, you can validate the viewdata contents (via the constructor or other means) and have an early point of failure prior to request sequence even going to the view - rather than debugging
    Posted to ASP.NET MVC (Forum) by foreachbiscuit on 5/4/2008
    Filed under: MVC view data
  • Re: Html.Actionlink and ampersand

    Ideally your view data should already present the cleaned information, but if this is not possible you may want to create your own extension that wraps the original one you were using: public static string ActionLinkTrim<TController>(this HtmlHelper helper, Expression<Action<TController>> controllerAction, string linkText ) where TController : Controller { string replacement = linkText.TrimStart('.').Replace("&","&"); //or whatever you want to
    Posted to ASP.NET MVC (Forum) by foreachbiscuit on 4/30/2008
    Filed under: MVC Extensions
  • Re: HttpContext.Request.UrlReferrer not the referrer

    If I understand your question correctly, this is not a bug and is the correct behaviour. I interpreted your query to be as follows: 1. Your initial call is to: controller/originalurl -->redirected to login 2. controller/login (referrer= originalurl) 2. b. User control displays <form> pointing to ProcessLogin Action 2. c User submits form 3. controller/ProcessLogin (referrer=login) This state at point 3 for the referrer is correct. You will need to keep the original url referrer between requests
    Posted to ASP.NET MVC (Forum) by foreachbiscuit on 4/30/2008
    Filed under: MVC
  • Re: AddHandler on Dynamic Link Button Derived from Class

    Hi, The problem is likely to do with where you are setting the event handler. The event handlers for these buttons exist only for the lifetime of this request execution. When a postback occurs, if this code does not execute then there are no event handlers to respond to the command/click events in this new current request. The routine you have posted above needs to execute again on the postback and add the event handlers in prior to the PreRender stage of the new request. Once the event handlers
    Posted to Web Forms (Forum) by foreachbiscuit on 12/19/2007
  • Re: Please help me to solve the following error message.

    Hi, The first error message pretty much gives you both options... either you need a using statement at the top of your code to illustrate the namespace of ProfileCommon, or you are more likley not referencing the dll that ProfileCommon belongs in. Check your assembly references for the project and ensure that whichever dll ProfileCommon is in is referenced.
    Posted to Security (Forum) by foreachbiscuit on 12/19/2007
  • Re: Editing Xml file: Token StartElement in state Epilog would result in an invalid XML document

    HI. I see what you are trying to do now that you have illustrated the XML. Your issue is occuring because you are re-creating the XMl file when coming to edit (which is what i thought you intended). You are creating a new textwriter, starting a document, etc. Instead it appears you are wanting to insert values in the file and you cannot do this with your current code - you need to "load" the xml document first, change it, then save it. You will need something like the code on the following
  • Re: Editing Xml file: Token StartElement in state Epilog would result in an invalid XML document

    Hi, I wasn't suggesting that you delete anything - sorry for any misunderstanding. Your first code sets up the xml file as: <website> <title>websitename</title> <Logo>logo</Logo> <City>city</City> </website> When you then try and edit the file, you are again beginning the document but this time attempting to write: <Detail1>detail1</Detail1> <Detail2>detail2</Detail2> <Detail3>detail3</Detail3> </ end element>
  • Re: Stop in C#

    Hi, A solution file is a "container" for a number of projects that you are working on. You can still work with a solution file AND use your project from VSS. You should try and create an empty solution file with something like: (depending on your VS settings the options shown may be different) File --> New -->Project Expand "Other project types" Choose Visual Studio Solutions, Blank Solution Once your solution file is created you can add a project from VSS source control
    Posted to Visual Studio 2005 (Forum) by foreachbiscuit on 12/17/2007
  • Re: Editing Xml file: Token StartElement in state Epilog would result in an invalid XML document

    Hi, It appears as though you are missing the WriteStartElement() method call in your editing code and thus the document is invalid as it tries to write the 3 strings.
Page 1 of 21 (210 items) 1 2 3 4 5 Next > ... Last ยป