ASP.NET and Javascript

H

Harry

I have a couple of questions concerning both asp.net and
javascript, if anyone could take some time to enlighten
me on this I'd appreciate it a lot, and sorry if JScript
is out of topic on this forum - in that case ignore this
post.

- Is there any way in javascript to retrieve the
favorites from the user browser, so that they could be
displayed on an .aspx page ? I know there's an easy way
to add a link to the favorites list, but for obvious
security reasons I guess there's no way to get access to
the list itself.
Could someone confirm/infirm my thought ? <- I could do
this with a .net embedded control, but this requires File
Access security permissions which I will not have, so
javascript seems the only way to do this.

- Second and last question, what is the best way to
display an "uploading ..." message on a page ?
My situation is as follows : the user is uploading from
his local drive to the asp server, which is in turn
uploading this to a web service. I fail to see a way to
display the message during the upload from the client to
the asp server (maybe with JScript ?), and creating a new
page just to display the message during the asp->web
service upload is not only cumbersome, it's also a pain
to do since the client file is not accessible directly
anymore and needs to be saved locally.

Thanks a lot for any answer !
Harry
 
K

Kevin Spencer

Question 1: There is no way to do this with JavaScript. It would be
invasive, to say the least.
Question 2: You could put a hidden div on the page with the "Uploading"
message. Then, attach a JavaScript function to the WebForm's "onsubmit"
event that unhides the div. The page will remain in the browser window until
a Response begins to come back. So, that should do it.

And BTW, JavaScript is an almost-essential part of ASP.Net. So I would
certainly think that questions about JavaScript, in connection with an
ASP.Net app, are certainly appropriate here.
--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Neither a follower nor a lender be.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top