Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/333.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/32.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
C# 如何使用innerhtml设置高度和宽度?_C#_Asp.net - Fatal编程技术网

C# 如何使用innerhtml设置高度和宽度?

C# 如何使用innerhtml设置高度和宽度?,c#,asp.net,C#,Asp.net,我正在用c代码设置Conataner的高度 我在ascx页面中接收到这些值,如 height:<%= this.Height34 %>px; 你在设定谁的高度?为什么不设置该控件的Height属性?如何设置Height属性。我正在从settngs页接收值。每个控件都有一个属性。如果您接受以前问题的答案(如果他们提供了答案),您就更有可能得到新问题的答复。 height:<%= this.Height34 %>px; this.Controls.Add(scriptTa

我正在用c代码设置Conataner的高度

我在ascx页面中接收到这些值,如

height:<%= this.Height34 %>px;

你在设定谁的高度?为什么不设置该控件的Height属性?如何设置Height属性。我正在从settngs页接收值。每个控件都有一个属性。如果您接受以前问题的答案(如果他们提供了答案),您就更有可能得到新问题的答复。
height:<%= this.Height34 %>px;
this.Controls.Add(scriptTagLinks);