Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing HTML controls from the CodeBehind
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Titre:
Accessing HTML controls from the CodeBehind
Divers
Thread ID:
00925305
Message ID:
00925305
Vues:
50
I need to use HTML controls (textbox and/or listbox) and want to hide them so the user can't see them. I was wondering how I can set the values of these controls from my CodeBehind area... I have a WebForm DataGrid and in the SelectedIndexChanged I want to write to these HTML controls.

Also, How can I have my HTML scripts access my WebForm Controls... when their VISIBLE property is set to FALSE?

And, while I'm at it...

I have a JavaScript which I'm using to get the value of a WebForm TextBox Control...
How would I change it to access a WebForm ListBox Control?
I tried what I thought would be right but it didn't like it.
function GetTextBoxValue()
{
	var oTextBox = document.getElementById("txtReminderTime")
	return oTextBox.value
}
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform