منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب
تطبيق Style على Control معين - نسخة قابلة للطباعة

+- منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب (http://vb4arb.com/vb)
+-- قسم : الأقسام التعليمية - المنتدى القديم (http://vb4arb.com/vb/forumdisplay.php?fid=90)
+--- قسم : مكتبة أكواد المنتدى (http://vb4arb.com/vb/forumdisplay.php?fid=111)
+---- قسم : مكتبة أكواد لغات الويب (http://vb4arb.com/vb/forumdisplay.php?fid=119)
+---- الموضوع : تطبيق Style على Control معين (/showthread.php?tid=6393)



تطبيق Style على Control معين - RaggiTech - 17-10-12

كاتب الموضوع : AhmedEssawy

VB.net :

<script language="VB" runat="server" >

Sub Page_Load(Sender As Object, E As EventArgs)
MyText.Style("width") = "90px"
Response.Write(MyText.Style("width"))
End Sub

</script>

<input type="text" id="MyText" runat="server"/> C# :


كود :
<script language="C#" runat="server" >

void Page_Load(Object sender, EventArgs E) {
MyText.Style["width"] = "90px";
Response.Write(MyText.Style["width"]);
}

</script>

<input type="text" id="MyText" runat="server"/>