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 strContents = "<h1>QQQQQQ</h1>" qq.InnerText = strContents End Sub But this produces as text <h1>QQQQQQ</h1> The tags are treated as text. How can I insert HTML markup that is interpreted as such? Thanks
"_Who" wrote in message news:eVmVwTPDJHA.3352@TK2MSFTNGP05.phx.gbl... > 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 > > strContents = "<h1>QQQQQQ</h1>" > > qq.InnerText = strContents > > End Sub > > But this produces as text > > <h1>QQQQQQ</h1> > > The tags are treated as text. > > How can I insert HTML markup that is interpreted as such? > > > > Thanks > > > > I belive there is InnerHtml which will not HtmlEncode the string you put in.. George.
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 > > > >
"George" wrote in message news:%23TTpdLQDJHA.232@TK2MSFTNGP04.phx.gbl... > "_Who" wrote in message > news:eVmVwTPDJHA.3352@TK2MSFTNGP05.phx.gbl... >> 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 >> >> strContents = "<h1>QQQQQQ</h1>" >> >> qq.InnerText = strContents >> >> End Sub >> >> But this produces as text >> >> <h1>QQQQQQ</h1> >> >> The tags are treated as text. >> >> How can I insert HTML markup that is interpreted as such? >> >> >> >> Thanks >> >> >> >> > > > > I belive there is InnerHtml which will not HtmlEncode the string you put That makes sense. I'll look for it. Please see my other reply to this topic. Thanks > in.. > > George.
is it possible to use ajax in connected web parts... Ive web part 'A' which implements Ajax. The web part 'A' acts a s a provider for web part 'B'. But when Ajax code is enabled, the web part 'A' is not passing on the information to web part 'B'... When I comment the Ajax related code,,then the connectivity between web parts is working... can I use ajax in the connected web parts... will consumer web part be called if we change web part provider implementing ajax.... need more info on the connected web aprts with ajx..please do help..