all groups > asp.net building controls > april 2004 >
You're in the

asp.net building controls

group:

Seeking Ideas for Controls


Seeking Ideas for Controls Ed Swartz
4/21/2004 6:33:57 PM
asp.net building controls: I'm seeking ideas for custom web controls.

Ed
Re: Seeking Ideas for Controls Victor Garcia Aprea [MVP]
4/24/2004 6:34:46 PM
What about a MaskedTextBox? a... BreadcrumbControl (this one is coming in
ASP.NET v2, but there is a need for this for the v1.x bits)? A nicer
Calendar than the built-in one?

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx

To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
[quoted text, click to view]

Re: Seeking Ideas for Controls Jiho Han
4/26/2004 10:28:23 AM
What's a BreadcrumbControl if you don't mind me asking?

[quoted text, click to view]

Re: Seeking Ideas for Controls Scott Mitchell [MVP]
4/26/2004 3:10:28 PM
[quoted text, click to view]

It shows where you are on a Web site. For example, say you went from
the homepage to the Products listing page, to viewing information about
Books, to viewing information about a particular book. The breadcrumb
control would look like:

Home > Products > Books > ASP.NET Data Web Controls Kick Start

Where Home/Products/Books were hyperlinks back to their respective
sections. For an example, see Yahoo!, which has a nice breadcrumb
interface.


--

Scott Mitchell
mitchell@4guysfromrolla.com
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

Re: Seeking Ideas for Controls Ed Swartz
4/26/2004 7:53:50 PM
Victor,

I know TextBox TextMode can be set to "Password" which masks
the text entered into the textbox. How would your MaskedTextBox
work?

Ed

[quoted text, click to view]
Re: Seeking Ideas for Controls Victor Garcia Aprea [MVP]
4/26/2004 10:15:30 PM
Wow! that user was just browsing your book :-)

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup

[quoted text, click to view]

Re: Seeking Ideas for Controls Victor Garcia Aprea [MVP]
4/26/2004 10:20:37 PM
I'm thinking about something in the lines of the old VB MaskedEdit control
if you remember that. Basically it is a regular textbox with the added
feature that you can set a mask (usually a regex) telling it which input to
accept and how to mask it in the UI. Then the control will only accept
keystrokes valid for the current particular character position. I've heard
lots of request for something like this in my talks, newsgroups, etc.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup

[quoted text, click to view]

Re: Seeking Ideas for Controls Victor Garcia Aprea [MVP]
4/26/2004 10:33:06 PM
Something in the lines of this[1]

[1]
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/maskededit_control.asp


--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx

To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
[quoted text, click to view]

Re: Seeking Ideas for Controls Ed Swartz
5/6/2004 8:04:58 PM
Victor,

Thanks for the ideas.

I decided to try my hand at the BreadCrumb control so
I looked at the Yahoo pages as you suggested. What I saw was
the following:

* The location and number of bread crumb trails appears to change
depending on what section of the site you visit.

+ Sometimes there is a 2-3 bread crumb trail on the upper left of
the page.

+ Sometimes there is a 2-3 bread crumb trail on the upper right
of the trail. See Personalize.

+ Sometimes there is a trail in the middle of the page.
See Finance Bill Pay.

+ Sometimes there are two trails. See Shopping.

So, from my quick review it appears the bread crumbs trails are
inconsistent as to location and number of set of trails.

Also, it seems the trails don't go very deep. Only 2-3 levels.

I'm not sure what I learned from looking at Yahoo.


Can you suggest another web site or a specific section of Yahoo
that I should review?


Any suggestions on features?

Here's my "Requirements spec" (a quick off the top of my head list
of ideas)

* Push( WebAddress, LinkText )
User has surfed to a new page. Add new address to trail.

Present trail: red > blue
Push( "green.com", "green" );
New Trail: red > blue > green

* Pop
Removes last bread crumb from trail.

Present trail: red > blue > green
Pop();
New trail: red > blue

* ClearTrail

Present trail: red > blue > green
Clear();
New trail: <nothing>

* Delimiter
Set the character string to be used between each bread crumb.

Delimiter = " | ";
Example: red | blue | green.

* RenderDirection
Set breadcrumb rendering direction

bread crumbs: red, blue, green

RenderDirection = LeftToRight
Example: red | blue | green

RenderDirection = RightToLeft
Example: green | blue | red



Thanks,

Ed Swartz



[quoted text, click to view]
Re: Seeking Ideas for Controls andreisinelnikov NO[at]SPAM sierrasystems.com
5/7/2004 1:34:00 PM
[quoted text, click to view]

Here is nicer calendar:

Imports System.ComponentModel
Imports System.Drawing
Imports System.Drawing.Image
Imports System.Drawing.Bitmap
Imports System.Drawing.Imaging.Metafile

