|
You can't invoke windows forms code like that from an asp.net page - this code will attempt to run on the server. You need to use the file upload html control.
|
|
|
|
|
OR
If you are using Silverlight, you can probably use "Safe File Open Dialog".
Example[^]
|
|
|
|
|
Is there a FTP command that retrives the size of a folder?
I'm trying to get the full size of a folder on a server,
and the only way I can think of is using a FTP-client.
Thanks
Thomas
|
|
|
|
|
Hi
Does anyone know any applications that I can use to create flash websites.
I know Macromedia Flash exists but are there any other software applications I can use?
cheers
jamie
|
|
|
|
|
|
If you like Microsoft technology, I recommend you to give a try "Silverlight".. that's awesome!
|
|
|
|
|
hi,
if the user enters space in the textbox and submits it by clicking error. How can i validate it .
only space should not be allowed. Please anyone help me out in this. \
|
|
|
|
|
You can trim the whitespace and check for the value. If it is blank, alert message. Javascript don't have an inbuilt trim method. Check this[^]
|
|
|
|
|
You can use the ASP.NET validator controls, here is an example using the RequiredFieldValidator.
It will not accept a space as valid input.
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox1" Display="Dynamic"
ErrorMessage="Enter a valid value!"></asp:RequiredFieldValidator>
<asp:Button ID="Button1" runat="server" Text="Button" />
|
|
|
|
|
Hi,
I am developing an application, which needs a pop up window to be opened, when a button is clicked, i have tried out Response.redirect, but then it navigates from one page to another, i want both the windows to be opened,
can some body help me in this regard
|
|
|
|
|
You can use ClientScriptManager.RegisterStartUpScript("name","your popup JS") to open a popup window. Or use simple Response.Write()
|
|
|
|
|
Pls can you be more clear with the post, i have never used the function said above, can you explain the parameters for the function..
and another important issue is that, i am creating the button dynamically and for that button click, i should be able to open a popup window
|
|
|
|
|
It is used to register client side scripts to the page. The script you specified inside that will be added to the page. See the following sample.
ClientScriptManager.RegisterStartUpScript("SampleAlert","<script language='javascript'>alert('hi') </script>"); See the MSDN[^] documentation
|
|
|
|
|
Hello Friends,
I want to copy the contents(subdirectories and files) from source folder into destination folder.
Here is my code ...........
DirectoryInfo dir=new DirectoryInfo(MapPath(".")+"\\"+"Images");
dir.MoveTo(MapPath(".")+"\\"+"Hello");
and also I've set <identity impersonate="true" /> in web.config
The error i'm getting is given below...
Access to the path "c:\inetpub\wwwroot\Rough\Images" is denied.
|
|
|
|
|
The Knowledge wrote: and also I've set <identity impersonate="true"> in web.config
Do impersonation before the move. Undo it after the move. Search google for doing this, you will find many links.
|
|
|
|
|
Hi everyone.
i am new in reporting.
How do i pass parameters in report.rdlc dynamically?
I want to pass parameter from Access database.
I am using VB.
Thanks
Sanjay Kunjam
------------------------------------------------------------------
"Computers are useless. They can only give answers" - Pablo Picasso
------------------------------------------------------------------
|
|
|
|
|
How do i make a query to Global Address List?
|
|
|
|
|
You can use the System.DirectoryServices namespace, here is an example[^].
|
|
|
|
|
Dear Friend..
I need to create a virtual directory for my application.If i do it,its asking for the alias name.After giving the alias name,its saying that the name already exists.But that alias name doesn't exist in my IIS before.What could be the problem..? I am getting the following message when i try to give the alias name.
"The alias LM/W3SVC/1/Root/iCashCard already exists.Please choose a different alias."
Why does this occur.? Someone help in this regard as early as possible..
Regards,
Balaguru
|
|
|
|
|
Balagurunathan S wrote: "The alias LM/W3SVC/1/Root/iCashCard already exists.Please choose a different alias."
This[^] would help you
|
|
|
|
|
Hi,
I have a Main.aspx. I put a Grid control on it. Main page having links of other page. I am sending some value from other page to Main page and adding into Grid. Again I am navigating to other page and sending some more data to Main page to add in Grid.When it load Main page second time, grid becomes empty.
You can visualize my Requirment as: I am selecting products from different page and putting it over Main page.
Hope my techie friends understood my requirement.
Thanks a lot in advance !
|
|
|
|
|
AFAIK, you are not keeping the grid values anywhere. You can keep the data source of grid view in session and update it when new links are added. Load the data source from session and bind gridview.
|
|
|
|
|
and also check the postback property too......
manoj Kumar Jha
"Learn to smile at every situation. See it as an opportunity to prove your strength and ability."
|
|
|
|
|
Hi All,
I want to add a table to my form and also I need to enter data throught text box (s) into tablecells whenever iI press add button using ASP.Net(Vb.net) at dynamically. Every time I need to add 3-cells in everyrow whenever I hit Add button. Please help me how to overcome this situation.
Please guide me.
Thanks in Adv. to everyone.
kolags@hotmail.com
|
|
|
|
|
You can use Table class. Add the Table instance to a content placeholder.
|
|
|
|