asp.net - How can I access the controls on my default aspx page from my class library, within solution -
my problem seemed easy can't find right solution. how can access mg controls (textboxes, grid view, etc) located in default.aspx page class library. error (the name 'gridview1' not exist in current context) being thrown. i'm wondering why since added project default page located in reference of class library. include in namespace.
exercise1 --> project default.aspx page located
classlibrary1 --. wanted use controls
using exercise1; --> included in namespace.
what else miss? thanks!
it seems me you're working on backwards, class library shouldn't have access presentation elements, should (in code behind) calling methods class library interact gridview. shouldn't calling gridview class library.
Comments
Post a Comment