Click here to Skip to main content
12,882,493 members (27,848 online)
Rate this:
Please Sign up or sign in to vote.

I am having a strange issue.
The psrec_txt text box is defined in the design view, but it's showing the name pasrec_txt does not exist in current context in the code behind file.

Can someone please help me.

Below is the code:
mail.To.Add(new MailAddress(pasrec_txt.Text));
Posted 1-Apr-12 5:11am
Updated 1-Apr-12 5:16am
André Kraak 1-Apr-12 11:16am
Edited question:
Added pre tags
Sergey Alexandrovich Kryukov 11-Mar-13 13:20pm
Please don't post non-answers as "solution". It can give you abuse reports which eventually may lead to cancellation of your CodeProject membership.
Comment on any posts, reply to available comments, or use "Improve question" (above).
Also, keep in mind that members only get notifications on the post sent in reply to there posts.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Well, you answered your own question really:
the psrec_txt textbox is defined in the design view

(new MailAddress(pasrec_txt.Text)
Perhaps if they both used either psrec_txt or pasrec_txt it would work?
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

for pasrec_txt, runat="server" is there?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170422.1 | Last Updated 27 Apr 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100