Question : Changing Text

Hi,

I have some code which works well (attached)

I can't change it so that it changes some text on the page:

        <div class="frame100">
                <fieldset class="login">
                    <legend>Previous Action Items</legend>

I would like the text in the legend tag to change to the same values as currently displayed in lblresults?

Any ideas?
1:
2:
3:
4:
5:
6:
7:
Protected Sub SQLDShowActionRef_Selected(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceStatusEventArgs) Handles SQLDShowActionRef.Selected
        If e.AffectedRows < 1 Then
            lblResults.Text = "No Records Found"
        Else
            lblResults.Text = e.AffectedRows & " Records Found"
        End If
    End Sub

Answer : Changing Text

1: place a label in the legend and set the text of it as per your need...
or
2: Use javascript or jquery to find the legend in question and then change the Text.
Random Solutions  
 
programming4us programming4us