有人可以告訴我如何從服務器端訪問控制並將其屬性設置爲啓用?針對<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 =「file」/>
- 3. <input type ='button'/>和<input type ='submit'/>之間的區別
- 4. 在<input type =「number」>中禁用文本輸入>
- 5. INPUT TYPE =「文件」服務器端訪問
- 6. <input type =「submit」/>和<input type =「text」/>
- 7. <input type = time>的替代方法?
- 8. <input type ='number'>是自動遞增的。錯誤?
- 9. HTML中的可編輯單位<input type =「number」>
- 10. get input type =「number」標籤在服務器上運行
- 11. <input type =「file」/>的幫助器
- 12. 不能設置幾個數字到<input type =「number」>
- 13. 樣式<input type = number />微調箭頭正確
- 14. 爲什麼<input type =「number」maxlength =「3」>在Safari中不工作?
- 15. <input type =「number」>在IE10中不工作
- 16. <input type =「number」/>什麼事件發生變化時觸發?
- 17. 使用AngularJS和Pattern/RegEx驗證<input type =「number」/>
- 18. <input type =「number」/>沒有在iOS上顯示數字鍵盤
- 19. <button>與<INPUT TYPE =「圖像」>
- 20. HTML5 <input type =「date」> change
- 21. 爲<input type ='submit'>
- 22. <type =「input」runat =「server」>
- 23. 增加<input type =「text」>
- 24. <input type =「text」/>換行
- 25. <input type =「file」> EMPTY
- 26. HTML5 <input type ='range'>
- 27. 驗證<input type =「date」>
- 28. 清除<input type = file>
- 29. 定製<input type =「file」>?
- 30. HTML5 - Android平板 - INPUT TYPE NUMBER
能否請你先指定你所使用的服務器端渲染控制? (MVC,WebForms,別的) –
你使用什麼技術?這是在ASP.NET MVC?如果是這樣,你不能訪問它「服務器端」。您需要將其傳遞給 –
大衛您好,請您澄清您的意思是「您必須傳遞」 – user1277518