c# - Member defined more than once -


i new whole , set thing, seems pretty straightforward, don't set calling this.var = value?

public loginview loginview1 { get; set; }  void page_load(object sender, eventargs e) {     this.loginview1 = (loginview)findcontrols.findcontrolrecursive(page, "loginview1");      radgrid radgrid3 = (radgrid)loginview1.findcontrol("radgrid3");     radgrid radgrid4 = (radgrid)loginview1.findcontrol("radgrid4");     updatepanel updatepanel1 = (updatepanel)loginview1.findcontrol("updatepanel1");     loaddata(); } 

my error saying loginview1 defined more once. want set global variable on page load.

you'll have on page itself, means in designer.cs file too, means there indeed loginview1 defined, login view trying get.

call else.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -