Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何在VB.NET xml字符串文本中嵌入变量css样式?_Html_Css_Xml_Vb.net - Fatal编程技术网

Html 如何在VB.NET xml字符串文本中嵌入变量css样式?

Html 如何在VB.NET xml字符串文本中嵌入变量css样式?,html,css,xml,vb.net,Html,Css,Xml,Vb.net,我想向HTML标记内的字符串文本添加变量数据 Dim locationOfImage as string = "http://blahblah......" Dim xmlString = _ <div style="background:url(" <%= locationOfImage %> ")"> <h3>Some text</h3> </div&g

我想向HTML标记内的字符串文本添加变量数据

Dim locationOfImage as string = "http://blahblah......" 
Dim xmlString = _
            <div style="background:url(" <%= locationOfImage  %> ")">
                <h3>Some text</h3>

            </div>

以上这些都不起作用,我不能很快决定怎么做?这可能吗。我可以用StringBuilder实现我的目标,但如果可能的话,我希望使用xml文本。

Xattrbiute可能就是这样吗?
<div style="<%= String.Format("background:url('{0}')", locationOfImage)  %>">