473,378 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

ASP.NET and Javascript

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
Nov 17 '05 #1
1 1194
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.

"Harry" <hx*@freee.fr> wrote in message
news:0f****************************@phx.gbl...
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

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.