有人可以告訴我如何從服務器端訪問控制並將其屬性設置爲啓用?針對<input type =「number」>的服務器端代碼
-1
A
回答
2
如果你正在使用你需要添加<input type="number" id="numb" runat="server">
web表單添加專用runat="server"
和做這在服務器端
numb.Enabled=false;
+0
嗨。我在sitefinity平臺上使用c#。因此,放置Runat-「服務器」並嘗試直接從服務器端訪問iut將無濟於事。我們必須聲明如下的控件:public TextBox txtDailyEvery { get {return this.Container.GetControl
相關問題
- 1. 使用<input type = number>
- 2. 將值設置爲<input type =「number」/>
- 3. <input type =「file」/>
- 4. <input type ='button'/>和<input type ='submit'/>之間的區別
- 5. 在<input type =「number」>中禁用文本輸入>
- 6. INPUT TYPE =「文件」服務器端訪問
- 7. <input type =「submit」/>和<input type =「text」/>
- 8. <input type = time>的替代方法?
- 9. 如何使用值代替jquery的計算來代替<input type =「number」>
- 10. HTML中的可編輯單位<input type =「number」>
- 11. <input type ='number'>是自動遞增的。錯誤?
- 12. get input type =「number」標籤在服務器上運行
- 13. <input type =「file」/>的幫助器
- 14. <input type =「number」>在IE10中不工作
- 15. 樣式<input type = number />微調箭頭正確
- 16. <input type =「number」/>沒有在iOS上顯示數字鍵盤
- 17. 使用AngularJS和Pattern/RegEx驗證<input type =「number」/>
- 18. <input type =「number」/>什麼事件發生變化時觸發?
- 19. 不能設置幾個數字到<input type =「number」>
- 20. 爲什麼<input type =「number」maxlength =「3」>在Safari中不工作?
- 21. <button>與<INPUT TYPE =「圖像」>
- 22. 定製<input type =「file」>?
- 23. 增加<input type =「text」>
- 24. 驗證<input type =「date」>
- 25. 更改<input type =「submit」>
- 26. 爲<input type ='submit'>
- 27. <input type =「text」/>換行
- 28. <type =「input」runat =「server」>
- 29. 清除<input type = file>
- 30. HTML5 <input type =「date」> change
能否請你先指定你所使用的服務器端渲染控制? (MVC,WebForms,別的) –
你使用什麼技術?這是在ASP.NET MVC?如果是這樣,你不能訪問它「服務器端」。您需要將其傳遞給 –
大衛您好,請您澄清您的意思是「您必須傳遞」 – user1277518