|
Is it possible to select a folder rather than a file with FileUpload control? If yes, how with code sample in VB/C#.
Why I need this is because, I want to read the contents of files in a selected folder a once instead of having to select the files one-after-another.
Thanks for your usual support.
|
|
|
|
|
No, otherwise it would be the FOLDER upload control, not the FILE upload control.
You might be able to simulate a folder upload using JavaScript and Ajax but there are a lot of variables to consider, like maximum number of files, file size and type, what to do if a file can't be uploaded.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I appreciate your prompt response.
But I can't find the FolderUpload control in my toolbox.
Do you have a sample program/article on how to simulate this with JavaScript and Ajax as you said?
Thanks.
|
|
|
|
|
|
|
hi all i have created a website.i want to create setup of this site so that i can
install it on any pc and run it just by clicking its icon on desktop.
Can anybody guide me its urgent.....thanks....
|
|
|
|
|
|
can u plz tell me exact process....n also tell me that how will i run it on other computer as a set up...
|
|
|
|
|
Hi,
I have placed a usercontrol inside a .aspx page.
The usercontrol has a label control called label1.
Question:
In the webform.cs, how do I get the value of the label control in the usercontrol?
Thanks
|
|
|
|
|
You just use the following code
Dim str as String
str=ctype(usercontrolname.findcontrol("lable1"),lable).Text
|
|
|
|
|
Create a property in user control & access its value in .aspx page.
in User control,
public string TextValue
{
get{ return label1.Text; }
}
On .aspx page, you can get the label text as:
string labelText = Userconrol1.TextValue;
|
|
|
|
|
As Arun said,having public property is a better and maintainable approach.
Cheers!!
Brij
|
|
|
|
|
I do not seem to be able to access the usercontrol from the .aspx cs file.
Note that the usercontrol1 is inside a folder called usercontrols.
Any thoughts please?
Thanks
|
|
|
|
|
Did you register the user control on the aspx page?If not First register it on your aspx page.
else just go to design view of your aspx page and drag the usercontrol on your page it automatically register the control.Then you will be able to access the control from your aspx page.
Cheers!!
Brij
|
|
|
|
|
|
Cheers!!
Brij
|
|
|
|
|
I want to export textbox value into pdf file in asp.net
|
|
|
|
|
Dear Punit,
Try this may this help you.......
using CrystalDecisions.CrystalReports.Engine;
using System.IO;
public partial class rpt : System.Web.UI.Page
{
private ReportDocument BidEstimates;
protected void Page_Load(object sender, EventArgs e)
{
string RptPath = Server.MapPath("file.aspx");
BidEstimates = new ReportDocument();
BidEstimates.Load(RptPath);
//ExportFormatType.PortableDocFormat is Use For PDF documents......
BidEstimates.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, false, "ExportedReport");
}
}
!- F - R - I - E - N - D - S -!
|
|
|
|
|
|
Hi All,
In my application user filter,serch items in the gridview but when he/she click the button then all item serched items he losed.
I want to disable back button.for this I m using following code
<script type="text/javascript">
function noBack(){window.history.forward()}
noBack();
window.onload=noBack;
window.onpageshow=function(evt){if(evt.persisted)noBack()}
window.onunload=function(){void(0)}
</script>
but it breaks for go to previous page but in this situation user is in same page.
thnks to all.........
|
|
|
|
|
As I think, the best way to disable the back button is "don't create the history of the page". Because may be in some browser's, disable code will not work.
Here is the code to remove the history of a particular page:-
<%
Response.Expires = 0
Response.ExpiresAbsolute = DateTime.Now.AddDays(-1)
Response.AddHeader("cache-control", "private")
Response.CacheControl = "no-cache"
%>
Hope this will help you......
Regards...
Vijay Jain
"One thing you can't recycle is wasted time."
|
|
|
|
|
What part/tag of the .aspx page or (event handler) code behind does this code fits?
|
|
|
|
|
you can put this code on above the HTML tag of your .aspx page.
Regards...
Vijay Jain
"One thing you can't recycle is wasted time."
|
|
|
|
|
|
Your welcome
Regards...
Vijay Jain
"One thing you can't recycle is wasted time."
|
|
|
|