Are you sure you're passing SqlDbType.DateTime to the Parameters.Add method, and not SqlDbType.Date? The only place I can see that would throw an ArgumentException with a message of "Date" is if you're passing an unsupported SqlDbType value in:
internalstatic SqlCeType FromSqlDbType(SqlDbType type)
for (int index = 0; index < SqlCeType._AllTypes.Length; ++index)
if (type == SqlCeType._AllTypes[index].SqlDbType)
This error message has been improved in v4 of the SqlServerCe library.
If that's not the problem, can you post the stack-trace of the exception?
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
I am trying to build a webpage that connects to a Exchange 2010 server and creates a mailbox for the user name I enter. How ever I am unable to find any help to do this From few of the sites I understand that I need to use powershell to get this done. And all the samples have System.Management.Automation namespace used but for some reason I am unable to add this to my project.
Is powershell the only way to get this done or is there a better option out there?
Any help with regards to this is greatly appreciated.
I 've two assumptions, not sure what will fix you issues,
01. Try having a hidden variable after the label, and try getting the value from hidden Label
02. in Repeater1_ItemDataBound, rather than using e.Item.FindControl, you can do
Repeater1.Items[e.Item.ItemIndex].FindControl("Category")- try this once