|
when i m accessing database from my Default.aspx page exception raises i:e
Cannot open database "MyDatabase" requested by the login. The login failed. Login failed for user '[Computer Name/ASPNET]'.
any idea how to solve this?
|
|
|
|
|
Don't use integrated security and specify a username and password in your connection string.
|
|
|
|
|
string connString = @"server = .\sqlexpress; integrated security = true; database = MyDatabase";
hv i to use this
string connString = @"server = .\sqlexpress; username = "xyz" ; password = "xyz" ; database = MyDatabase";
|
|
|
|
|
hotthoughtguy wrote: string connString = @"server = .\sqlexpress; username = "xyz" ; password = "xyz" ; database = MyDatabase";
Something like that. I think it is user id instead of username, and of course no quotes around the values. For a good reference see http://www.connectionstrings.com/[^]
|
|
|
|
|
It is bad manners to post the same question to multiple forums
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|
well thanks for that link
|
|
|
|
|
Hi,
im trying to use the webcam on a webpage, I created the control in C# , when working with a normal windows form app, it works fine , displaying the image that it gets from the webcam, but when i convert it into a activex control so that i can use the functionality on a aspx page , the webcam gets initialized but i only see a black box where the cam feed is supposed to be, ive tried a lot of ways now but i cant seem to display a picture in the picture box in the activex control, it just stays black,
so if someone could please assist me in do this,
either how to use the webcam on a aspx page or how to display a image saved on the client pc
(when i save an image on the client pc with the activex control it saves fine, it just does not display on the page)
I need this to take pictures of employees ect via the website
|
|
|
|
|
|
Armandt__ wrote: created the control in C# , when working with a normal windows form app, it works fine , displaying the image that it gets from the webcam, but when i convert it into a activex control so that i can use the functionality on a aspx page
You cannot create ActiveX using .NET. But you can do similar by luck. There are lots of steps to follows. I tried to create on and finally dropped that plan. I suggest you to create the ActiveX either using VC++ or VB6.
Refer: MSDN Forum[^]
Happy programming.
|
|
|
|
|
<a href="http://www.codeproject.com/KB/cs/CreateActiveXDotNet.aspx">Create ActiveX in .NET Step by Step</a>[<a href="http://www.codeproject.com/KB/cs/CreateActiveXDotNet.aspx" target="_blank" title="New Window">^</a>]
I used this to create the activex component,
maybe 1 of u guys can help me with displaying an image from the clipboard on the page using javascript, or display it using activex, just for info , this is a intranet site, will only be used by employees, not by public,
|
|
|
|
|
Hi all can anybody clarify me that... can an asp webpage support both C# and javascript? pls clarify me.. i'm new in this....
|
|
|
|
|
Yes. C# is the server side scripting language, and javascript is the client side scripting language.
Any thing you want to perform at server side you need to code in c# or vb.net and for any thing you want to do at the client side like validation, animation, toggling you need to write javascript code for that.
Regards,
Prakash Kalakoti
|
|
|
|
|
Prakash Kalakoti wrote: C# is the server side scripting language
I have a doubt on this. Strictly speaking, I don't think C# is a 'scripting' language. C# is server side language. We can say that it supports scripting. Correct me if i am missing something.
|
|
|
|
|
scripting languages are interpreted language but C# is not interpreted language so not a sctipting language. Rather C# is compiled language. But I guess to a newbie, while explaining the difference between javascript and code behind( server side ) specially in this context I dont think anything wrong.
Let us see what others say.
Thanks,
Arindam D Tewary
|
|
|
|
|
Arindam Tewary wrote: . But I guess to a newbie, while explaining the difference between javascript and code behind( server side ) specially in this context I dont think anything wrong
I agree! thats why i just wrote..."strictly speaking"... as for explaining the difference to newbie, explaination sounds good!
|
|
|
|
|
|
Hi All,
I have a treeview on my master page. What i want to do is to populate a small menu like structure displaying some items on the mouse over of each tree node. Objective is the menu's items may change based on the tree node on which i am doing the mouse over.
First of all I can not find an event for which the mouse over will be fired and again on the mouse over event i want to popup a javascript menu..
So, If anybody could help, i would be grateful...
Regards,
Snigdharani Behera
|
|
|
|
|
sargamlucy wrote: irst of all I can not find an event for which the mouse over will be fired
What do you mean by this? MouseOver itself is an event!
You need to do the following:
While constructing the tree node of the tree, add a javascript mouseover event to them.
In the mouse over event attach a javascript method that shows different items based on the node. if you need, you can find javascript menus freely available on net.
|
|
|
|
|
Thanks Sandeep,
The problem is I am using asp.net treeview and i want the menu to be populated on each node node and attributes can only be added to the treeview, and not to the tree node.
If i add OnMouseOver to treeview, then it is coming for the whole treeview.
But i want to get that event for some nodes.
|
|
|
|
|
Hi,
I am using gridview in that i used button as Item Template field. Now I am using gridviews rowcommand event for some database calculations.
I want confirmation box where I want to pass one database value to show in the message of confirmation box.
now i want to show my value in the confirmation boxs message.
How can I do this?
Thanks
sjs
|
|
|
|
|
you must be attaching a client side function to on every button to show the confirmation box.
So pass one more parameter, which you want to show on confirmation box and update the text accordingly and show the message.
Let me know if face problem
|
|
|
|
|
Yes, you are so right. I am 'old-school' and use mostly server-side confirmations.
|
|
|
|
|
We should avoid server side postback as much as we can for better performance
|
|
|
|
|
In order of preference:
1 - Include that column as a DataKey in the DataKeyNames property of the GridView.
2 - Use the column as a CommandArgument property of the Button.
3 - Use a HiddenField.
|
|
|
|