|
In my ASPX page I am uploading files to server. I use HTML file upload control by making it runat=server . This page is for uploading multiple files, means more that 20 file upload controls will be present in the form. When uploading one by one files, it is taking lot of time. So I thought of using threads.
My file upload controls are in Gridview. I started a loop and find upload controls. For each controls I started a thread and uploading will be done on that thread. My doubt is, if I redirect to some other page before upload finishes, will that threads still executing on server ? And will it finish the upload job ?
|
|
|
|
|
Yu can multithread this all you want. It won't make any difference in the time it takes to upload a file. The pipe carrying the data can't send any more than a single stream of bytes for any one source at a time, so it'll take just as long to do the upload. It's just that the pipe will carry a chunck of data from this file, then a chunk of data from the next, and another chuck from the next file, and so on and so on until all the chunks of all files it sent. The network pipe cannot carry 2 chunks of two files at the same time.
|
|
|
|
|
Hello!
Yesterday I installed IE7. after this I cant run any web-project in Visual Studio 2003 in debug mode (by F5) but in normal mode (by ctrl+5) all is ok.
I got a messge - "Verify that you are memebrof the Debugger Users group on the server".
I checked it and include ASPNET (ASP.NET Machine Account), IUSR_AB4 (Guest account of Iternet), IWAM_AB4 (account for IIS run),SQLDebugger and urban (my account in the machine) into that group but I still got an error.
I checked a configuratio of IE and add http://localhost into trusted connetcions. same error
I restarted PC - same error
btw - web projects from vs 2005 are working correct either by f5 and by ctrl+f5
what happened and what should I do?
thanx!!
--
"Success is simple. Do what's right, the right way, at the right time."
best regards,
tradakad
|
|
|
|
|
Try this
open Internet Information Server (Start Menu>Run>inetmgr)
select your Web application ,take properties, click on configuration button, then Debugging tab and enable it,
hope it may solve ur problem.
|
|
|
|
|
No. it did not solve my problem
I dont understnad - why it was happened after IE7 installing?
--
"Success is simple. Do what's right, the right way, at the right time."
best regards,
tradakad
|
|
|
|
|
solved.. thanx to all.. ad to me and to google..
I add localhost to trusted zone set security settings for the trusted zone to "Automatic logon with current username and password"
http://msdn2.microsoft.com/en-us/library/Aa290100(VS.71).aspx
-- modified at 8:03 Saturday 21st July, 2007
--
"Success is simple. Do what's right, the right way, at the right time."
best regards,
tradakad
|
|
|
|
|
Hi, I have a question. If I create a webservice that happens to have two threads for seperate tasks - when I use lock, I understand that the 1 thread will not run until the other finishes its task that is locked. My question then, does this lock per request, or for the entire application? I am just worried what would happen if 3 requests came in at the same time.
Thanks in advance!
|
|
|
|
|
When you lock it is for the entire application - but his initial assumption was incorrect, so it won't have as great an impact as he originally though.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
toticow wrote: when I use lock, I understand that the 1 thread will not run until the other finishes its task that is locked
Incorrect. It means that the second thread cannot enter any section that uses the same object for the lock. Both threads can continue running simultaneously even if one is inside a locked section.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
Thank you for the answer.
|
|
|
|
|
Hi
I have a login session which runs out after 30 mins
If the user wants to use it again they will get redirected to a login screen
But i want to be able to send them back to the screen they where on previously
How would i get it to store the page address and get it to redirect back here?
Would it be another session which would send the page address back to the user login?
cheers boyindie
|
|
|
|
|
One Way is that you send the url as query string, same as the dot net does.
for ex:
in page Home.aspx, if session expired, redirect it to loginpage as
Response.Redirect("login.aspx?ReturnUrl=Home.aspx");
and after logging in successfull send the user to Home page as
Response.Redirect(Request.params["ReturnUrl"]);
you can set addiotional checks in login page like.
string ReturnUrl = "Default.aspx" ; // the default page if user comes directly to login page.
if(Request.params["ReturnUrl"] != null)
ReturnUrl = Reuest.Params["Returnurl"];
Response.Redirect(ReturnUrl);
you can also use Request.UrlReferrer method.
|
|
|
|
|
|
is there any query that list all the tables in the database?
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
SELECT *
FROM dbo.sysobjects
WHERE (xtype = 'u')
|
|
|
|
|
Navaneeth ,
it is giving error.
error is - cannot find the "c:\document and settings\abc\my documents\dbo.mdb"
My database is MS-Access
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
|
SELECT *
FROM information_schema.Tables
it worked for me so should work for u
|
|
|
|
|
I am using the FileUpload control for the client to upload his file and i want to be able to open that XLS file read it and dump the data in the SQL database. How do i do this?
|
|
|
|
|
when i publish my site ,it says Circular reference not allowed,although i fix this problem bt writing 'allowbatch=true' in web.config, but this problem is same when i publish my site, i have tried alot to find where actually the problem is, i.e where actually the controls are circled, is there any programmatic way to get rid of this problem so that i can publish my web. as i have many pages and controls. so having lot of problem finding the reference.
|
|
|
|
|
There's no magical workround for circular references. You have to track down the reference and deal with it.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi all
Can any tell me how to remove the border of a text box and combo box. My application is in asp.net and i am writing the code in VB.
For example the look should be like this NAME Prakash consider Prakash is in text box but it should look like what i wrote.
I tried like this but didn't work
TxtFname.BorderColor = Color.Transparent
TxtFname.BorderStyle = BorderStyle.None
TxtFname.ReadOnly = True
Regards
Prakash Mishra(Banglore,India)
|
|
|
|
|
It s working for me..Where did you put the code in your application code behind?
Regards,
Sylvester G
If we don't succeed, we run the risk of failure
|
|
|
|
|
actually the text box property should change when i click on a button so i cant write in page load. so wrote the code on the click event of that button. But problem is i have a background color in the table and text box is showing a white square background.
And what about combo box i think its not possible this way??
Regards
Prakash Mishra(Banglore,India)
|
|
|
|
|
Hello to Every one,
i hav completed my project. i want that any user can access it over internet how it is possible....
Suggest me.
Thankiny You.
|
|
|
|