<DefaultEvent("SelectedIndexChanged"), _
DefaultProperty("Text"), _
ToolboxData("<{0}:DatePicker id='dp'
runat='server'></{0}:DatePicker>"), _
Designer("Solution.WebControls.Design.DatePickerDesigner")> _
Public Class DatePicker
Inherits Control
Implements INamingContainer

#Region " Members "
Dim m_closeGif As String = "close.gif"
Dim m_dividerGif As String = "divider.gif"
Dim m_drop1Gif As String = "drop1.gif"
Dim m_drop2Gif As String = "drop2.gif"
Dim m_left1Gif As String = "left1.gif"
Dim m_left2Gif As String = "left2.gif"
Dim m_right1Gif As String = "right1.gif"
Dim m_right2Gif As String = "right2.gif"
Dim m_calendar As String = "calendar.bmp"
Dim m_imgDirectory As String = "../../Images/"
Dim m_ControlCssClass As String = ""
Dim m_text As String = ""
Dim m_Css As String = ""
Dim m_DateType As String = "yyyy MMM dd"
#End Region

#Region " Properties "
Public Property Text() As String
Get
EnsureChildControls()
If (Me.Controls.Count = 0) Then
Return ""
End If
Return CType(Controls(1),
System.Web.UI.WebControls.TextBox).Text
End Get
Set(ByVal Value As String)
If Not (Me.Controls.Count = 0) Then
CType(Controls(1),
System.Web.UI.WebControls.TextBox).Text = Value
m_text = ""
Else
m_text = Value
End If
End Set
End Property
Public Property DatePart() As Date
Get
EnsureChildControls()
If (Me.Controls.Count = 0) Then
Return Nothing
End If
Return CDate(CType(Controls(1),
System.Web.UI.WebControls.TextBox).Text)
End Get
Set(ByVal Value As Date)
If Not (Me.Controls.Count = 0) Then
CType(Controls(1),
System.Web.UI.WebControls.TextBox).Text = Format(Value, Me.DateType)
m_text = Nothing
Else
m_text = Value
End If
End Set
End Property
Public Property CssClass() As String
Get
EnsureChildControls()
If (Me.Controls.Count = 0) Then
Return ""
End If
Return CType(Controls(1),
System.Web.UI.WebControls.TextBox).CssClass
End Get
Set(ByVal Value As String)
If Not (Me.Controls.Count = 0) Then
CType(Controls(1),
System.Web.UI.WebControls.TextBox).CssClass = Value
m_Css = ""
Else
m_Css = Value
End If
End Set
End Property
Public Property imgCalendar() As String
Get
Return m_calendar
End Get
Set(ByVal Value As String)
m_calendar = Value
End Set
End Property
Public Property imgClose() As String
Get
Return m_closeGif
End Get
Set(ByVal Value As String)
m_closeGif = Value
End Set
End Property
Public Property imgDivider() As String
Get
Return m_dividerGif
End Get
Set(ByVal Value As String)
m_dividerGif = Value
End Set
End Property
Public Property imgDrop1() As String
Get
Return m_drop1Gif
End Get
Set(ByVal Value As String)
m_drop1Gif = Value
End Set
End Property
Public Property imgDrop2() As String
Get
Return m_drop2Gif
End Get
Set(ByVal Value As String)
m_drop2Gif = Value
End Set
End Property
Public Property imgLeft1() As String
Get
Return m_left1Gif
End Get
Set(ByVal Value As String)
m_left1Gif = Value
End Set
End Property
Public Property imgLeft2() As String
Get
Return m_left2Gif
End Get
Set(ByVal Value As String)
m_left2Gif = Value
End Set
End Property
Public Property imgRight1() As String
Get
Return m_right1Gif
End Get
Set(ByVal Value As String)
m_right1Gif = Value
End Set
End Property
Public Property imgRight2() As String
Get
Return m_right2Gif
End Get
Set(ByVal Value As String)
m_right2Gif = Value
End Set
End Property
Public Property imgDirectory() As String
Get
Return m_imgDirectory
End Get
Set(ByVal Value As String)
m_imgDirectory = Value
End Set
End Property
Public Property ControlCssClass() As String
Get
Return m_ControlCssClass
End Get
Set(ByVal Value As String)
m_ControlCssClass = Value
End Set
End Property
Public Property DateType() As String
Get
Return m_DateType
End Get
Set(ByVal Value As String)
m_DateType = Value
End Set
End Property
#End Region

Private Sub placeJavascript()
Dim strBuildUp As String = "<script language=JavaScript>"
strBuildUp += "// written by Tan Ling Wee on 2 Dec 2001" &
Chr(13)
strBuildUp += "// last updated 23 June 2002" & Chr(13)
strBuildUp += "// email : fuushikaden@yahoo.com" & Chr(13)
strBuildUp += "" & Chr(13)
strBuildUp += "var fixedX = -1 // x position (-1 if to
appear below control)" & Chr(13)
strBuildUp += "var fixedY = -1 // y position (-1 if to
appear below control)" & Chr(13)
strBuildUp += "var startAt = 1 // 0 - sunday ; 1 - monday" &
Chr(13)
strBuildUp += "var showWeekNumber = 1 // 0 - don't show; 1 -
show" & Chr(13)
strBuildUp += "var showToday = 1 // 0 - don't show; 1 - show"
& Chr(13)
strBuildUp += "var imgDir = """ & m_imgDirectory & """" &
Chr(13)
strBuildUp += "" & Chr(13)
strBuildUp += "var gotoString = ""Go To Current Month""" &
Chr(13)
strBuildUp += "var todayString = ""Today is""" & Chr(13)
strBuildUp += "var weekString = ""Wk""" & Chr(13)
strBuildUp += "var scrollLeftMessage = ""Click to scroll to
Re: Seeking Ideas for Controls mcglothlinj NO[at]SPAM optonline.net
5/13/2004 10:01:04 PM
[quoted text, click to view]


http://www.geocities.com/patoooey2001/code/code.html

"TextBox Mask".....My stab at an EditMask Control.

Internet Explorer 5.5+ only(at this point....maybe forever....lol)

AddThis Social Bookmark Button