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:448401
More Search Options
RSS Available
Matching Posts
Custom Event in User Control call event method by name
I have a user control, with a custom event that is thrown, i.e.: ---------------- Public Event MyEvent As EventHandler ... ---------------- i know how to create the event (as above) and raise the event. However, I would like to advance this a bit, and allow the event handler to be specified as a property when creating the control on a page, just like standard .net webcontrols do. i.e.: ---------------- <asp:Button runat=server Text="Submit" OnClick="Button_Click_Handler" />
Posted to
Hosting Open Forum
(Forum)
by
johnystyles577
on 9/22/2004
Re: read static public property of dynamic user control class
Thank you very much Leon!!! That was the answer i needed. I actually found this between yesterday and this morning, and it's done just a little bit differently, but same concept. You must use the System.Reflection namespace to get ahold of a property from a class that is known dynamically in a string, at runtime only. Here's how I did it, for anyone else who might care: Dim ClassName As String = strUserControlClassName Dim classType As Type = System.Type.GetType("AlertBot.Mobile." &
Posted to
Hosting Open Forum
(Forum)
by
johnystyles577
on 8/10/2004
read static public property of dynamic user control class
I have a handfull of usercontrols. all of them have a public const property, call it boolShowUserControl, which i would like to read. The problem is, the class of which i would like to read is only know dynamically at run-time. The name of the class is known in a string. strUserControlClassName ' a string = name of class i would like to read I would like to do this: If file.exists(userControlPath) And GetStaticClass(strUserControlClassName).boolShowUserControl = True Then LoadControl(userControlPath
Posted to
Hosting Open Forum
(Forum)
by
johnystyles577
on 8/9/2004
Re: MobileFormsAuthentication.SetAuthCookie() method??
Yes, that's what i thought. I was hoping otherwise. Well, does anyone know where i can get the definition code for MobileFormsAuthentication.RedirectFromLoginPage ? Does MS offer this? I don't think it's in the rotor code anywhere... I am running out of options here, and it seems my best option here would be to overload it with the same code, less the redirect. Thanks again,
Posted to
Mobile and Handheld Devices
(Forum)
by
johnystyles577
on 6/7/2004
MobileFormsAuthentication.SetAuthCookie() method??
Hi All, In this excellent article by Visual Studio Magazine: http://www.ftponline.com/vsm/2003_04/online/thews/default_pf.aspx The author, Doug Thews, provides a (VB) code snip: ----------------------------------------------------------------------------- MobileFormsAuthentication.SetAuthCookie (objUser.Name, false) Me.RedirectToMobilePage("main.aspx") ----------------------------------------------------------------------------- This is interesting, as it is exactly what I need, however
Posted to
Mobile and Handheld Devices
(Forum)
by
johnystyles577
on 6/4/2004
Re: Catch Error, but print Standard Vanilla ASPX error page
Hey aspdotnetv2, Thanks much for the response. I believe the question was stated badly, let me retry. The problem is I am using an error processing class, let's call ir errClass. I am working on a medium size project, which has try/catch blocks all over it. They look something like this: Try 'code Catch e as Exception errClass(e) End Try Now within errClass, some logic gets executed. Basically if the user has the correct development credentials, the actual aspx error (ie stacktrace, etc) is thrown
Posted to
Web Forms
(Forum)
by
johnystyles577
on 6/4/2004
Re: "Redirect" problem in Nokia Mobile Browser 3.0.1
Yes! I am having this same problem! Does anybody have any more informative answers? This is kind of a big issue, as I tried the redirect on an actual Nokia phone, not only did the redirect not work, but it didn't even give the option of following the redirect link. It just said something like "Error". Any advice would be greatly appreciated...
Posted to
Mobile and Handheld Devices
(Forum)
by
johnystyles577
on 6/3/2004
Catch Error, but print Standard Vanilla ASPX error page
Hello, I have looked all over the web, and through this forum, and surprisingly can't find the answer to this simple question. I have a project, which uses a central Exception Handling Class. However, for debugging purposes, I would like to spit out custom errors if the user is remote, and the standard ASPX vanilla error page if else. Everything works fine, I just need a way to spit out the standard vanilla ASPX error page, from the exception. Is there a way to get the source for this page from the
Posted to
Web Forms
(Forum)
by
JohnyStyles577
on 6/3/2004
Page 1 of 1 (8 items)
TechNet Edge:
Windows Server 2008 R2 Quick Look #3 - PowerShell V2
ASP.NET:
2009 Blogged - Greatest Hits
WindowsClient:
2009 Blogged - Greatest Hits
Channel 9:
Nikolaj Bjørner and Leonardo de Moura: The Z3 Constraint Solver
Channel 9:
MEF & Silverlight 4 Beta - Part 2, Imports & Exports
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
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online