TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Dinesh Santhalingam
NA
737
367.5k
Access the asp page controllers inside a static method
Jan 3 2017 2:37 AM
I have a Webpage having some controls like Text box, Buttons ,etc.,
Asp:
<
asp:TextBox
ID
=
"TextBox1"
runat
=
"server"
>
</
asp:TextBox
>
<
asp:TextBox
ID
=
"TextBox2"
runat
=
"server"
ReadOnly
=
"false"
>
</
asp:TextBox
>
<
asp:TextBox
ID
=
"TextBox1"
runat
=
"server"
ReadOnly
=
"false"
>
</
asp:TextBox
>
<
asp:button
runat
=
"server"
id
=
"loadbtn"
Text
=
"Load"
/>
C#:
public static Array Load()
{
string
a
=
textbox1
.text.Tostring();
// I Can't access the controls inside a static method.
}
Please suggest some ideas .,
Reply
Answers (
9
)
What is different between instance and object.
UPLOADFILE NOT REFERENCING THE POINTED FILE