User Profile

Collapse

Profile Sidebar

Collapse
danmoran
danmoran
Last Activity: Oct 20 '10, 09:18 AM
Joined: May 3 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • danmoran
    replied to sending gmail from ASP.NET
    Hi Frinny, great I got it working thanks alot for your help
    See more | Go to post

    Leave a comment:


  • danmoran
    replied to sending gmail from ASP.NET
    Hi Frinny, how do I go about sending the email on port 465? I am not familiar with the concept of ports... I am fairly new to ASP.NET and to web technologies.
    thanks
    See more | Go to post

    Leave a comment:


  • danmoran
    replied to sending gmail from ASP.NET
    Hi Steven, well the code I have does not work. It doesn't give me any errors it runs but without sending the gmail. I don't know if there is anything wrong or why it doesn't send the gmail.

    thanks
    See more | Go to post

    Leave a comment:


  • danmoran
    started a topic sending gmail from ASP.NET

    sending gmail from ASP.NET

    Can someone help me with the following code? I am trying to send out gmail from my asp.net webform. here is what I have so far. Thanks so much....
    Code:
    using System;
    using System.Collections;
    using System.Configuration;
    using System.Data;
    using System.Linq;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;
    ...
    See more | Go to post

  • danmoran
    replied to Convert VBA code to C#
    Thanks for your prompt response. I tried the DLLImport but for some reason I can get it to work. I came with the following code.

    However; I can't get the method to return an errorCode number.


    Code:
            [DllImport("c:\\Program Files\\DHI\\Calibration\\muEpanet2.dll")]
            static extern long MUEpanet_RES_Load2Mem_InitHeader(ref string F1, ref long F2, ref long F3);
    
            [DllImport("c:\\Program
    ...
    See more | Go to post

    Leave a comment:


  • danmoran
    started a topic Convert VBA code to C#

    Convert VBA code to C#

    I have VBA code calling an external dll file, within the dll exist method "getErrorCo de".

    I would like to know how I should call the dll file from C#.

    Code:
    Private Declare Function getErrorCode Lib "c:\master.dll" (ByVal F1 As String, ByVal F2 As Long, ByVal F3 As Long) As Long
    with in my code I call the method getErrorCode like this
    Code:
    ErrCode = getErrorCode(fileName,
    ...
    See more | Go to post

  • danmoran
    replied to c++ dll in C# project
    @GaryTexmo Yes, I google it and my code is OK... but I just can't see why my code doesn't give me the results I expect from the DLL...
    See more | Go to post

    Leave a comment:


  • danmoran
    replied to c++ dll in C# project
    Yes, I google it and my code is OK... but I just can't see what it doesn't work....
    See more | Go to post

    Leave a comment:


  • danmoran
    replied to c++ dll in C# project
    Convert VBA to C#

    I have the following code in VBA I would like to convert the same code to C#. the VBA codes calls a c++ dll which includes method myMethod. Thanks so much for your help.

    Code:
    Private Declare Function myMethod Lib "c:\myDLL.dll" (ByVal F1 As String, ByVal F2 As Long, ByVal F3 As Long) As Long
    See more | Go to post

    Leave a comment:


  • danmoran
    replied to c++ dll in C# project
    import a C++ dll into C#

    I am trying to get a method out of a C++ dll in C#. Can anybody help me I can't extract the method myDll which takes 3 parameters (string, long, long). I get an error message "vshost.exe stopped working " Can anybody tell me what's wrong with the code below.

    Code:
    namespace WindowsFormsApplication1
    {
        public partial class Form1 : Form
        {
            // here
    ...
    See more | Go to post

    Leave a comment:


  • danmoran
    started a topic c++ dll in C# project

    c++ dll in C# project

    Im trying to use an external DLL and extract data from the dll. my code is as follows:

    myMethod should return a Zero "0". but when I run it I get an error message "vshost.exe has stopped working".


    Code:
    namespace WindowsFormsApplication1
    {
        public partial class Form1 : Form
        {
            [DllImport("c:\\Program Files\\DHI\\Calibration\\muEpanet2.dll")]
    ...
    See more | Go to post
    Last edited by tlhintoq; May 7 '10, 03:18 PM. Reason: [CODE] ...Your code goes between code tags [/CODE]

  • Thanks alot for your help!!! I came up with the following code and it works right.
    Code:
            ImageButton myImageButton = new ImageButton();
            protected void Page_Load(object sender, EventArgs e)
            {
                myImageButton = (ImageButton)Master.FindControl("btnHome");
                if (myImageButton.ImageUrl == "~/images/home.jpg")
                {
                    myImageButton.ImageUrl="~/images/homeSelected.jpg";
    ...
    See more | Go to post
    Last edited by Frinavale; May 4 '10, 01:17 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.

    Leave a comment:


  • Modify imageButton.Ima geUrl in a master page

    I have a master page which included several ImageButtons controls. I would like the image on each of these buttons to change as the user clicks on determined button. For example, the home (button) when clicked will show the image homeSelected.jp g, when is not selected willl show the home.jpg.

    Any help on this matter will be greatly appreciated.
    See more | Go to post

    Leave a comment:


  • danmoran
    started a topic Change imageButton image in a master page

    Change imageButton image in a master page

    I would like to change the image on animageButton as this is clicked by the user.

    when the master page is loaded it shows the btnHome.ImageUr l = "~/images/home.jpg";

    But when the user clicks on the btnHome, its ImageUrl should change to btnHome.ImageUr l = "~/images/homeSelected.jp g";

    The imageButton should change from a selected image to nonselected.

    Thanks so much
    See more | Go to post
No activity results to display
Show More
Working...