TextBox1.text = "test";

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

basic question. in my .aspx page onclick="login" and also have:
<%@ import Namespace = "login" %> on my webpage

when i add a class called "login" and set a control such as: Button1.Text =
"test";
i get 'TextBox1' does not exist in the current context. i declared it public.
 
Try changing your Button1.Text = "";
to
Context.Button1.Text = "";

Cheers
Fronky


ae said:
basic question. in my .aspx page onclick="login" and also have:
<%@ import Namespace = "login" %> on my webpage

when i add a class called "login" and set a control such as: Button1.Text =
"test";
i get 'TextBox1' does not exist in the current context. i declared it
public.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top