does not exist in the current context

G

Guest

I have and web page 'ePimsRegister.aspx' and assocated with this is some code
in ''ePimsRegister.aspx.CS'. the code follows:

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class ePimsRegister : System.Web.UI.Page
{
protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e)
{
if (Pet_Owner.Checked)
{
RequestedSystem = 1;
}
}
}

The error is with 'RequestedSystem' is a textbox defined on the web page
'ePimsRegister.aspx' What am I doing wrong.
 
M

Marc Gravell

Perhaps: RequestedSystem.Text = "1"; but also check the runat="server"
and that it has the right ID

Marc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top