Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Security on Pages of TabControl (WinForms)
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00881183
Message ID:
00881869
Views:
28
I got the same error message. Since I couldn't get the 'generate controlid' button to work, the UserSecurity table has no records, could this be part of the problem?

>Clay,
>
>Try this...if you haven't already done so, create a subclass of the UserSecurity business object and override the GetUserSecurityByPK method:
>
>
public override DataSet GetUserSecurityByPK(object userPK)
>{
>	mmDataAccessBase dao = this.GetDataAccessObject();
>	IDbDataParameter param = dao.CreateParameter("@" + this.UserFKField, userPK);
>	param.DbType = DbType.Int32;
>	return this.GetDataSet(this.GetUserSecurityByPKCmd, param);
>}
>
>In this code I have added a line of code that specifies the DbType on the parameter object (change the setting of DbType to something other than Int32 if your PKs aren't integers).
>
>I've found that sometimes the OLEDB Providers work better if you specify the parameter type.
>
>Regards,
--------------------------
Clay Angelly
cangelly@ie-inc.com
Never argue with an idiot. They drag you down to their level and beat you with experience.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform