Click here to Skip to main content
15,917,709 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: https to http Pin
Sarfaraj Ahmed12-Feb-09 16:49
Sarfaraj Ahmed12-Feb-09 16:49 
GeneralRe: https to http Pin
Jon Rista13-Feb-09 13:33
Jon Rista13-Feb-09 13:33 
Questionselect control in asp Pin
radupopescu77712-Feb-09 5:42
radupopescu77712-Feb-09 5:42 
AnswerRe: select control in asp Pin
Abhijit Jana12-Feb-09 7:15
professionalAbhijit Jana12-Feb-09 7:15 
GeneralRe: select control in asp Pin
radupopescu77712-Feb-09 8:09
radupopescu77712-Feb-09 8:09 
AnswerRe: select control in asp Pin
Guffa12-Feb-09 15:17
Guffa12-Feb-09 15:17 
GeneralRe: select control in asp Pin
radupopescu77712-Feb-09 19:49
radupopescu77712-Feb-09 19:49 
QuestionASP controls not being reconized in the code behind. [modified] Pin
Steve Holdorf12-Feb-09 4:45
Steve Holdorf12-Feb-09 4:45 
I have an ASP page with asp labels controls on the .asp page. In the page code-behind these labels are not being reconized (error: the name lblCountry does not exist in the current context). First I displayed the ASP controls below. After that I show the code behind where they are not being reconized. I can view the asp page in the designer and all looks well. Can anyone assist?

ASP controls:

<table> 

<tr>

<td>Customer ID:</td>

<td><asp:label runat="server" id="lblCustomerID" xmlns:asp="#unknown" /></td>

</tr> 

<tr>

<td>Company Name:</td>

<td><asp:label runat="server" id="lblCompanyName" xmlns:asp="#unknown" /></td>

</tr>

<tr>

<td>Contact Name:</td>

<td><asp:label runat="server" id="lblContactName" xmlns:asp="#unknown" /></td>

</tr>

<tr>

<td>Country:</td>

<td><asp:label runat="server" id="lblCountry" xmlns:asp="#unknown" /></td>

</tr>

</table>


Code Behind:

lblCompanyName.Text = editTxtCompanyName.Text;

lblContactName.Text = editTxtContactName.Text;

lblCountry.Text = editTxtCountry.Text;


Thanks,


Steve

modified on Thursday, February 12, 2009 11:15 AM

AnswerRe: ASP controls not being reconized in the code behind. Pin
vaghelabhavesh12-Feb-09 5:51
vaghelabhavesh12-Feb-09 5:51 
GeneralRe: ASP controls not being reconized in the code behind. Pin
Steve Holdorf12-Feb-09 5:55
Steve Holdorf12-Feb-09 5:55 
GeneralRe: ASP controls not being reconized in the code behind. Pin
vaghelabhavesh12-Feb-09 5:56
vaghelabhavesh12-Feb-09 5:56 
GeneralRe: ASP controls not being reconized in the code behind. Pin
Steve Holdorf12-Feb-09 6:12
Steve Holdorf12-Feb-09 6:12 
Questionbuying the rigth MS SQL Edition Pin
orsini4412-Feb-09 4:35
orsini4412-Feb-09 4:35 
AnswerRe: buying the rigth MS SQL Edition Pin
Rutvik Dave12-Feb-09 9:02
professionalRutvik Dave12-Feb-09 9:02 
Questionasp.net Pin
logu07012-Feb-09 4:17
logu07012-Feb-09 4:17 
AnswerRe: asp.net Pin
J4amieC12-Feb-09 5:00
J4amieC12-Feb-09 5:00 
GeneralRe: asp.net Pin
ToddHileHoffer12-Feb-09 8:51
ToddHileHoffer12-Feb-09 8:51 
AnswerRe: asp.net Pin
Abhijit Jana12-Feb-09 6:18
professionalAbhijit Jana12-Feb-09 6:18 
AnswerRe: asp.net Pin
Christian Graus12-Feb-09 12:45
protectorChristian Graus12-Feb-09 12:45 
QuestionPut ValidationGroup for RequiredFieldValidator runtime--urgent Pin
trilokharry12-Feb-09 4:14
trilokharry12-Feb-09 4:14 
AnswerRe: Put ValidationGroup for RequiredFieldValidator runtime--urgent Pin
joemonvarghese80@yahoo.co.in12-Feb-09 18:56
joemonvarghese80@yahoo.co.in12-Feb-09 18:56 
Questionscrolling dynamic content on web page Pin
Vignesh Krishnan12-Feb-09 3:44
Vignesh Krishnan12-Feb-09 3:44 
AnswerRe: scrolling dynamic content on web page Pin
Abhijit Jana12-Feb-09 7:27
professionalAbhijit Jana12-Feb-09 7:27 
QuestionGridview DateTime Problem Pin
innocent7312-Feb-09 3:34
innocent7312-Feb-09 3:34 
AnswerRe: Gridview DateTime Problem Pin
Abhijit Jana12-Feb-09 7:28
professionalAbhijit Jana12-Feb-09 7:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.