Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

sql command in web part library template

  Asked By: Samir Kinney         Date: Nov 16, 2009      Category: Sharepoint      Views: 286
 

i am trying to acess data base from my cusom web part

the piece of code for connection is working fine when i use it as
ASP web
application

but when i use the same in web part library template it is not
giving the
result

i made trust level as WSS_Medium

and in assembly info.cs i have added the following line

[assembly: AllowPartiallyTrustedCallers()]


i would like to know is there any other technique to be followed

can anyone please give the solution

Tagged:              

 

1 Answer Found

 
Answer #1       Answered By: Doris Leach          Answered On: Nov 16, 2009       

Are you working  on a server that it would be safe to set the trust  level to
Full? If so, have you tried that to see if the connection  will succeed?

 
Didn't find what you were looking for? Find more on sql command in web part library template Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].