|
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... "
|
|
|
|
|
this is written inside inline html,
no user control
Thanks in advance,
Priya.
|
|
|
|
|
pbm (assume that means problem) cud (could) be dat (that ) you hv (have) 'inlined' this in the default.aspx HTML and not in the about us/default.aspx. If wat (what) you want is this menu in all pages, look into Master Pages.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
hello evryone,
I have a doubt regarding PostBackURL.I take two form in the a ASP.NETWebApplication say Form1.aspx and Form2.aspx.When i redirect Form1 to Form2 the values in the Form1.aspx page r not maintaining like when again i come from Form2 to Form1 the values r not there(i mean the page is postback).
Is there any solution to maintain those values without using session,cookies,application and ViewState.Any canbody help me plz it is urgent for me.
ok byeee
Murali
|
|
|
|
|
Values won't be persisted, because you moved from Form1 to Form2.
ballameharmurali wrote: Is there any solution to maintain those values without using session,cookies,application and ViewState.
You can keep the values in Session. When posting the page to other ASPX page, you need to create session in other page (form2.aspx) and assign the values. If your Form1.aspx contains many controls, it's better to create a class and assign all the required values to class, and store the class object in session.
|
|
|
|
|
Whats the problem in using the state management in your application ,
surely you are not going to use database also ...
one thing could be creating xml file on fly and storing the inforamtion in it but o don't think it is good way of implimentation
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... "
|
|
|
|
|
use Server.Transfer() instead of Server.Redirect()
The Server.Transfer method also has a second parameter—"preserveForm". If you set this to True, using a statement such as Server.Transfer("WebForm2.aspx", True), the existing query string and any form variables will still be available to the page you are transferring to.
For example, if your WebForm1.aspx has a TextBox control called TextBox1 and you transferred to WebForm2.aspx with the preserveForm parameter set to True, you'd be able to retrieve the value of the original page TextBox control by referencing Request.Form("TextBox1").
use it .it may helpful to you ...
|
|
|
|
|
window.onbeforeunload=callThisFunction
window.onbeforedeactivate=dd1
function callThisFunction()
{
-------
}
function dd1()
{
-------
}
I am using this javascript function in asp.net under content place holder. I want that this function fired only Back, Forward and Close Browser Button. But this funciton fired on all button.
anybody please help me urgently
deepak_272@yahoo.com
|
|
|
|