Click here to Skip to main content
11,430,402 members (75,224 online)
Rate this: bad
good
Please Sign up or sign in to vote.
Hi,

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 6:11am
Edited 1-Apr-12 6:16am
v2
Comments
André Kraak at 1-Apr-12 11:16am
   
Edited question:
Added pre tags
Sergey Alexandrovich Kryukov at 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.
—SA
Rate this: bad
good
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?
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

for pasrec_txt, runat="server" is there?
  Permalink  
v2

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



Advertise | Privacy | Mobile
Web02 | 2.8.150428.2 | Last Updated 27 Apr 2012
Copyright © CodeProject, 1999-2015
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