Search

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

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,
  • 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
  • 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...
  • 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)