|
Hi! There is two buttons in my aspx page. On clicking button1, i opens a popup window before posting the form to the server. now after post back, i want to close this popup window using button2. problem is that when i opens popup window & posted form, the reference of popup window lost. can any one have idea to preserve this reference of popup window in the page. or any other methos to do this.
samir
|
|
|
|
|
Hi all,
How to upload a folder in asp.net.
|
|
|
|
|
you need to zip that folder
Dotnet
|
|
|
|
|
Upload ¿Create? DirectoryInfo di = Directory.CreateDirectory(Url)
keep Learning and you never will be out of date...
|
|
|
|
|
You can't upload an entire directory but you can speed up the process
of uploading by allowing users to upload zip files and unzipping them
once they reach the server, that was you could upload lots of files
and directories in 1 click.
Take a look at this free zip component:
http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx
There's an example in the download that will show you how to unzip a file
|
|
|
|
|
I've seen this 100 times and now cannot find it. If I have a page loaded with 50 items how can I direct a user to the page and put the item they want to see at the top of the visible window?
Like some sites do with a table of contents at the top...
|
|
|
|
|
|
Is it possible to use Console.WriteLine in an ASP.NET page? If so where does it output?
I know you can do this with web applications with Java Servlets and JSP using System.out.println(), it just outputs to the IDE. Just wondering if this was possible with ASP.NET for debugging purposes. I'm using Visual Studio 2005 if that helps. Cheers!
Sunday Ironfoot
|
|
|
|
|
It does not make sense if you use the Console.WriteLine method to send the message to the standard output stream in an ASP.NET application, for debugging purposes you can use the utility methods of the Debug[^] class, and you can see the messages in the output pane in IDE when you debug your application. For more details, see ASP.NET Troubleshooting and Debugging[^]
|
|
|
|
|
I have an ASP.NET application where I do not want the users to be able to browse some folders, but I would like them to be given access to files in the same folders if provided with a link. Is that even possible?
|
|
|
|
|
Yes, that's possbile. Just disable browsing in the properties for the folder in the IIS manager.
Browsing is usually turned off by default.
---
b { font-weight: normal; }
|
|
|
|
|
Thank you,
I have to create an xml out of the text file.. The text file is
Table Id: Products
ColumnName Type Length
------------------------------------------------------------
ProdNo varchar 8
ProdName varchar 10
ProductQuantity nvarchar 10
Table Id: ProductOrder
ColumnName Type Length
------------------------------------------------------------
ProductOrder varchar 8
Prodstatus varchar 10
I have to create xml file from the above tables...... how do I do that.
Help
Sanjeev
|
|
|
|
|
What you might need to do is to look into the classes defined in the System.IO and System.Xml namespaces in MSDN to see how to read a text file and produce an xml document with lots of examples in there, also you may also need to check out some utility methods for string processing (regular expression). In some cases, you can use the ADO.NET to query data from a text file.
|
|
|
|
|
|
|
I have a user control that takes user input and when you click the 'calculate' button; it does some calculation with JavaScript and save the value to a hidden input box.
I want to call the 'calculate' button's logic from my WebForm so that it can do its calculation using JavaScript and save the value to the hidden input textbox; which i can reach using myUserControl.FindControl method.
How can I do that?
Alternatively I would like to know how I can access a UserControl method (that returns a string value) from WebForm? Thanks for your help.
|
|
|
|
|
Perhaps, I misunderstand your requirement, but basically if you want to invoke the user control's properties or methods, you first need to get reference to the control, then simply call its members.
|
|
|
|
|
how to show html dropdownlist selected option in a asp.net server label control in java script. please help me its urgent.
Pradeep Reddy
|
|
|
|
|
Are you the same person or two? No need to ask the same question in two threads.
|
|
|
|
|
how to show html dropdownlist selected option in a asp.net server label control in java script. please help me its urgent
|
|
|
|
|
You can look into the Select[^] element which represents the dropdownlist at the client side, and use javascript to access the value and assign to the label, there are surely lots of examples out there, try to have a good search.
|
|
|
|
|
I hope someone can help me out with this one. I am working on a web application that plays mp3s. The mp3 player I'm using is PseudoMP3, the free .net mp3 player server control by A Boisen. My problem is that i'm trying to secure the mp3 files by saving them in a folder outside of my root, but I can't access the files from my application. My site is hosted by an ISP. My syntax for getting the files is:
PseudoMP3Pick.Src = @"d:\websites\sampleDomain\mp3s\Superman.mp3";
The root directory is "d:\websites\sampleDomain\http\"
This is how I choose the mp3 file to be played. When the page loads, the player says "Buffering..." and never stops. When I play mp3 files within the root, the player would say "Buffering..." for a few seconds and then starts playing the song.
I'm using C#. Thanks for the help!
|
|
|
|
|
You cant do that, when you save your files (Anyone) outside the root site, you must to use at absolute path to get it, In development time you know the exactly drive where you arre saving the files (thats the reason why you application works locally), but your ISP have a diferent System Files (even the D: label doesnt exist or could be the CD Drive), So you must to save your files inside the root, and using relative path to play them)try to secure your application hiding the user address bar.
keep Learning and you never will be out of date...
|
|
|
|
|
Thanks for your reply, Britney.
That path is actually the ISP's file system. So I know that the directory d:\websites\sampleDomain\mp3s\ exists on the server. I tested it by having my application read a .txt file saved in that same folder. And it works. I just can't seem to access the mp3 file. I don't know if I have to convert it to another data type in order to read it.
Thanks for the help!
|
|
|
|
|
Anybody have any idea when the first implementors of the spec are supposed to have a working version? I did a little research, and didn't see anythin obvious. I look forward to playing with it, though:
<script language="javascript 2.0">
class C
{
var x: Integer;
var name: String;
function Test(y: Integer)
{
return x + y;
}
}
var o: C = new C();
var x : Integer = o.Test(6);
</script>
Kyosa Jamie Nordmeyer - Taekwondo Yi (2nd) Dan
Portland, Oregon, USA
|
|
|
|