Hi,
how do I output multiple excel files from one source using vbscript?
Regards,
Noluthando
User Profile
Collapse
-
Hi,
I've defined the confirm box below and I when submit is clicked, I check the selected value of the dropdownlist, if it is 'delete', a confirm box should pop -up but cuurently there is no confirm box when I clik Submit.
...Code:<script type="text/javascript" language="javascript"> function ConfirmBox() { return confirm("Do you want to continue?"); }Last edited by Frinavale; Jun 26 '09, 02:42 PM. Reason: Added code tags. Please post code in [code] [/code] tags. -
Hi,
it was a a Web application that needed to be removed from memory and I used
<script language="javas cript" type="text/javascript">
function CloseMe()
{
window.close();
}
</script>Leave a comment:
-
confirm box for a dropdownlist
I have dropdownlist where a user can select edit or delete. When a user selects delete, when they click submit a confirm box should come up to confirm if they do want to delete, my code is cuurnely not working, can someone tell me what is wrong?
...Code:<script type="text/javascript" language="javascript"> function ConfirmBox() { return confirm("Do you want to continue?"); }Last edited by Frinavale; Jun 26 '09, 01:16 PM. Reason: Added code tags. Please post code in [code] [/code] tags. -
-
Create an exit button in C#
Hi,
Can someone please help me with an exit button in C#. I have an exit button that does not work. -
zizi2 started a topic How do I save an uploaded image with a unique filename that I generate myself,?in ASP .NETHow do I save an uploaded image with a unique filename that I generate myself,?
Hi,
How do I save an uploaded file with date&time before the file extention. I am currently saving the file as shown below:
...Code:string strFilename = ""; if( filMyFile.PostedFile.ContentLength != 0 ) { strFilename = filMyFile.PostedFile.FileName; strFilename = System.IO.Path.GetFileName(strFilename); //filMyFile.PostedFile.SaveAs(@"C:\Inetpub\wwwroot\classifieds_images\"+strFilename);Last edited by Frinavale; Jun 16 '09, 03:04 PM. Reason: Added code tags. Please post code in [code] [/code] tags. -
Page redirect after submit button has been clicked
I have a form that I want to redirect to another page after clicking the submit button. It works well (please see the code below) except that it cancells my pop-up message, it goes the redirected page without showing the popup. Please help:
...Code:private void Submit_Click(object sender, System.EventArgs e) { if( filMyFile.PostedFile.ContentLength != 0 ) { string strFilename; -
-
How do I concatenate two textbox values into one table column, can anyone please help?Leave a comment:
-
Thanks, it works like a charm when I use if (filMyFile.Post edFile.ContentL ength != 0) . Sorry but I'm new to .Net programming so I need help again. I am trying to display a computer name in a texbox but I am failing, please look at my code below:
string macname = Environment.Mac hineName;
txtECN.Text = macname[0].ToString();Leave a comment:
-
Hi Bassem, thanks. It fails on the line 'filMyFile.Post edFile.SaveAs(@ "C:\Advert_imag es\"+strFilenam e', I would have thought it does not have to go inside the if statement if filMyFile.Poste dFile is null, it would simply go to the ELSE part and do nothing?Leave a comment:
-
Page fails if there is no Image uploaded
Hi,
I have a webform that uload images as well. The image is uploaded well but the problem arises when the user does not upload any image. I want the form to save nothing for the image_name in the database if there is no image loaded but it does not get to the art of saving to the database, please see my code below and the error I am getting:
...Code:if( filMyFile.PostedFile != null ) { string -
Thanks hammayun, it worked I needed to added the ".txt" and DateTime.Parse for the ExpiryDATE.
Thanks everyone for all your help.Leave a comment:
-
Sorry to be a pain, I've checked and I have @Expiry_date and @Email_address, I can't find the spelling mistakes in the new version of my code, please help.Leave a comment:
-
thanks maliksleo, i have correct the typo and it now looks like(below) this but I'm still getting the error, not sure what am I doing wrong.
...Code:private void Submit_Click(object sender, System.EventArgs e) { SqlConnection con = new SqlConnection(ConfigurationSettings.AppSettings["ConnectionString"]); SqlCommand cmd = new SqlCommand("Add_advert", con); cmd.CommandTypeLast edited by Frinavale; Apr 29 '09, 01:31 PM. Reason: Added code tags. Please post code in [code] [/code] tags.Leave a comment:
-
Hi I have a similar error (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.), not sure what my problem is...please help. I am trying to insert data into a database using a stored procedure, please the the C# code below and the stored procedure:
...Code:USE [Intranet] GO /****** Object:
Last edited by Frinavale; Apr 29 '09, 01:32 PM. Reason: Added code tags. Please post code in [code] [/code] tags.Leave a comment:
No activity results to display
Show More
Leave a comment: