TextBox1.text = "test";

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.
 
F

Fronky

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

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top