Search

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

Matching Posts

  • Recursion through Controls collection resets Repeater

    I have resolved this issue, but I need explanation as to why I got this error. The problem was, that I used this code to loop through a Page's Controls collection, recursively: List con = new List(); List< string > usercontrolName = new List< string >(); private void GetControls(Control c) { for ( int i = 0; i < c.Controls.Count; i++) { GetControls(c.Controls[i]); } if (c is UserControl) { if (!usercontrolName.Contains(((UserControl)c).GetType().FullName)) { usercontrolName.Add
    Posted to Web Forms (Forum) by martinhn on 6/30/2008
  • Re: C#, ASP.NET Replacing colors with gradient

    I've created a heat map project on CodePlex: http://www.codeplex.com/heatmap There's no code yet, but it will be up within the next week. Feel free to contact me if you want to get involved in the project.
    Posted to System.Drawing/GDI+ (Forum) by martinhn on 1/20/2008
  • Re: C#, ASP.NET Replacing colors with gradient

    I was trying to create a HeatMap. I haven't been working on it for more than halft a year. I got it to work in the end, as far as I remember. But I'm excited about your solution - your heatmap looks great. Can you add me on Windows Live Messenger? martinnormark (a) hotmail.com
    Posted to System.Drawing/GDI+ (Forum) by martinhn on 1/7/2008
  • Re: Keep session with HttpWebRequest

    CookieContainer worked. Thanks.
    Posted to Web Forms (Forum) by martinhn on 1/7/2008
  • Re: Keep session with HttpWebRequest

    I did not try that, since I saw the Cookies collection of the HttpWebResponse instance was empty when the response was instantiated from the GetResponse method of the HttpWebRequest. So I instantly ruled that solution out - was that wrong?
    Posted to Web Forms (Forum) by martinhn on 1/7/2008
  • Keep session with HttpWebRequest

    hi. I'm using the HttpWebRequest class to make request to a website returning XML. First I have to authenticate, which is done by making a request to a url with username and password as parameters in the query string of the URL. Then my sessions gets authenticated, but with the HttpWebRequest class, I have to create a new one to make the next request which should give me the desired XML. How can I make multiple requests with the same HttpWebRequest instance, or save the session or something to
    Posted to Web Forms (Forum) by martinhn on 1/6/2008
  • Re: referencing web server controls on the master page?

    You have to find the control yourself from the MasterPage's Control collection. Say you want to reference a Label called lblName from a ContentPage. Label lblName = (Label)this.Master.FindControl("lblName"); Then you can use the Label's properties like normal: lblName.Text = "Hello World!";
    Posted to Getting Started (Forum) by martinhn on 12/21/2007
  • Re: Using a factory design pattern with the UserControls

    I think you have to implement your own logic to load the control. Maybe you can create your own page that derrives from System.Web.UI.Page, and the make a public method called LoadUserControl that calls the LoadControl on the page. I don't know. Does anyone know if you can load a usercontrol that lives in another App Domain? I want to make my application extendable, by loading usercontrols dynamically. And when a new usercontrol us uploaded to my app, or an existing one is changed - that forces
    Posted to Web Forms (Forum) by martinhn on 12/19/2007
  • Re: Visual Studio 2008 and SQL Express 2005

    In your connections string, try to reference the servername and instancename like this: MACHINENAME\SQLEXPRESS
  • Re: Storing user and database connection information in Session variables

    Regarding question 2 - I would always recommend having a static class with all the session variables. DO NOT (!!!) write Session["variableName"] everytime you need to access a session variable. It is so easy to make typo's, and you do not get compilation errors if you misspell a variable name. Create a static class with a property for each session variable you have to use, which returns the value. Then you get/set the Session like this: Session[SessionKeys.Parameter1] which is much
    Posted to Getting Started (Forum) by martinhn on 12/17/2007
Page 1 of 12 (113 items) 1 2 3 4 5 Next > ... Last »