Jump to content
Xtreme .Net Talk

huby

Avatar/Signature
  • Posts

    32
  • Joined

  • Last visited

Everything posted by huby

  1. not sure if i should post this in windows forms, ASP.NET, or Database, so i'll just drop it here :D i read data in a database, and get it all out via a SqlDataReader. I would like to dynamically create Controls and fill them with my Data. My problem is that i don't know how to access my freshly-created control (to fill it with text, for example. see sample code) while (dr.Read()) { Panel1.Controls.Add(new TextBox()); // then what ? } any hints ? thank you ! Huby.
  2. hello my loved ones ! i have 2 questions : i am looking for some kind of a scrollable control to use on web pages. i'd like to add textboxes, hyperlinks, and imageboxes dynamically at runtime. i saw some people talk about scrollable panels in windows forms, but i don't think those are available in ASP.NET. any ideas ? also, is it possible to launch pop-up windows without any IE (or other) toolbars on it? or should I use Javascript for that ? peace, Huby.
  3. hello !! i found a lot of user controls for free download on the asp.net website. they all look cool and great, but i have no idea how i should install them. i usually get .ascx and.cs files, but i don't know how to get them in my toolbar for future use ... thank you ! Huby.
  4. oh right ... nevermind, then. sorry.
  5. don't use "items" with arrays. use "items" with collections. I have this to remove elements from string arrays : Private Sub removeElement(ByRef MyArray As String(), ByVal MyIndex As Integer) 'removes an element from an array at a given index Dim i As Integer 'if it's the last element If MyIndex = UBound(MyArray) Then 'do nothing Else 'shift all array elements one place down 'starting with the one you want to delete (who gets overwritten) For i = MyIndex To UBound(MyArray) - 1 MyArray(i) = MyArray(i + 1) Next End If 'cut the last element ReDim Preserve MyArray(UBound(MyArray) - 1) End Sub i have no idea if it's a good way of working or not, but it works for my tiny string-needs :D Peace, Huby.
  6. wow that was fast :D thanks ! Huby.
  7. hello everyone ! i'm a medium-newbee, meaning i'm very good with HTML and VB6, reasonably skilled with C#, but i'm new at ASP.NET. i would like to make an aspx page with a table, and i'd like to have a cell in a table load aspx pages as i click on buttons (i'm trying to avoid using frames, in other words). can this be done by using panels, or placeholders ? or something else ? thanx in advance for the replies, and for the forum !! peace, Huby.
×
×
  • Create New...