In Asp.net web forms, why should user control be partial? I tried to remove the partial keyword and it says:
There is no partial modifier for the ad type "test"; another partial declaration of this type exists
Where is the other declaration?
I am trying to pass a generic type using a user control, how can I do this? I cannot, unless I change another declaration. I could not find it, so I deleted the partial keyword.
Note: you have 3 files if you do WebApplication, but if you only get 2 files on your website!
UserControl.ascx
UserControl.ascx.cs
so is there another declaration on the site?
the reason why I want a generic one is because im creates a grid control, so I want to pass in the type that the data source will have.
source
share