|
Your Button1 control is a server control and is looking for the checkall on the server side where it does not exist.
You need to call checkall on the client side using an input of type button, as in the previous example, like this:
<input type="button" name="Check_All" value="Check All"
onClick="CheckAll(document.myform.check_list)">
|
|
|
|
|
i have a code which allows the user just selects file using file upload then it is first saved and then converted to flv format.
But i want to show an animated picture when file upload begins and when all
the conversion is done, the animated picture should hide;
Thanks and regards,
|
|
|
|
|
I think you will have to use Ajax for that because if you are doing this in normal way, you will get the postback so that it doesn't matter whether the animation is showing or not.. the animation will be gone anyways.
OR
You can use IFRAME for that.. You can overlay the gif over the IFRAME while uploading and converting.
|
|
|
|
|
|
hi all
i am using a page in my application but there are two conditions
1- in some case i have to show the tool bar and address bar
2- in some case i have to hide both
so how can i do this in run time
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|
|
You can only hide the toobar and addressbar for popup windows. You can't hide/show the toolbar or address bar of current IE.
|
|
|
|
|
Dear all,
i have a PDF file having some Hyperlinks in it.
i want to read that hyperlink address. how can i do that.
any hint??? code???
thankx in advnace
-koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Hi,
I have developed web application,in which I used to print Microsoft project plan file.I am succed to do this using FilePrint() API of MSProject.But It prints all columns present in project plan instead of that I want to print only first 3 columns.
Any suggestions are always welcome.
Thanks,
Nagraj.
|
|
|
|
|
Can u guide me in c# code to perform Email tracking( Whether a mail sent, is viewed by the recipient or no)
modified on Monday, January 07, 2008 6:03:02 AM
|
|
|
|
|
What do you mean by tracking? creating a log in a database of messages sent, setting read receipt etc
|
|
|
|
|
angel_oct11 wrote: Whether a mail sent, is viewed by the recipient or no
Proper way is using read receipts. But it will work only on POP3 clients like outlook etc. There are many other ways like attaching a 1px image and checking the requests. But none of them are a good solution, and now a day's most of the email systems will block the images and scripts contained in the mail body.
|
|
|
|
|
You can log any System.Net.Mail.SmtpException exceptions which will tell you if a mail was not sent successfull to the mail server and you can add a read receipt to a MailMessage like so:
_mailMessage.Headers.Add("Disposition-Notification-To", fromEmailAddress);
|
|
|
|
|
HI all
In my asp.net page I'm attempting to use the OpenfileDialog object to
offer a common dialog box for the user to select a particular file on their
hard drive that may subsequently be uploaded
to our website.
The reason I'm doing it this way is that I've read that by using the common
dialog box, the security issues are based on the logged in user.
Of course, I added a reference to System.Windows.Forms and added a using
clause.
Here's the problem, when I use the following code
OpenFileDialog ofd = new OpenFileDialog();
ofd.Title = "Choose File";
ofd.InitialDirectory = [at] "c:\" ;
ofd.Filter = "All files (*.*)|*.*|All files (*.*)|*.*" ;
ofd.FilterIndex = 1 ;
ofd.RestoreDirectory = true ;
ofd.ShowDialog();
ShowDialog() throws the following exception:
[InvalidOperationException: It is invalid to show a modal dialog or form
when the application is not running in
UserInteractive mode. Specify the ServiceNotification or DefaultDesktopOnly
style to display a notification
from a service application.]
System.Windows.Forms.CommonDialog.ShowDialog()
TestPortal1.AttachFileForm.btnBrowse_Click(Object sender, EventArgs e) in
c:\inetpub\wwwroot\testportal1\attachfileform.aspx.cs:73
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEven tHandler.RaisePostBackEvent(String
eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
Any advise you can give would be greatly appreciated.
Thanks,
monika
|
|
|
|
|
|
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()
|
|
|
|