Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Tue, 2 Sep 2008 05:28:01 -0700,    group: microsoft.public.dotnet.framework.aspnet        back       


How can I insert HTML markup that is interperted as such?   
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
date: Tue, 2 Sep 2008 08:10:48 -0400   author:   _Who

Re: How can I insert HTML markup that is interperted as such?   
"_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.
date: Tue, 2 Sep 2008 09:50:28 -0400   author:   George

Re: How can I insert HTML markup that is interperted as such? Almost working!!!!   
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
>
>
>
>
date: Tue, 2 Sep 2008 10:06:49 -0400   author:   _Who

Re: How can I insert HTML markup that is interperted as such?   
"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.
date: Tue, 2 Sep 2008 10:08:26 -0400   author:   _Who

Web parts connectivity query   
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..
date: Tue, 2 Sep 2008 05:28:01 -0700   author:   AVL

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us