newbie: want to use same variable in c# in HTML code
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
In my C# code i have a variable EmbedTextBox.Text = this.OpenFileDialog; I want to use that same variable's contents in my HTML code e.g. "" which does not work. is there an easy of doing this?
If it is a server side control on the page you wish to use, you simply use the name: <% =EmbeddedTextBox.Text; %> It is a member of your page class. Rocky <>< www.HintsAndTips.com - Now with "Recommendation" postings www.JokesTricksAndStuff.com www.MyQuickPoll.com - Now with RSS Feed and Prizes www.GotTheAnswerToSpam.com - Again :)