User Profile

Collapse

Profile Sidebar

Collapse
zizi2
zizi2
Last Activity: Nov 12 '09, 09:33 AM
Joined: Apr 27 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • how do I output multiple excel files from one source using vbscript?

    Hi,

    how do I output multiple excel files from one source using vbscript?

    Regards,
    Noluthando
    See more | Go to post

  • zizi2
    replied to confirm box for a dropdownlist
    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?"); 
    }
    ...
    See more | Go to post
    Last edited by Frinavale; Jun 26 '09, 02:42 PM. Reason: Added code tags. Please post code in [code] [/code] tags.

    Leave a comment:


  • zizi2
    replied to Create an exit button in C#
    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>
    See more | Go to post

    Leave a comment:


  • zizi2
    started a topic confirm box for a dropdownlist

    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?");
    }
    ...
    See more | Go to post
    Last edited by Frinavale; Jun 26 '09, 01:16 PM. Reason: Added code tags. Please post code in [code] [/code] tags.

  • zizi2
    replied to Create an exit button in C#
    Thanks it worked !
    See more | Go to post

    Leave a comment:


  • zizi2
    started a topic Create an exit button in C#

    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.
    See more | Go to post

  • How 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);
    ...
    See more | Go to post
    Last edited by Frinavale; Jun 16 '09, 03:04 PM. Reason: Added code tags. Please post code in [code] [/code] tags.

  • zizi2
    started a topic Page redirect after submit button has been clicked

    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;
    ...
    See more | Go to post

  • zizi2
    replied to Page fails if there is no Image uploaded
    Thanks for all your help
    See more | Go to post

    Leave a comment:


  • zizi2
    replied to Page fails if there is no Image uploaded
    How do I concatenate two textbox values into one table column, can anyone please help?
    See more | Go to post

    Leave a comment:


  • zizi2
    replied to Page fails if there is no Image uploaded
    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();
    See more | Go to post

    Leave a comment:


  • zizi2
    replied to Page fails if there is no Image uploaded
    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?
    See more | Go to post

    Leave a comment:


  • zizi2
    started a topic Page fails if there is no Image uploaded

    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
    ...
    See more | Go to post

  • zizi2
    replied to error insert into
    Thanks hammayun, it worked I needed to added the ".txt" and DateTime.Parse for the ExpiryDATE.

    Thanks everyone for all your help.
    See more | Go to post

    Leave a comment:


  • zizi2
    replied to error insert into
    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.
    See more | Go to post

    Leave a comment:


  • zizi2
    replied to error insert into
    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.CommandType
    ...
    See more | Go to post
    Last edited by Frinavale; Apr 29 '09, 01:31 PM. Reason: Added code tags. Please post code in [code] [/code] tags.

    Leave a comment:


  • zizi2
    replied to error insert into
    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:
    ...
    See more | Go to post
    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
Working...