Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:640598
More Search Options
RSS Available
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
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
martinhn
on 12/18/2007
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 »
Channel 9:
Nikolaj Bjørner and Leonardo de Moura: The Z3 Constraint Solver
Channel 9:
MEF & Silverlight 4 Beta - Part 1, Introduction
WindowsClient:
The (Near) Final Word on Multi-Monitor Taskbars for Windows 7 - Ultramon vs. DisplayFusion
WindowsClient:
Looking back at 2009, and forward to 2010
Silverlight:
Polling Video – A Viable sub-second alternative?
TechNet Edge:
Windows Server 2008 R2 Quick Look #2 - Active Directory Recycle Bin
Channel 10:
I'm a Windows 7 PC Themes
Channel 10:
24 Years of Windows Box Art
WindowsClient:
Silverlight tutorial: HOW TO build CommandLink Control in Silverlight with Expression Blend 3 and Behaviors
ASP.NET:
Converting an RGB Color To Hex With JavaScript
Silverlight:
Silverlight HVP Design – Configuration & Scenarios
Channel 9:
Channel 9 Live at PDC09: Day 3 Welcome
Channel 9:
Channel 9 Live at PDC09: TWoC9 Day 3
Channel 10:
Microsoft's Mobicast: Stiched Cell Streams
Channel 10:
Festive Bing
TechNet Edge:
How Microsoft Reduces Operational Risk through Business Continuity Management
Channel 9:
Jeffrey Van Gogh and Bart De Smet: Inside System.Interactive
WindowsClient:
Runtime Fault Injection using TestAPI
TechNet Edge:
TechNet Radio: Community Corner with John Weston (Episode 1)
TechNet Edge:
Windows Firestarter Events (Part 3 of 5): IE8 - Browse the Web in Style!
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online