Questions tagged [htmlcontrols]

67 questions
1
vote
3 answers

Unable to render html control with runat="server" dynamically

Here is a piece of my code through which i am rendering html controls with runat="server" var sb= new StringBuilder(); sb.AppendLine("
"); sb.AppendLine("

More Products

"); sb.AppendLine("
user240141
0
votes
1 answer

fill html forms with WebBrowser and click the submit button fails

There is a site for food reservation that i use to reserver food. I want to automate the reservation. There is a form with 7 checkboxes each for one day of the week. I get the checkboxes and check the days that I want and after that click the submit…
Ali Momen Sani
  • 840
  • 2
  • 11
  • 26
0
votes
2 answers

Programmatically Accessing Html Control Created in ASP.NET

Hello there. I have created a new div inside another div in asp.net. Now I want to use the innerhtml property of that newly created div. I can't find a way.. This is what im doing in my .aspx page..
Muhammad Usman
  • 163
  • 1
  • 4
  • 20
0
votes
4 answers

Build a table (with rows & columns) in code-behind (ASPX page)

Within codebehind in an ASPX page I get few details about the employees (read from external data source). Finally I would like to show in the below fashion. The display of below may be showin incorrect but is a simplpe table with header/column…
Anirudh
  • 581
  • 5
  • 14
  • 32
0
votes
1 answer

Page_PreRender finding div by id (asp.net VB)

I am trying to run some code on Page_PreRender but only want it to run on hyperlinks within a certain DIV. What the code does is change the colour of a hyperlink if the NavigateUrl = the URL of the page the user is on. I have some code that works…
Jammer
  • 2,330
  • 11
  • 48
  • 77
0
votes
1 answer

HtmlInputText Name property is not working and replace by ID

I am creating a series of input text controls from asp.net codebehind. I am using the below code, but this code doesn't set the name attribute in input control instead ID is set to the name attribute of input control. How to make name attribute…
Anurag
  • 111
  • 8
0
votes
1 answer

Windows Mobile 6.1 - Resizing HTMLControl's Window on Soft Keyboard Show/Hide

So this is a common problem and has been addressed in a few places - not specific for an HTML Control on Windows Mobile 6.1 professional though. So here's my problem A WC_HTML HTML Control created as a child window of a Windows Mobile application…
0
votes
1 answer

Access generated htmlControls in codebehind after a postback

I'm new on ASP.NET and I'm a bit lost and don't know if I'm on the right approach. In a very large form, I'm rendering a few tables with lot's of input fields. In the aspx I have this: In codebehind I…
Victor Martins
  • 1,355
  • 1
  • 12
  • 23
0
votes
1 answer

Access values of fields using form controls in javascript?

I have a form with some text fields(mostly date fields) disabled for a particular user,but has got some value in it.I am not sure whether it is a read-only field. anyway the thing is I want to access the disabled field value to perform some other…
0
votes
1 answer

HTML Control asp.net

i am developing application and i have set some html control which are runat="server" on code behind i need to change there text,i made htmlcontrol[] array which contain those control now the problem which i am facing that it didn't showing my text…
Emaad Ali
  • 1,483
  • 5
  • 19
  • 42
0
votes
1 answer

HtmlInputRadioButton when disabled does not gray out the labels

I am using in ASP.NET HtmlInputRadioButton runat = server dont ask why not RadioButtonList. Some one else's code and when I use disabled property it grays out the control but the labels are not grayed out and hence a defect. Any way to disable this…
chugh97
  • 9,602
  • 25
  • 89
  • 136
0
votes
0 answers

c# HtmlGenericControl not rendering

I've got a aspx page that dynamically renders social media sharing links. The code looks something like this. System.Web.UI.HtmlControls.HtmlGenericControl newDiv = new System.Web.UI.HtmlControls.HtmlGenericControl("DIV"); newDiv.ID =…
Vibration Of Life
  • 3,177
  • 3
  • 22
  • 23
0
votes
1 answer

Obtaining all elements of a particular class plus navigating back and forth with CodedUI

I have the following HTML `
d.rodriguez
  • 319
  • 6
  • 17
0
votes
1 answer

C# converting String to HtmlControl data type

I am dynamically populating the ID of a textbox which is saved in my database. I am setting it as a string when pulling the value out of a data set which determines the parameters for a search. I now want to use the string parameter as the dynamic…
0
votes
1 answer

Coded UI c# - how to click a table htmlcell

I have tried numerous things to access a cell in a table. I have actually found the row that I need based on an innertext search, but then when I change the columnindex to the column for the found row, I cannot get mouse.click(cell); to do anything.…
QADev
  • 1
  • 3