I almost have it working!
> In the .aspx I have
>
> <p runat="server" id="qq" > </p>
>
> and in the aspx.vb I have
>
> Protected Sub qq_Init(ByVal sender As Object, ByVal e As System.EventArgs)
> Handles qq.Init
>
Dim csmKey As String = "CopyHtml"
Dim csmType As Type = Me.GetType()
Dim csm As ClientScriptManager = Page.ClientScript
If (Not csm.IsStartupScriptRegistered(csmType, csmKey)) Then
Dim csmScript As New StringBuilder() 'The startup script literal to register
csmScript.Append("document.write('<h1>ssssss</h1>")
csmScript.Append("<p>eeee</p>")
csmScript.Append("');")
csm.RegisterStartupScript(csmType, csmKey, csmScript.ToString, True)
End If
>
> End Sub
>
This does produce the formated tex on the page
But at the bottom of the page. Not where the qq is.
How can I control where it goes?
>
>
>
> Thanks
>
>
>
>
|