Search

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

Matching Posts

  • When will MVC + IronPython / IronRuby be refreshed?

    It's been a long time since we've had a working version of MVC with dynamic languages. I haven't seen anything on when they will be refreshed. Did anything come out of PDC2008?
    Posted to ASP.NET MVC (Forum) by ejstembler on 12/30/2008
    Filed under: ASP.NET MVC, DLR, IronPython, IronRuby
  • Re: Rendering an XML view?

    [quote user="Fredrik N"] Maybe I missed something in the other posts, but isn't this more elegant way to do make sure a View renders XMLit!? ... No stuff in the code-behind is needed at all. [/quote] In my case, though, I would not use the in–line code / template approach. It would be too messy due to the nature of my data and schema. I started with a schema–first or contract–first design and worked backwards. I have serializable type(s) which match up to the schema. And a static, generic
    Posted to ASP.NET MVC (Forum) by ejstembler on 2/6/2008
  • Re: Rendering an XML view?

    Thank you both Richard and Aaron; very helpful. The data I'll be rendering could also be presented as RSS xml as well. I wasn't planning on using any querystring parameters, however, I do like Kevin's suggestion... Thanks guys.
    Posted to ASP.NET MVC (Forum) by ejstembler on 2/5/2008
  • Rendering an XML view?

    Is it possible to render an XML view instead of HTML? I have a simple route, for example: "Location/[id]/". To which I want to render xml as the output with the correct mime type (application/xml instead of text/html) in the HTTP header. If I have to implement my own IView, will I be able to specifiy the mime type? Also, I do not want to have to include ".xml" as part of the url route. Any ideas?
    Posted to ASP.NET MVC (Forum) by ejstembler on 2/5/2008
    Filed under: ASP.NET MVC, XML
  • Re: Safari browser and asp:menu

    Personally, changing the ClientTarget to "uplevel" is not a good fix for me . The ASP.Net menu control renders correctly on Safari; however, I noticed that HttpBrowserCapabilities now thinks the browser is IE5. I have an "AlphaImage" control I'm using to display all of my alpha–transparent PNG images. If the control detects IE5 it dynamically swaps out the img reference for a div with an IE–only filter at runtime. filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src
  • Re: CompositeControls: How to set default values for controls with publicly exposed properties

    Instead of matching my property to a control I usually use the viewstate. This way I can tell if it's even been used and set a default property once. Later on in your code, you set the value of you control with the viewstate property. public int MaxLength { get { object value = ViewState[ "MaxLength" ]; if ( value == null ) { ViewState[ "MaxLength" ] = Convert.ToString(DefaultMaxLength); return DefaultMaxLength; } else return Convert.ToInt32( value ); } set { ViewState[ "MaxLength"
    Posted to Custom Server Controls (Forum) by ejstembler on 2/22/2007
    Filed under: ViewState, Composite Control, CompositeControl, custom control
  • Re: Viewstate in a composite control

    LoginButtonStyle (or any other Style types) is considered a “complex property” since it has sub–properties. As such, it needs special attention in the viewstate methods. If your property is a “simple property”, like a string, using the direct viewstate approach should work fine. For string properties I usually use this abbreviated approach: get { return ViewState[ "LoginButtonText" ] as string ; } set { ViewState[ "LoginButtonText" ] = value ; }
    Posted to Custom Server Controls (Forum) by ejstembler on 2/22/2007
    Filed under: custom control
  • NameValueCollection as a complex property?

    Does anyone how to successfully implement a NameValueCollection as a complex property I could not get it to work. The html designer complains about the format of the inner elements. As an alternative, I have a custom collection complex property which works fine. I can set its' values in html as such: < mytagprefix:MyControl runat= "server" > < Settings > < mytagprefix:Setting SettingName= "MaxItems" SettingValue= "7" /> < mytagprefix:Setting SettingName= "RssUrl" SettingValue
    Posted to Custom Server Controls (Forum) by ejstembler on 2/22/2007
    Filed under: "complex property", "custom control", NameValueCollection
  • Re: HttpCompress and UpdatePanels

    Thunder3: if (app.Request["HTTP_X_MICROSOFTAJAX"] != null) { return; } I have a custom HttpCompress module too which I had to disable since AJAX pages didn't like it. I noticed when debugging using the dynamic web server I don't see the "HTTP_X_MICROSOFTAJAX" variable. I wonder if it's something IIS adds at runtime? I could enable trace on my deployed site but I'd rather not since it's already live.
  • Re: UpdatePanel inside a WebPart

    Unfortunately it's not support. Look for official support coming in Orcas.
Page 1 of 3 (29 items) 1 2 3 Next >