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
blair
NA
4
0
Retrieving Data in Code
Sep 28 2004 3:59 PM
I want to create a mail service that (1) looks up a recommended subject heading in a database and (2) inserts that heading on the screen’s form. The sender is free to keep that heading or change it. When the service sends the email, it takes the subject from the subject textbox and uses that as the mail object’s subject property. The problem is that I cannot get the server to recognize the name of the subject box. I have named the subject text box “tbSubject”; however, when I try to use that name in code I get an exception stating that tbSubject is undeclared. Of course, it has been declared, but it is part of a datalist. I have tried to use the datalist name as in: dlSubject.tbSubject.Text or dlSubject.ItemTemplate.tbSubject.Text. That doesn’t work either. Surely there is some simple way to refer to the text in a textbox that contains bound data.
Reply
Answers (
1
)
How to get listbox control to work????
DBConcurrencyException not working!!