Blog Archive

Search Blog

Blog List

Contact Me






Enter the code shown above in the box below
Send

 

Announcements

Recommended Websites

Events

Event StartEvent EndTitle

Recommended Reading

Most recent blog entries

A good guide to the ASP.NET 2.0 Wizard Control can be found here http://steveorr.net/articles/Wizard.aspx

  I wanted to have the Wizard Control Header display the current step’s title, after a little research I found that the ActiveStepChanged event would allow me to do this. So I added an event handler like this:

    Protected Sub Wizard1_ActiveStepChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Wizard1.ActiveStepChanged

        Me.Wizard1.HeaderText = Me.Wizard1.ActiveStep.Title

    End Sub

  Except it didn’t set the Header for the first step so I set the HeaderText manually to the first step’s title like this:

        asp:Wizard ID="Wizard1" runat="server" HeaderText="Step 1">

            WizardSteps>

                asp:WizardStep ID="WizardStep1" runat="server" Title="Step 1">

                asp:WizardStep>

                asp:WizardStep ID="WizardStep2"...

Read More »

Add a property to your WebUserControl:

Private widthValue As Integer

Public Property Width() As Integer

    Get

        Return widthValue

    End Get

    Set(ByVal value As Integer)

        widthValue = value

    End Set

End Property

Then add a prerender event handler to the WebUserControl, where in this example the MainTable happens to be the outermost container element in the Web User Control with a width attribute:

Private Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender

    If Me.Width > 0 Then

        Me.MainTable.Width = Me.Width

    End If

End Sub

Then where ever you use the control you can specify the width if you want to:

uc2:MyWebUserControl ID="MyWebUserControl1" runat="server" width="650" />



...

Read More »

With this html:

  All   Company 1   Company 2   Company 3   Company 4   Company 5

 

 

In my webtest I wanted to verify CompanyDropDownList had selected option 2 "Company 1".

 

Tried Form Field with form field name ctl00$ContentPlaceHolder1$CompanyDropDownList but it did not work.

 

Using Required Attribute Value worked with the following values:

 

Attribute Name             value

Expected Value            2

Ignore Case                  False

Match Attribute Name    selected

Match Attribute Value    selected

Tag Name                     option



...

Read More »