|
The Cryptography namespace is where you should be looking.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
Hi experts,
I need a linkbutton/button to download the files which my clients have uploaded.
Below is my upload method and it works.
protected void uploadFile()<br />
{<br />
String projectID = (String)Session["projId"];<br />
if (!FileUpload.FileName.Equals(""))<br />
{<br />
System.IO.Directory.CreateDirectory(Server.MapPath("Docs/") + projectID);<br />
<br />
FileUpload.PostedFile.SaveAs(Server.MapPath("Docs/" + projectID + "/" + FileUpload.FileName));<br />
lblFile.Text = FileUpload.FileName + " is uploaded!";<br />
lblFile.Visible = true;<br />
<br />
}<br />
}
However, it's not working for downloading of file (in another asp)
May I know how can I do that?
protected void btnLink_OnClientClick(object sender, EventArgs e)<br />
{<br />
String projectID = (String)Session["projId"];<br />
String file1 = System.IO.Path.GetFileName(Server.MapPath("Docs/" + pid + "/"));<br />
}
The files format that are uploaded are not consistent. Usually it's excel, word or pdf format.
Please help. Thanks!
serene
|
|
|
|
|
You need to set the header and then do a Response.BinaryWrite. You can also specify the filename, which will force a download. There's tons of examples on the web.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Where you are storing the file name ? Get the file name user need to be downloaded and do a Response.Redirect() to the file URL.
|
|
|
|
|
Hi All...
We are developing a site...we have done all the coding part and we have also executed every part of it successfully...after a few days we just checked out our app but now it is throwing an exception like
Type: 'Acme.SubAcme.ConvertMeTypeConverter' cannot be found...
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException:
Source Error:
An unhandled exception was generated during the execution of the current web request.
we coudnt able to get wat's it....
Help us out....
Regards
Nandu
Abhishek
|
|
|
|
|
Hi,
have you seen this ?
Link[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Hi Sun Rays...
Its working out...
Thank you so much....
Regards
Abhishek
Nandu
|
|
|
|
|
Hi Sun Rays...
Cud u tell us what's a converter...Sorry if im sounding very basic coz m very new to AJAX environment...
|
|
|
|
|
Hi,
you can have this link..
Link[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Hi friends,
I am using tree view control in asp.net2.0 which have that controls but if i want to use it in asp.net 1.1 then there is not an option in the controls for the tree view.
now i want to use tree view in asp.net 1.1 and looking for any hint how they will use in asp.net 1.1
i searched on google for the solution but didn't get it..
so if you have alternatives to this then please reply me...
this will very helpful for me....
thanks in advance....
all reply appreciated.....
bye.....
|
|
|
|
|
Hi,
you can check this link
Link1[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
There is no built in tree view controller for ASP.NET 1.1. You can't use that control in ASP.NET 1.1, because it's .NET 2.0 compatible. You can write a custom control for ASP.NET 1.1.
|
|
|
|
|
iam getting the data from a database and iam storing the data in a datatable in one event and i want this data table in another click event with same values.but the problem is the page is posted back the values are not available in the datatable in another event.any method is there to retains the datatable value as it is even the page is post back with out using the sessions or view state
|
|
|
|
|
Hi,
you can use Caching for that.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
plz tell how could be possible
|
|
|
|
|
Hi,
check this link...
it will help you.
Link1[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
sir is there is another way like page scopping or any thing else caching stores the values in the client side
|
|
|
|
|
Hi,
read this.
link1[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
sir is caching is different from view state and session or the same as of these two
|
|
|
|
|
Hi Dear,
you must have to read all links provided.
You will get ideas from that.
Try it out.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Store it in Session or viewstate. Caching is not a good solution for your scenario.
|
|
|
|
|
hi sir how r u...wat u said i did that only but i think session takes lot of space if more users acessing the same page .actual my requirement .iam getting the data from database into the datatable in one click event .and i want this data table values in another click event.but because of page post back the datatable does contain any values.how this problem will solve plz help me in this regard.
|
|
|
|
|
Have you tried viewstates ? It's scope is only in the page. So no need to worry about server resource utilization.
|
|
|
|
|
sir...is there is any other alternate wat i mean with out session and viewstate..can't we achive this problem...k if we use view state or session which one is better one sir.
|
|
|
|