Search

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

Matching Posts

  • Re: FileConfigurationSource Not Loading

    Configuration settings in FileConfigSource are are not accessible via ConfigurationManager. The best solution here is to use configSource attribute of the individual config sections as Tom Hollander points out in his blog: http://blogs.msdn.com/tomholl/archive/2006/04/02/entlib2externalconfig.aspx In this case: < connectionStrings configSource = " demo.config " /> where demo.config includes only the configuration element of interest: < connectionStrings > < add name = "
  • FileConfigurationSource Not Loading

    I cannot seem to get my externally configured connectionstrings section to be loaded on the app startup. Any advice? Code: ConnectionStringSettings settings = ConfigurationManager.ConnectionStrings["default"]; if (settings == null || settings.ConnectionString.Trim() == "") throw new ConfigurationErrorsException("No default connection string."); Error: System.Configuration.ConfigurationErrorsException: No default connection string. web.config: <configuration> <configSections>
  • Re: Visual Studio hangs when clicking Open Website

    This thread's a little old, but for the sake of those who google upon it... It's likely a mapped drive that's sending VS out to lunch. At the command prompt, type: c:\net use Then delete any mapped drives, e.g., c:\net use /del x: c:\net use /del \\server\path Good luck! --Brett
    Posted to Visual Studio 2008 (Forum) by brettemiller on 5/18/2009
  • Re: Error w/ Toolkit: Microsoft JScript runtime error: 'Sys' is undefined

    Thanks ricingr. Another consideration is to be sure that one is not manipulating controls during or after the PreRenderComplete event: protected override void OnPreRenderComplete(EventArgs e) { } --Brett
  • Re: Application model compile error:Could not load type 'Upgrade.Global'.

    Hey, put this in the "for what it's worth bin": I, too struggled with this. I spent a few hours rebuilding my app, removing references and re-installing asp.net. Nothing worked. What could possibly have changed???!! Well, upon the advice of this discussion: http://forums.asp.net/p/1088894/2492262.aspx I removed the Inherits="Global" attribute from global.asax, and the compiler moved on. My problem bacame apparent: I had accidentally dragged the App_Code folder into the App_Themes
    Posted to Migrating from Visual Studio .NET 2003 to Visual Studio 2005 (Forum) by brettemiller on 1/29/2009
    Filed under: "build error", "could not load type global"
  • Re: PostBackUrl posts to same page

    Sorry. By the time this got moderated, I think we sorted out the issue. We're deploying to a web server farm. I'm generating a machineKey now... which seems to have done the trick. Do I get points for answering my own dumb questions? ;)
    Posted to Web Forms (Forum) by brettemiller on 10/16/2008
  • PostBackUrl posts to same page

    I need to submit form data to a 3rd party site. I'm using a button control and specifying the postbackurl, which works fine running from localhost or a development server. However, when I release to the live servers, the postback submits to the same page. The code is pasted below. Advice appreciated. Thanks, --Brett <input type="hidden" name="elqFormName" value="snip"/> <input type="hidden" name="elqSiteID" value="snip"/>
    Posted to Web Forms (Forum) by brettemiller on 10/16/2008
  • Re: JavaScript Dictionary

    Excellent. The 4guysfromrolla example is very helpful, thanks. I've pasted a complete javascript.js file below which allows one to create a dictionary to make calls like the following: var userDict = new Dictionary(); userDict.Add("smith", "admin"); userDict.Add("jones", "user"); userDict.Delete("jones"); var keys = userDict.Keys for(var i=0; i<keys.length; i++) { alert((keys[i]+": "+userDict.Lookup(keys[i]))); } Admittedly, the keys
Page 1 of 1 (8 items)