"CS1513: } expected" ASP.NET compilation error while accessing base members

T

TJ

Hello all,

I'm having a weird error. I'm getting error CS1513 on Line 36. It
appears when I comment out this line, it compiles just fine but doesn't
do what I want, which is run the code in the base class method
"Page_PreLoad(..., ...)".

Anyone able to help me out? Alot of the stuff down there probably
doesn't look right, it's a work in progress, and I'm a C#/.NET newbie.
TIA

-TJ

Line 19: public class Index : ControllerBase
Line 20: {
Line 21: // variables specific to index.aspx
Line 22: protected string sU;
Line 23:
Line 24: public Index() : base()
Line 25: {
Line 26: // initialize variables
Line 27: base();
Line 28:
Line 29: // fill actions Hashtable
Line 30: DoLogin dl = new DoLogin(this.model);
Line 31: this.actions[dl.getName()] = dl;
Line 32: }
Line 33:
Line 34: public override void Page_PreLoad(object Src, EventArgs
E)
Line 35: {
Line 36: base.Page_PreLoad(object Src, EventArgs E); //
<----- problem line??
Line 37: }
Line 38:
Line 39: public override void Page_Load(object Src, EventArgs E)
Line 40: {
Line 41:
Line 42: //base.Page_Load(object Src, EventArgs E);
Line 43: }
Line 44:
Line 45: public override void Page_LoadComplete(object Src,
EventArgs E)
Line 46: {
Line 47: //base.Page_LoadComplete(object Src, EventArgs E);
Line 48: }
Line 49:
Line 50: // PreRender event will pre-fill all form values if
applicable
Line 51: public void Page_PreRender(object Src, EventArgs E)
Line 52: {
Line 53: if(Request.Form.Count > 0)
Line 54: {
Line 55: sU = Request.Form["u"];
Line 56: }
Line 57: else
Line 58: {
Line 59: sU = "";
Line 60: }
Line 61: }
Line 62: }
 

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

Top