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
kamal hamzat
NA
1
3.4k
Compiler Error Message: CS0103: The name 'EmailTB' does not exist in the current context
Nov 11 2011 6:47 AM
I am using a ListView control to display an Email value in the EmailTB text control as shown here
<div class="form_right_view">
<asp:Label ID="EmailTB" runat="server" Text='<%# Eval("Email") %>' CssClass="" Font-Bold="true"></asp:Label>
</div>
I also wanted to use the value of the EmailTB.text in the code behind as follows
if (EmailTB.Text != " ")
{
string Username = Membership.GetUserNameByEmail(EmailTB.Text);
}
But I am getting Compiler Error Message: CS0103: The name 'EmailTB' does not exist in the current context.
Thanks
Reply
Answers (
2
)
Loop through controls in wizard step
Dropdown list control using