User Profile

Collapse

Profile Sidebar

Collapse
bencoding
bencoding
Last Activity: Sep 24 '08, 06:39 PM
Joined: Mar 20 '08
Location: Atlanta
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • bencoding
    started a topic Interview question for ASP

    Interview question for ASP

    Hello, I have an interview question that I need to answer and wanted to hear some other answers out there:

    Code:
    What are 5 main objects in ASP?
    ...is there a best way to answer this?
    See more | Go to post

  • I did have <body onbodyload="nav images"....etc but I removed that and still getting the same,

    but does it matter if I have the css file pointing back 2 directories, for example

    "../../syle.css" ?...
    See more | Go to post

    Leave a comment:


  • Is there any reason why my newly deployed website would run slower on a web server?

    I just deployed my website and it doesn't run as fast as it did locally. The css takes time to load, has anyone else had this problem?
    See more | Go to post

  • bencoding
    replied to (Newbie) Needs help with math equation
    in .NET
    ah I found this,

    Code:
    Math.Round(result,2);

    works! thanks for the help.
    See more | Go to post

    Leave a comment:


  • bencoding
    replied to (Newbie) Needs help with math equation
    in .NET
    ok, thanks, I didn't see the C# section before,.... that was helpful and got me one step closer, so when I do this I get a long string past the decimal, is there a round() function that will round it up to the nearest cent? (see my code results)
    Code:
            float per = 90;
            float conv_per = p / 100;
    
            double dol = 199.95;
    
            double a = conv_p * dol;
    
            // Returns
    ...
    See more | Go to post

    Leave a comment:


  • bencoding
    started a topic (Newbie) Needs help with math equation
    in .NET

    (Newbie) Needs help with math equation

    Hello, I've been learning C# for a few months now and still learning, I come from a PHP background where declaring the variable types is not involved.

    I would like to do this simple math problem in C#, is there anyone who can help me?

    Number A: Is a monetary value with dollars and cents (eg 199.95)
    Number B: Is a numerical percentage value (eg 90%) without the percent sign


    My code here...
    See more | Go to post

  • bencoding
    replied to How can I get my /directory/ name?
    in .NET
    thanks guys!.......... ..........
    See more | Go to post

    Leave a comment:


  • bencoding
    replied to How can I get my /directory/ name?
    in .NET
    I just tried Server.MapPath( ".") and it's closer to what I need, it gives me

    C:\Program Files\CCM\Proje cts

    ... I would need to extract "Projects" some how, if this is the closest I can get could I use a string function to strip everything out up to the 3rd "\" ?...
    See more | Go to post

    Leave a comment:


  • bencoding
    replied to How can I get my /directory/ name?
    in .NET
    Ok, I can probably clarify that, ....I would like to get the directory or folder name so that I can use it in my code, for example if the directory name is /projects/Default.aspx

    I would write some code like

    if (directory name = 'projects')
    {
    // do something here
    }

    So I would like to be able to get the directory name to use in my code, and for testing purposes I am using Response.Write( );...
    See more | Go to post

    Leave a comment:


  • bencoding
    started a topic How can I get my /directory/ name?
    in .NET

    How can I get my /directory/ name?

    Hello, I am building a "Web App" in "Visual Web Developer 2005" and need to be able to read my directory, for example http://mywebapp.com/dirname/Default.aspx

    So how would I be able to read the current directory name which in this case is "dirname"
    See more | Go to post

  • yes I understand, I did put it there, I have tried this and I get "InvalidOperati onException was unhandled by user code" and it points to:

    Code:
    conn.Open();
    Using this code:

    Code:
       <connectionStrings>
        <add name="DatabaseConnectionString" connectionString="Data Source=[myDB];Integrated Security=True"
         providerName="System.Data.SqlClient" />
    ...
    See more | Go to post

    Leave a comment:


  • How can I put my connectionString from the Web.Config file into my SqlConnection();

    Wow, I've spent about 3 hrs now trying to figure this one out, none of the articles online were able to help me and some were using system libraries that were obsolete......a nyways,

    I am able to read my connection string from my web.config file withing a Response.Write( ); but when I put it in my SqlConnection([here]) it won't display, I don't get why

    Can someone PLEASE I'm begging for a simple solution for this,...
    See more | Go to post

  • Thanks for your help guys, I ended up figuring it out and did something different, so as I mentioned this is a register page and I need to check the database to make sure that the email address is not already in the database and in an active account. So I ended up using the ExecuteScalar() ; which returns the first value of the first column, and then put in a if != null condition. Here is my code, feel free to critique and let me know what I could...
    See more | Go to post

    Leave a comment:


  • bencoding
    started a topic ADO.NET Simple returning a single row (newbie)
    in .NET

    ADO.NET Simple returning a single row (newbie)

    Hello, I'm a newbie to the .NET programming and need some help.

    I am creating a registration page and want to be able to take the username and password that the user entered and check to the the database to make sure it doesn't already exist. If it does I want to return an error Response.Write( ) message and if it doesnt then I will continue with my other code. I am very new to this and it's hard finding some support forums online...
    See more | Go to post

  • bencoding
    started a topic Something simple
    in .NET

    Something simple

    Heyo,

    I am new to the .NET experience and just getting my bearings. I am trying to do something simple like connect to my database and display some data through a loop.

    Can anyone help me with the following steps?

    1. Setting my "using System...etc" library
    2. Creating a connection string
    3. Creating a loop to display the rows/columns

    I have searched online but...
    See more | Go to post

  • bencoding
    replied to What are my TRIGGER options?
    That's what I am trying to wrap my head around, I have been told I can put them all in one but by someone who may not be sure. This is what I would need to do for each.

    for INSERT: insert a record into another table
    for UPDATE: update a record into another table after comparing IDs
    for DELETE: delete a record from another table...
    See more | Go to post

    Leave a comment:


  • bencoding
    started a topic What are my TRIGGER options?

    What are my TRIGGER options?

    I am writting a trigger that needs to handle INSERT, UPDATE and DELETE.

    Can I use 1 TRIGGER for this? or will I have to writemultiple tiggers? If so how would I make the distinction between if update, do this, if insert do this, and if delete do this?
    See more | Go to post

  • Thanks for the alternative option, I'm not a big fan of dynamic sql though, I have heard it can slow down some larger sp's. Not to mention not as easy to follow or debug. Option 1 seems to work perfectly for me. Thanks, Ben...
    See more | Go to post

    Leave a comment:


  • yes, I have seen where you can add the CASE statement right after the "=, equal" operator but what I really need is to leave the WHERE clause out all together if @report_field_v alue = 0.

    But actually I think what you provided will still work I didn't think about that, thanks....
    See more | Go to post

    Leave a comment:


  • Newbie to T-SQL (and can't get my if..else to work in WHERE clause)

    Hello, I'm new to this board and new to T-SQL,

    I have a project at my work that is requiring me to modify an existing stored procedure to add more functionality.

    How can I use a CASE or IF...ELSE (preferably a single IF) statement for this scenario?

    if @report_field_v alue is equal to 0 then leave that where clause out completely else if it is a number greater than 0 then use the where clause of WHERE...
    See more | Go to post
No activity results to display
Show More
Working...