html - Background-color have a strange behavior -


मेरे पास एक टेबल है:

  & lt; टेबल id = "TableCorpsDetails" runat = " सर्वर "सेलपैडिंग =" 20 "बीजी रंगोर =" & lt;% = BgColor% & gt; " सीमा = "1" संरेखित करें = "केंद्र" चौड़ाई = "50%" & gt;  

और मेरे vb कोड में, मैं एक नीला रंग (जिसमें से एक एसक्यूएल अनुरोध) बाँध:

  BgColor = myDS.Tables (0) .Rows (0) एटम ("क्युएलर")। टॉस्ट्रिंग  

और जब मैं उस कोड को निष्पादित करता हूं तो पृष्ठभूमि का रंग ग्रीन होता है और मुझे नहीं पता कि क्यों ... मैंने नहीं किया इससे पहले कि मैं runat = "server" संपत्ति को जोड़ने से पहले यह व्यवहार करता हूं मैंने Bgcolor पैरामीटर को निकालने और केवल वीबी कोड के साथ काम करके इस समस्या को तय किया है:

  टेबलकॉप्स विवरण। स्टाइल। जोड़ें ("पृष्ठभूमि-रंग", एटम ("युपल     पर  runat = "server"  प्रभाव क्यों   


Comments

Popular posts from this blog

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

sql server ce - Is there some way to make sqlce3.5 and 4.0 co-exist in the C# project -