Questions tagged [htmlcontrols]

67 questions
8
votes
1 answer

Hide a value or text from the HTML Input control

How to hide a text or value from a html inputfield without set to hidden control. I want to the textbox keep on visible but the text/value is hide. Is possible? Thank You
MFBM
  • 145
  • 1
  • 1
  • 7
7
votes
1 answer

HTML5 controls are not working in JavaFX webview

I am using below tag in my JavaFX WebView standalone application in one of the page Input type number which accepts characters also input type date which is not rendering as a date control
Dinesh Falwadiya
  • 769
  • 5
  • 20
5
votes
5 answers

Setting value in html control in code behind without making server control

Setting value in html control in code behind without making server control
Muhammad Akhtar
  • 51,913
  • 37
  • 138
  • 191
3
votes
1 answer

Where can Sitecore webcontrol examples be found?

I've been looking over the Sitecore documentation for HtmlControls and WebControls, but none of the items have any meaningful descriptions or example code to show how they're used or what they produce. I understand how to use simple controls like…
zzzzBov
  • 174,988
  • 54
  • 320
  • 367
3
votes
3 answers

how do i edit a masterpage div from child page?

what's the DIV equivalent to this command? ((Panel)this.Page.Master.FindControl("Panel1")).Style.Add("display", "none"); This works great with a panel but I can't find the variation for doing the same thing with a DIV who's ID I know. anyone…
korben
  • 53
  • 1
  • 4
3
votes
1 answer

Is it possible to set a class attribute from a System.Web.UI.HtmlControls.HtmlButton though code?

I am looking for a way to add class attributes to a button so it can be styled, but I can't figure out how to do this from my code. The System.Web.UI.HtmlControls.HtmlButton has a AttributeCollection property but it's read-only, so that's no use to…
William
  • 33
  • 3
3
votes
2 answers

ASP .NET confusion - server controls

I have read through the information in this question: Controls versus standard HTML but am still rather confused. The situation was I was asked to do a web project where I made a wizard. When I was done with the project everyone asked why I had used…
Brandi
  • 1,549
  • 4
  • 24
  • 32
3
votes
2 answers

Customized button text for file upload

How do I change the button text of file upload HTML control from default "Browse" to anyother text?
Jaqen H'ghar
  • 1,839
  • 7
  • 37
  • 66
3
votes
2 answers

Can I access the height/width of an HTML control I just created in C#?

I'm creating DIV controls from code behind using this code - System.Web.UI.HtmlControls.HtmlGenericControl dynDiv = new System.Web.UI.HtmlControls.HtmlGenericControl("DIV"); dynDiv.ID =…
neuDev33
  • 1,573
  • 7
  • 41
  • 54
3
votes
1 answer

"scrollHeight" not updated in "onscroll" event handler when using HtmlCtrl in an application but works correctly in IE9

When sample below code loads in IE9, it works correctly, but when loads in an html control in an application, scrollHeight not updated in onscroll event handler when I change the innerHTML content in the handler, and therefore the alert not to be…
2
votes
1 answer

How can I loop through html controls in ASP.NET page with No "runat=server"

How can I loop through html controls inside an ASPX page which don't have "runat=server" attribute? Because of using code blocks and dynamic variables on them I cannot add the attribute:
Mertez
  • 1,061
  • 3
  • 14
  • 38
2
votes
7 answers

Creating HTMLControls versus outputting a string of HTML

I was recently trying to explain to a programmer why, in ASP.Net, they should create HTMLControls instead of creating HTML strings to create Web pages. I know it is a better way of doing things, but I really couldn't give concrete reasons, other…
Rich
  • 671
  • 6
  • 10
2
votes
0 answers

Custom HTMLControl derived from HtmlImage control not visible in VS2008 toolbox

I have a custom control deriving from HtmlImage control which I cant get to show up on toolbox, it says "There are no components in '...\bin\Debug\ImageCustomControl.dll' that can be placed on the toolbox.". Here is the code for the…
Tinvan
  • 39
  • 2
2
votes
2 answers

ASP.NET - Composite Control - Adding Dynamic Control after CreateChildControls suppresses Button Click event

Setup - I want user to enter details for their plastic cards. They can click on AddNewCard button to add multiple cards. Code [Serializable] public class Card { public string Number { get; set; } public string Code { get; set; } } public…
EagerToLearn
  • 827
  • 2
  • 14
  • 24
2
votes
2 answers

Change button text in GridView - (GridView ItemTemplate buttons rendered as DataBoundLiteralControl)

I have 2 buttons in a column of my GridView control.
wotney
  • 1,039
  • 3
  • 21
  • 34
1
2 3 4 5