cdub
cdub

Reputation: 25701

Passing data to a web from from a aspx.cs file in ASP.NET

I have this input in my web form:

 <input type="text" id="keywordSearch" value="Keyword" runat="server" />

How do I get this data into there (it's from my Page_Load):

 string keywords = "This is my keywords!";

Thanks!

Upvotes: 0

Views: 1021

Answers (1)

ChrisLively
ChrisLively

Reputation: 88044

Missed the part about it being a regular HTML control:

keywordSearch.Value = keywords;

Upvotes: 4

Related Questions