CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: mcmcom

Page 1 of 33 1 2 3 4

Search: Search took 0.10 seconds.

  1. Replies
    1
    Views
    994

    Re: DropDownList Box

    make a method called somethign like


    myDropDownList_SelectedIndexChanged(object sender, EventArgs e)
    {
    Response.Redirect("somePage.aspx");

    }
  2. Replies
    1
    Views
    865

    Re: Login Control in asp.net

    check this link out : http://weblogs.asp.net/scottgu/archive/2006/02/24/ASP.NET-2.0-Membership_2C00_-Roles_2C00_-Forms-Authentication_2C00_-and-Security-Resources-.aspx

    just a bit down the page...
  3. Replies
    1
    Views
    858

    Re: How to windows/network user login name

    can you be a bit more specific? what do you mean by "get" ?
    do you want them to have to login with their windows username or do you want to display it on a page?

    mcm
  4. Re: The type or namespace name 'Form1' could not be found

    whats eactly the question here ?
    and where exactly does this break ? error messages? stack trace? anything?
    mcm
  5. Replies
    1
    Views
    978

    Re: Trouble with FormView

    you should put a breakpoint somewhere in the pre-render code and do a Watch on the frmBudgetSummary. It may have the control but you may need to drill down to it. using watch will let you know how...
  6. Replies
    1
    Views
    1,744

    Re: sending email from asp.net c#

    using System.Web.Mail shouldn't depend on the users SMTP settings. It depends on your Servers smtp settings. So all you have to worry about is that the server has access to a SMTP server. For...
  7. Replies
    1
    Views
    13,292

    Re: Web service & IIS

    All you really need to do is upload the ASMX and binaries to a virtual directory or a site on IIS.

    this page gives you some step by step:...
  8. Thread: Download File

    by mcmcom
    Replies
    1
    Views
    641

    Re: Download File

    heres an article that may help. It shows you how to download in the background while the app is running.

    http://msdn2.microsoft.com/en-us/library/ms229675.aspx

    hth,
    mcm
  9. Re: Error: File or assembly name Interop.Word, or one of its dependencies, was not found.

    Your attempting to use the InterOp classes for integration with MS Word. However it can't find the .dll your referencing. Add the Reference to your project by going

    ADD REFERENCE (in solution...
  10. Thread: Inserting data

    by mcmcom
    Replies
    7
    Views
    1,174

    Re: Inserting data

    just a quick note. i would not name your Sql Command after your button. It may end up causing confusion when you look and notice you have multiple objects with the same name.

    just name the...
  11. Replies
    15
    Views
    3,169

    Re: c# program and ODBC command

    you cant use DSN For SqlConnections (not to my knowledge anyways) but i think the reason SQL works but not ODBC is because of your ODBC Driver versions. We had the same symptoms a while back. The...
  12. Replies
    15
    Views
    3,169

    Re: c# program and ODBC command

    i suppose, although i dont know how to do it.

    Also what kind of database are you using? if your finding troubles with ODBC and your using a SQL Database i would suggest using SqlCommand objects...
  13. Replies
    1
    Views
    1,727

    Re: DataGrid Cell with multiple font styles

    you would have to inject html into the string your putting into the cell

    so if your string was "This is my great string" and you wanted great to be bold you would first have to get the string and...
  14. Replies
    1
    Views
    731

    Re: creating multiple virtual directories

    open IIS And create VirtualDirectories named

    application1
    application2
    application3

    point them all to the "application" directory

    hth,
    mcm
  15. Replies
    15
    Views
    3,169

    Re: c# program and ODBC command

    swap these lines


    m_oConn.Open();
    m_cmdStoredProc.Connection = m_oConn;

    you have to assign the connection to the command object before you open it.

    also check this article out, it...
  16. Replies
    15
    Views
    3,169

    Re: c# program and ODBC command

    also may want to try "ExecuteUpdate()" if your stored proc is updating (i dont know if it will help though)

    hth,
    mcm
  17. Replies
    15
    Views
    3,169

    Re: c# program and ODBC command

    ok show me your whole code block your using to call the SP Again please?

    and verify with me you get No errors when you execute it?

    mcm
  18. Replies
    15
    Views
    3,169

    Re: c# program and ODBC command

    how many parameters are you passing the Stored Proc from C#?
  19. Thread: Inserting data

    by mcmcom
    Replies
    7
    Views
    1,174

    Re: Inserting data

    well its pretty much the exact same code for a windows form, the calls to SQL server are irralavant to the fact that its win forms or a web app. you still need a :

    Connection Object
    Command...
  20. Replies
    15
    Views
    3,169

    Re: c# program and ODBC command

    you dont need to put BEGIN and all that. it knows if its a stored procedure
    try


    m_cmdStoredProc.CommandType = CommandType.StoredProcedure;
    m_cmdStoredProc.CommandText = storProc;


    hth,...
  21. Thread: Inserting data

    by mcmcom
    Replies
    7
    Views
    1,174

    Re: Inserting data

    stored procedures are a bit better, that way if you got to change something you can usually get away without having to re-comple your app.

    firstly you need to define what your using. You going...
  22. Replies
    15
    Views
    3,169

    Re: c# program and ODBC command

    can you show us the entire block of code making the call to the database?
    do you have all the necessary libraries in your "using" statements at the top ?

    using System.Data;
    using...
  23. Re: Specified argument was out of the range of valid values. Parameter name

    i think the first thing i would try is this


    //change this line
    int rows = dsCreditors.Tables[0].Rows.Count;
    //to this line
    DropDownList ddl =...
  24. Replies
    2
    Views
    691

    Re: ASP.net structure design

    1. To Maintain code you re-use, create a separate class for the code. For example, if you have a function that calculates a total cost based on a product, price, and quantity you could create a...
  25. Replies
    4
    Views
    2,378

    Re: help needed for email coding

    change


    m.To = new MailAddress(txtEmail.Text);


    to


    MailAddress m = new MailAddress(txtEmail.Text);
Results 1 to 25 of 810
Page 1 of 33 1 2 3 4





Click Here to Expand Forum to Full Width

Featured