User Profile

Collapse

Profile Sidebar

Collapse
dhyder
dhyder
Joined: Apr 29 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • dhyder
    started a topic SqlDataSource Error Handling
    in .NET

    SqlDataSource Error Handling

    I'm working on an admin page for a SQL Server 05 db. The page is in ASP.NET 2.0/C#. The db has multiple tables with foreign keys/constraints.

    I have multiple SqlDataSources and GridViews, which are doing the select/update/delete methods. I manually did the Insert method for each Gridview and I am able perform error handling on it.

    Code:
    Textboxes for data to add
    <asp:Button ID="btnInsertNewService runat="server"
    ...
    See more | Go to post

  • dhyder
    replied to C# App: Problems with ArrayList
    in .NET
    Plater, the TryParse is exactly what I was looking for. Works great. Thanks alot.

    Thank you everyone for your help, much appreciated.
    See more | Go to post

    Leave a comment:


  • dhyder
    replied to C# App: Problems with ArrayList
    in .NET
    Thank you everyone for the input and replies. I will definitely look into everything and see what I can get to work.

    Plater, I haven't used Parse and TryParse before, but I've seen it quite a bit and is definitely something I will research.

    sigil, I never thought of generics. Thanks for the idea.
    See more | Go to post

    Leave a comment:


  • dhyder
    started a topic C# App: Problems with ArrayList
    in .NET

    C# App: Problems with ArrayList

    This project is using .NET and C#. Although my problem is with C# syntax (I think) I didn't see a C# board to post this on. So sorry if this is in the wrong spot.

    Basically my problem is trying to get my ArrayList of integers to post after someone is done entering them.

    Code:
    public static void numberArray()
    		{
    			Console.WriteLine("\nEnter some numbers into an array.");
    			Console.WriteLine("A
    ...
    See more | Go to post

  • dhyder
    replied to Connecting to web objects.
    in .NET
    Hey Frinny,
    I changed the single quotes to double quotes and it still didn't work, so I did a little research into the dll's and API. The main problem with the ('errorcode') line was there was no property in the dll called errorcode, silly me. After working on this for awhile it's starting to come together for me and make a little bit of sense. Also, the API I was given over the dll's actually is not complete and I believe that is part of...
    See more | Go to post

    Leave a comment:


  • dhyder
    replied to Connecting to web objects.
    in .NET
    Hi, sorry for the long wait on the reply.
    I use Dreamweaver instead of Visual Studio, even though it all has the same outcome.
    Yes the server, connections, etc. are set up and working properly.

    Someone on the same project found an example that seems to work in theory, but not in actual coding. Also, the project is under an NDA, so the method below doesn't contain any specific information.

    Code:
     
    public void
    ...
    See more | Go to post
    Last edited by dhyder; Aug 7 '07, 07:25 PM. Reason: Missing Information

    Leave a comment:


  • dhyder
    replied to Connecting to web objects.
    in .NET
    Hey Frinny, I appreciate the help but that does not fix my probem. I will not have a direct connection with a database.

    But I did find out the "web objects" that the client will create are actualy dll's. The client will be creating all of the classes/methods to insert data into the DB. The only thing I need to do is take the information from the forms and let the dll's handle the work. My problem is I am unsure of how to send...
    See more | Go to post

    Leave a comment:


  • dhyder
    started a topic Connecting to web objects.
    in .NET

    Connecting to web objects.

    I've just started a project in ASP.NET/C#. I am unable to have a direct connection with the database (such as ODBC or OleDB) so I was told I would need to connect to web objects in place by the client. The web objects would then take data entered into forms on a webpage and do checks/validations and insertions into the databse. Well I am unsure exactly how to connect to a web object. Can anyone point me to some references or example?

    ...
    See more | Go to post

  • dhyder
    started a topic ASP.NET problem with databases

    ASP.NET problem with databases

    I'm using ASP.NET with C#. GoDaddy is my webhost. I have tried 3 different databases, (that is why I didn't post this problem on one of the specific database forums) MySQL, Access, and MS SQL. All of the databases are available in GoDaddy and were set up there.

    I am also using OleDb connections.

    MySQL:
    Here is the connections string I used at first
    Provider=MySQLP rov; Data Source=p50mysql 13.secureserver .net;...
    See more | Go to post

  • Sorry, forgot to mention that it is a MySQL database. Although its probably noticable this is in ASP.NET 1.1 with C#. I would prefer to keep the OleDb connection so I would not have to change everything around or rewrite anything. I have found a few other provider downloads to try and am in the process of that now.
    See more | Go to post

    Leave a comment:


  • Problem with Multiple-step OLE DB operation generated errors

    OK, like the title says my error is
    Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
    I have looked into this a lot, but have not been able to find a solution to it.
    Code:
    <%@ Page Language="c#" runat="server" debug="true" %>
    <%@ Import Namespace="System.Data" %>
    <%@ Import Namespace="System.Data.OleDb"
    ...
    See more | Go to post

  • dhyder
    replied to Check for return value from a query
    Problem solved. It seems as if my query was causing the problem the whole time.

    "SELECT * FROM customer WHERE username = " + tbUser.Text

    should have been

    "SELECT * FROM customer WHERE username = '" + tbUser.Text + "'";
    I forgot to add the single quotes. What a newbish mistake. :-D I checked it with the third option I had listed (with the data adpater and so on) and it worked...
    See more | Go to post

    Leave a comment:


  • dhyder
    started a topic Check for return value from a query

    Check for return value from a query

    I'm using ASP.Net 1.1 and C#. Testing DB is currently Access 2003. This is basically my code set-up:

    string checkUser = "SELECT * FROM customer WHERE username = " + tbUser.Text;
    if (query returns value) (<--- That is where my problem is)
    {
    lblError.Text = "That username is already taken."
    }
    else
    {
    INSERT info INTO DB
    }

    What I want...
    See more | Go to post
No activity results to display
Show More
Working...