|
Thanks Navaneeth,
I am thinking of your solution seriously and finding alternative solutions. My current idea is to let end user submit a zip file which contains all individual files. But my concern is whether subsmit such big zip file will be slow and impact server performance? Any best practices or performance tuning technologies for uploading file to server?
regards,
George
|
|
|
|
|
Tell them to zip the materials and send a zip. Seriously, ASP.NET generates HTML, as Navaneeth said, without a java or flash control, there's no way you can do any different.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thanks Christian,
Will it be slow if they send the zip file altogether to server?
regards,
George
|
|
|
|
|
George_George wrote: Will it be slow if they send the zip file altogether to server?
CG was joking, I believe. You can do what he said. But that will be slower than selecting each files and uploading. First of all you have to configure ASP.NET settings to allow large files. When the zip file successfully uploaded, you need to unzip it and place files in right place in the server.
At the end of the day you will notice that uploading files one by one is the most straightforward solution.
|
|
|
|
|
Thanks Navaneeth,
1.
I want to confirm with you whether do you think upload one big zip file is better or not, why? Sorry, I am confused.
2.
"First of all you have to configure ASP.NET settings to allow large files." -- do you have any documents about this?
regards,
George
|
|
|
|
|
George_George wrote: I want to confirm with you whether do you think upload one big zip file is better or not
That depends. As christian said, if your users will be uploading only text files or doc files, then zipping the file and uploading at one shot will be better. But if users will be uploading videos or images, no further compression is possible even if they zip it. So you don't find any difference.
George_George wrote: "First of all you have to configure ASP.NET settings to allow large files." -- do you have any documents about this?
It is a configuration entry in web.config file. You need to increase maximum request length allowed. See this[^]
|
|
|
|
|
Thanks Navaneeth!
I am thinking seriously about whether writing a client side program to upload file is better. But I do not know whether it is better because of my limited experience. Each time file upload size is big, may be several hundred M bytes, so I suspect the capability of uploading from browser.
What is your idea?
regards,
George
|
|
|
|
|
It depends. If it's a bunch of small files, then it will be fine. If they are a fair size, then you'll hit the wall of your page timing out. Either way, it will be faster if the files are text based ( that is, if they will zip to somethig a lot smaller ) and the same time if they are a png or something ( so, the file size is the same ). An advantage of a user sending a zip is, you'll know for sure you got it all, if you didn't, the zip will be invalid.
Requiring your users to make a zip is probably not ideal, but it's not a bad idea to support them.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thanks Christian,
Compared with uploading one big zip file, do you have any better ideas for browser based solution? (I can not let client install any non-browser software, like FTP client to upload.)
regards,
George
|
|
|
|
|
hello eveyone..
how can i call or fire itemCommand using onclick in datagrid. im not using link button is that possible??
thanks...
jyn
|
|
|
|
|
You are spmming this site. 2 day back you have asked the same question. Now Today just one post back, Deleted that and asking for same questions.
Don't SPAM.
cheers,
Abhijit
|
|
|
|
|
hello...
sorry but im not asking the same question and im not a spammer.
jyn
|
|
|
|
|
Hi,
In my application I have a file which is stored in the server C:\Files Folder and the file name and type is any file.the whole path for the file is stored on the database.I show file name in gridview templete field as anchor.Now when i click on a link on one of the column of a gridview then the file from that location should open.
but it shows file not found.
i am writing this code to open a file
<asp:TemplateField HeaderText="File Name">
<ItemTemplate>
<a href='<%#DataBinder.Eval(Container.DataItem,"DocPath") %>' target="_blank"><%#DataBinder.Eval(Container.DataItem,"DocName") %></a>
</ItemTemplate>
</asp:TemplateField>
can any one help me.
With Regards
ajeet
|
|
|
|
|
Are you able to access the folder from your sytem with the path path that you saved in DB?
Cheers!!
Brij
|
|
|
|
|
Thanks for replying me.
yes,
the file is save by the system in c: also a record in database.
when i save file in newtowk drive.its working fine.
thanks
ajeet
|
|
|
|
|
This is retarded. The file is stored on your server, therefore, once you deploy this app, the client will not have the web app running on their local machine, and therefore any link you create, will not work, obviously.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thanks For Replying me.
Can u tell me any alternative way.
with regards
ajeet
|
|
|
|
|
you can put the files inside your web app and ask people to download them and run them. That's your only real option.
And, again, you really should read up on ASP.NET, because you're missing some absolute basics to think otherwise.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
Hi,
I have binded gridview with data bind and then added template columns[checkbox,dropdown] to that gridview.
Now i am getting a grid view like.
in first column-checkbox
in second column-dropdown,thirdcolumn-bindeddata
but i have to display the binded data in second column and in third column-dropdown.
how can i move that column.
Thank you
|
|
|
|
|
You can do one thing,
Define the bound field for every column that you want to in Gridview with template columns.
Cheers!!
Brij
|
|
|
|
|
Thank you for reply.
can we define bound field to column which i am filling programatically(gridview.datasource='sourcename')
I have tried like this:
<asp:gridview id="GridView3" runat="server" xmlns:asp="#unknown">
<columns> <asp:boundfield datafield="column_name">
<asp:templatefield>
<itemtemplate>
<asp:textbox id="txt" runat="server">
In CS file:
GridView3.DataSource = ds_ColumnNames;
GridView3.DataBind();
Result:
Geeting same columns twice and one textbox filed
same data is filling in two columns
Thank you
|
|
|
|
|
Put AutoGenerateColumns="false" in gridview tag then you'll get only those columns that you'll define as boundfield .and use bound field for every column you need as
<asp:boundfield datafield="To" headertext="To" xmlns:asp="#unknown">
<itemstyle verticalalign="Top" width="18%">
<headerstyle font-underline="true">
Cheers!!
Brij
|
|
|
|
|
sram15 wrote: but i have to display the binded data in second column and in third column-dropdown.
Goto the source and put third column as second.
|
|
|
|
|