I've only done a couple of basic reports using Reporting Services 2000 and I need to output a dataset with the columns running down the page and the rows running across the page. What is the best way to do this?
I would appear that I could solve this problem by using the ontextchanged to fire a sub routine. But I can not see how I might add such an event to the TextBox control dynamically from the code behind page.
Any Ideas
I am writing a shopping basket and want to basket total to be updated everytime someone changes the quantity without having to click on a 'update basket' button.
So I have made 'Autopostback' true for each quantity field. The quantity fields are added dynamically so I don't know how many there...
Ok I've just figured out that if you remove runat="servcer" from the <head> tag in the master page, then it will not render a second title tag from the content page. This suits my own requirements perfectly.
I have a dynamic site and have rendered the HTML <head> section from the master page. However the content page also renders a title tag. So the first question is can I stop this and the second question is if not, how can I ensure that the title tag is rendered as the first item in the <head>...
Blimey I thought you had it there for a minute, but its slightly more complex because the form is being generated from a database so I don't know what form elements there will be and therefore need to do it all from the code behind.
So I tried doing what you have done here and creating a lable...
Sorry just going back to the issue at hand, do you think that it is possible to change the order of the controls in the controls collection so that the label is rendered first.
I'm not bad with style sheets, but its tricky to do anything too adventurous layout wise when you are trying to...
I understand, at least I think I do, but the forms are generated on the fly from a database. I have no idea of what any given form will contain so it all has to be written out on the fly.
Its an old Classic ASP app I wrote several years ago that does the same sort of thing as surveymonkey or...
Thanks once again for your help, I was determind not to have to resort to HTML form controls and loose all the nice .Net features. While it might not be great at least there is a way forward.
if I do this
myText = New TextBox()
myText.Text = "input text"
myText.ID = "txt_3"
myText.MaxLength = 10
myLiteral = New Literal
myLiteral.Text = "<label for='" & myText.ClientID & "'>my text box</label>"
FormPanel.Controls.Add(myLiteral)
FormPanel.Controls.Add(myText)
I get this
<label...
Yes this works and I'm very grateful for this, but I now have the issue that the label appears after the text box. I guess that the textbox must be added to the form controls collection before you can add the label.
myText = New TextBox()
myText.Text = "input text"
myText.ID = "txt_3"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.