Saturday, March 24, 2012
The dreaded asp.clipboard
manipulate system resources on the desktop
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Bill Belliveau" <anonymous@dotnet.itags.org.discussions.microsoft.com> wrote in message
news:06D644D5-E7C1-47D1-97AC-826157A1BFA2@dotnet.itags.org.microsoft.com...
> Hello all,
> I have the need to copy something to the clipboard via 3rd party type
> library and then pick it up on the .NET side via the clipboard (all
> server-side). To complicate the issue, the application needs to be web
> oriented (ASP.NET).
> I have a console version that work, but I can't seem to get the ASP side
> working. I have included the Forms assembly and I'm able to write to the
> clipboard via the 3rd party, but the clipboard is always unassigned (null)
> in ASP.NET when in fact the clipboard can be pasted into PhotoShop.
> I've searched a lot of articles about this issue. Some suggest that it's
> a permissions issue. To rule out permissions, I have the site
> impersonate. The impersonating identity is myself and since I can past
> into Photoshop, I can only assume my identity has access to the clipboard.
> Any insight is appreciated.
> Thanks,
> Bill
>Alvin,
Thanks for the response.
Maybe I'm missing something else then. Before impersionation I tried settin
g the processModel user to SYSTEM, and had the same problem. I have also ad
ded the ASPNET account to the 'run as part of the operation system' policy w
ith no luck.
When I call, clipboardData.GetDataPresent(DataFormats.Bitmap) the exception
being returned is null object (Object reference not set to an instance of an
object.). The most likely cause is permissions, but as far as I can tell I
've tried giving the adequa
te permissions - or am I missing something?
Thanks again.
Bill
can you impersonate to an authenticated user and see if this works?
Otherwise post your code and i'll work with you on it
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Bill Belliveau" <anonymous@.discussions.microsoft.com> wrote in message
news:C8A65D45-FCD3-4871-A822-79EA22F5E7A7@.microsoft.com...
> Alvin,
> Thanks for the response.
> Maybe I'm missing something else then. Before impersionation I tried
> setting the processModel user to SYSTEM, and had the same problem. I have
> also added the ASPNET account to the 'run as part of the operation system'
> policy with no luck.
> When I call, clipboardData.GetDataPresent(DataFormats.Bitmap) the
> exception being returned is null object (Object reference not set to an
> instance of an object.). The most likely cause is permissions, but as far
> as I can tell I've tried giving the adequate permissions - or am I missing
> something?
> Thanks again.
> Bill
Thursday, March 22, 2012
The graphics?
Hi,
Not sure if this is the right area to post.
Can anyone point me to some resources about the graphics side of web dev?
I mean, I see the programming part and I can see the design part (like in photoshop?), but how would you take something from photoshop and use it in Visual studio and have it all line up?
I have seen it done in tables and with css...but is that all there is? How do you split up the graphics and how do you know how big to make them? I realize this isn't a coding question, but I am having some trouble bridging the gap.
I hope I am being somewhat clear in my question.
Thanks!
As far as actual layout goes CSS seems to be the standard right now. I know that some people prefer tables, and they work fine sometimes, but I've had issues in the past with a table site when things need to be moved around, so I use CSS now whenever possible.
As far as the size of the graphics (I'm assuming you mean file size) you want to make them as small as possible. The smaller your graphics are, the faster your page will load, and the happier your users will be.
If you want a good book to get started with I like this one:http://www.headfirstlabs.com/books/hfhtml/index.php I've recommended it to people in the past and I've never heard anything bad about it from the people I've recommended it to.
I'll check out that book, thanks...
but I did mean the actual size of the graphics (length/width)...
see...I think I am having trouble connecting the two.
I want to create pages using asp.net. And if I create just web forms etc...I have no problem, seems easy.
but I want to create something with more color and definition or maybe a nice big banner with a menu. I don't know how to create those graphics and then use them in ASP.NET. How do I separate them? I have seen slicing (not sure how to do it yet), but then how to I get them all back together in my asp.net page?
Is that all done with css? Is that what you are saying? Just wanted to make sure.
Thanks again!
A similar post in the pasthttp://forums.asp.net/p/1174532/1975337.aspx
Cheers
Vishal Khanna
(pls mark as answer if reply helps)