Click here to Skip to main content
16,013,440 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Can i control the application variables dynamicly Pin
david fox11-Aug-02 14:51
david fox11-Aug-02 14:51 
AnswerRe: Can i control the application variables dynamicly Pin
lizhill11-Aug-02 20:10
lizhill11-Aug-02 20:10 
GeneralRe: Can i control the application variables dynamicly Pin
david fox12-Aug-02 4:47
david fox12-Aug-02 4:47 
GeneralDrop Down w/Multiple Selections Pin
Robby9-Aug-02 7:57
Robby9-Aug-02 7:57 
GeneralRe: Drop Down w/Multiple Selections Pin
Ryan Johnston9-Aug-02 9:59
Ryan Johnston9-Aug-02 9:59 
GeneralRe: Drop Down w/Multiple Selections Pin
Jared Solomon9-Aug-02 11:32
Jared Solomon9-Aug-02 11:32 
GeneralRe: Drop Down w/Multiple Selections Pin
lizhill11-Aug-02 20:02
lizhill11-Aug-02 20:02 
GeneralAccess Page from TypeConverter Pin
Jamie Nordmeyer9-Aug-02 5:51
Jamie Nordmeyer9-Aug-02 5:51 
I'm designing a ASP.NET Server Control, that has a designer verb, so that when you click on it, you're presented with a window to edit the control's subobjects. One of the properties of the subobject is a dropdown of all the available controls on the page that owns the control. Thus far, the only way that I've been able to get the page object to the TypeConverter that populates the dropdown is to use a global shared variable to hold a reference to the page object (it's a hack, and I don't like it, but it DOES work). So that's my question. How can I get ahold of the page object from with in the TypeConverter?

Example of what I'm trying to do (yes, it's in VB.NET... you haven't gone blind Big Grin | :-D ):
'HACK: Temporary fix for accessing the Page object
Friend Class PageData
   Public Shared m_Page As Page
End Class

Public Class MyTypeConverter : Inherits TypeConverter
   Public Overloads Overrides Function GetStandardValuesExclusive(ByVal context As ITypeDescriptorContext) As Boolean
      Return True
   End Function

   Public Overloads Overrides Function GetStandardValuesSupported(ByVal context As ITypeDescriptorContext) As Boolean
      Return True
   End Function

   Public Overloads Overrides Function GetStandardValues(ByVal context As ITypeDescriptorContext) As StandardValuesCollection
      Dim List As New ArrayList()
      Dim C As WebControl

      For Each C In PageData.m_Page.Controls
         List.Add(C.ID)
      Next

      Return New StandardValuesCollection(List)
   End Function
End Class

Public Class MyCustomControlSubObject
   Protected m_BuddyControl As String
   .
   .
   <TypeConverter(GetType(MyTypeConverter))> _
   Public Property BuddyControl() As String
      Get
         Return m_BuddyControl
      End Get
      Set
         m_BuddyControl = Value
      End Set
   End Property
End Class


Thanks in advance.

Jamie Nordmeyer
Portland, Oregon, USA
QuestionHow to make the columns of two tables have the same width? Pin
Alvaro Mendez9-Aug-02 5:10
Alvaro Mendez9-Aug-02 5:10 
AnswerRe: How to make the columns of two tables have the same width? Pin
Jeremy Falcon9-Aug-02 5:49
professionalJeremy Falcon9-Aug-02 5:49 
GeneralRe: How to make the columns of two tables have the same width? Pin
Alvaro Mendez9-Aug-02 6:29
Alvaro Mendez9-Aug-02 6:29 
AnswerA solution! Pin
Alvaro Mendez9-Aug-02 9:57
Alvaro Mendez9-Aug-02 9:57 
GeneralCatch enter pressing Pin
Mazdak9-Aug-02 3:24
Mazdak9-Aug-02 3:24 
GeneralRe: Catch enter pressing Pin
Jared Solomon9-Aug-02 10:58
Jared Solomon9-Aug-02 10:58 
GeneralRe: Catch enter pressing Pin
Mazdak9-Aug-02 19:15
Mazdak9-Aug-02 19:15 
GeneralPrint HTMl Pin
Raju Pande MKCL Pune8-Aug-02 23:36
sussRaju Pande MKCL Pune8-Aug-02 23:36 
GeneralRe: Print HTMl Pin
Paul Watson9-Aug-02 0:36
sitebuilderPaul Watson9-Aug-02 0:36 
QuestionCompile a String of Email Addresses? Pin
Robby8-Aug-02 11:58
Robby8-Aug-02 11:58 
AnswerRe: Compile a String of Email Addresses? Pin
Bullschmidt8-Aug-02 16:31
Bullschmidt8-Aug-02 16:31 
GeneralRe: Compile a String of Email Addresses? Pin
Robby9-Aug-02 3:15
Robby9-Aug-02 3:15 
QuestionFill out a form dynamically? Pin
JohnnyNin8-Aug-02 11:18
JohnnyNin8-Aug-02 11:18 
AnswerRe: Fill out a form dynamically? Pin
Jared Solomon8-Aug-02 12:18
Jared Solomon8-Aug-02 12:18 
AnswerRe: Fill out a form dynamically? Pin
Todd Smith8-Aug-02 13:16
Todd Smith8-Aug-02 13:16 
AnswerRe: Fill out a form dynamically? Pin
Paul Watson9-Aug-02 0:41
sitebuilderPaul Watson9-Aug-02 0:41 
GeneralASP client-side script debugging with VID,how to?. Pin
Romeo8-Aug-02 7:39
Romeo8-Aug-02 7:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.