|
I don't understand u'r question...but still why don't u send a mail immediately after the user has uploaded the file and then display the page to the user so now if user tries to close the browser the mail has already been sent...
Koushik
|
|
|
|
|
I have to perform a time consuming operation on the file, which may take from mins to hour depending on the file.Once the operation on file is complete,the application present in dll prepares a report and sends the report as a email attachment.So can't expect the user to keep his browser opened for scuh long period.
Hopefully I am more clear now
Thanks for early response
Zeeshan
http://zeeshan.cyn.in
|
|
|
|
|
Don't know might be helpfull check the asynchronous processing in asp.net using threads i think in Code Project there are few articles
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Thanks for your response.
I ruled out the possibility of using threads because,I think if I spawn a new thread from the web application( perform the time consuming task on this new thread),even this new and seprate thread will be killed when the web application terminates(or browser is closed).I don't know how correct I am on this theory about threads
Thanks
Zeeshan
http://zeeshan.cyn.in
|
|
|
|
|
No i don't thing so just you need to store the information (part of request)
While closing the browser server don't know broser is closed or open .
i think need to have one process that will starts as the file upload is comlpited and provide that stored inforamtion to it
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
playing with bugs ) wrote: No i don't thing so just you need to store the information (part of request)
I am extremely sorry but I didn't understand what information I need to store and how can that be achieved.
Thanks and Regards
Zeeshan
http://zeeshan.cyn.in
|
|
|
|
|
The information that you required for implimenting your functionality
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Zeeshan Reyaz wrote: even this new and seprate thread will be killed when the web application terminates(or browser is closed).
It will be killed when your page finished loading. Server don't know whether browser closed or not. Look into ASP.NET page life-cycle to get an idea.
Other alternative would be combining webservices and windows application. Write a windows application that gives request to a webservice which does this long process. Install windows application on server, and configure it to give requests in particular intervals.
When your file gets uploaded, change a database flag. Windows application should check this flag and come to know whether it has to start the long process.
Hope this helps
|
|
|
|
|
Hi,
I need to create a treeview out of the folder and files from a specific FTP location. Any pointers on this would be of great help.
Thanks,
Wesley
|
|
|
|
|
Hi,
I have a scenario where i have to create a user. I have a create user button on my web page clicking it , the back end C# code would perform some validation and invoke a web service which would proceed to create the user (save user info into the DB). If the user already exists, the web service would return false to the server. Now the server should make the web page show a dialog pop up saying "Recreate User?", Clicking OK will continue to re create the user(send the response to the waiting server), Cancel would abort operation. Finally the user should be notified from the server that User Creation Successful or Failed.
Now, my question is how to make the server display this popup on the client based on the validation done by the back end code? I've read posts on registering javascript code with a control click but i want to be able to reach the server, perform some validation, get a confirmation from the user after validation(the server waits for user confirmation) and send the user's confirmation to the server based on which the logic would proceed.
Any suggestions would be of great help
thanks!
- kp
|
|
|
|
|
Well, Assume you clicked on "Create user button", and WebService returned false . Check this message and if it is false , redirect the page to a confirmation page where confirmation message should show. Put two buttons here, called "Recreate" and "Cancel". Write the appropriate code inside this.
|
|
|
|
|
Just think hoe to make post back when user says yes
Look if your service return false
register javacript that will popup confirmation .
Now you have to work here find a way when user clicks yes What you have to do ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
playing with bugs ) wrote: register javacript that will popup confirmation .
I think Javascript popup won't help much, because if user clicks ok, again he needs to send instruction to webservice to recreate the account. So javascript confirmation won't fire any events to get which button was pressed by user. If user presses ok button, simply page will be posed again. What do you say ?
|
|
|
|
|
That was my concern really that's why i said him he needs to work in that area only if user clicks yes then he need to call specific code that he has to perform action after user selects yes any how will try it whenever will get time.
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
sorry guys, i was traveling so was outta the loop. Sandeep, ur approach works right for me. Based on what the web service returns, i will register the javascript. All the javascript does is pop up a confirmation dialog box, call doPostBack function to server to recreate user if the user clicks “OK”.
Now i assume that we can have a invisible control like a link button without text or a hidden control who's click event hanlder in the code behind has the functionality to recreate the user. So the javascript should cause a postback to that control's event handler.
any better thots?
- kp
|
|
|
|
|
Hi to all,
I am new to ASP.NET RSS feeds, I don’t know how to implement in a webpage. How to install the ASP.NET RSS Toolkit. Please help me.
jai prakash
|
|
|
|
|
|
Be cool
not seen yesterday on CP?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
playing with bugs ) wrote: not seen yesterday on CP?
Thanks, I Joined in new company. So was busy with induction programs.
|
|
|
|
|
Gr8 !! and best luck
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
hi,
i searched in google but i cont get a clear idea about that,please help me.
jai prakash
|
|
|
|
|
Click on the link and read Scott's blog. It explains in detail. RSS is basically a XML file, which follows certain standards. Instead of using inbuilt controls , you can use XML manipulation classes provided with .NET to manage with RSS.
|
|
|
|
|
hey !
RSS feeds are really cool ... really they are XML files
this is kind of facility using that you can get data from other websites if they provide as a xml file ...
example : if u wanna buy one product what you do ? just search all the website ... really u dont wanna do that ....
if one website provides all the details then u would be well benifited...
RSS feeds helps to share the data through xml format among websites.
Example URL that gives a RSS feeds(xml file) : http:\\msdn.microsoft.com\rss.xml
in this website microsoft provides a xml file that describes microsoft's new announcements....
|
|
|
|
|
hi,
i hv tab menu with dropdown
menu
----
a id="Home0" href="~/Default.aspx" runat="server" title="Home">Homea id="Home1" href="~/About Us/Default.aspx" runat="server" title="About Us" rel="dropdown_about_us">About Usa id="Home2" href="~/Services/Default.aspx" runat="server" title="Services" rel="dropmenu_services">Servicesa id="Home3" href="~/Careers/Default.aspx" runat="server" title="Careers" rel="dropmenu_careers">Careers
a id="Home4" href="~/Contact.aspx" runat="server" title="Contacts">Contacts
dropdown
-------
div id="dropdown_about_us" class="dropmenudiv_c"
a id="Home5" href="~/About Us/Page1.aspx" runat="server" title="About Us - Page1">Page1
a id="Home6" href="~/About Us/Page2.aspx" runat="server" title="About Us - Page2">Page2
a id="Home7" href="~/About Us/Page3.aspx" runat="server" title="About Us - Page3">Page3
div>
this is working while loading along with a javascript.
when i goto deafult page,it works with dropdown,
wen moved to ~/About Us/default.aspx not showing dropdown
wat could be pbm.
Thanks in advance,
Priya.
|
|
|
|
|
Is it user control or any other ?
Where have you written this code ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|