User Profile

Collapse

Profile Sidebar

Collapse
Mugs321
Mugs321
Last Activity: Jul 10 '09, 06:40 PM
Joined: Sep 15 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Mugs321
    replied to Substring Error
    Riiiight.... silly rabbit.. thx!
    See more | Go to post

    Leave a comment:


  • Mugs321
    started a topic Substring Error

    Substring Error

    Hey all,

    This code:
    Code:
    AMessage = e.StackTrace.Substring(e.StackTrace.LastIndexOf("\\"), e.StackTrace.Length);
    Produces this error:
    Code:
    Index and length must refer to a location within the string. Parameter name: length
    I'm trying to retrieve the page name and line number of the given error (everything after the last slash in the StackTrace). I'm pretty sure my LastIndexOf and Length...
    See more | Go to post

  • Hi there,

    That tab, on both my local machine's IIS and the dev server's IIS, read the same as the values in my web.config. However, the dev server seems to be ignoring these values and returning to the default 20...
    See more | Go to post

    Leave a comment:


  • I'm a little unclear what exactly you mean by my ASPNet Config. Are you referring to the server/application configuration?

    I looked in the Aspnet.config in my Framework directory and it contains this:
    Code:
     <?xml version="1.0" encoding="UTF-8" ?>
    <configuration>
        <runtime>
            <legacyUnhandledExceptionPolicy enabled="false" />
            <legacyImpersonationPolicy
    ...
    See more | Go to post

    Leave a comment:


  • Cannot Extent Session Timeout Without Cookieless Session

    Hi all,

    I'm having a problem with extending Session Timeouts... hopin someone can help..

    This is the line under my <system.web> tag in my web.config:
    Code:
    <sessionState mode="InProc" timeout="45" cookieless="AutoDetect"></sessionState>
    The line above does not extend my session. However, if I set cookieless="tru e", it seems to work just fine....
    See more | Go to post

  • Mugs321
    replied to selecting colums from two tables
    in .NET
    Personally I always use a combination of Stored Procedures, MS Enterprise Library and DataSets to access data. I may be wrong, but I think the technique you're using is really out-dated.

    Try looking here for information on what I'm talking about... They have some good sample code:
    www.codeplex.com/entlib

    Mugs...
    See more | Go to post

    Leave a comment:


  • Mugs321
    started a topic MSSQL 2005 Connection Problems

    MSSQL 2005 Connection Problems

    Hi there,

    I'm trying to use an asp-based database GUI (a-la PHPMyAdmin) and I'm having problems connecting to my production MSSQL 2005 database. I connected successfully to my SQLExpress server using the very same connection string. This is the error:

    Code:
    Error: [DBNETLIB][ConnectionOpen (Invalid Instance()).]Invalid connection. 
    Error: Provider=SQLOLEDB;Data Source=;User Id=;Password=;Initial Catalog=HRC_Mentoring_Dev;
    ...
    See more | Go to post

  • All I did was create a Console Application project, code it then right-click the project and select "Publish... "
    See more | Go to post

    Leave a comment:


  • Mugs321
    started a topic Publishing Console Applications (Install Settings)
    in .NET

    Publishing Console Applications (Install Settings)

    Hello,

    I've just published my first console app and everything went fairly smoothly. There are just a few installation settings that I was wondering about:

    1) The following folder/files are created when I publish:
    - SendEmailServic e_1_0_0_1 \ {dll/deploy files}
    - autorun.inf
    - SendEmailServic e.application
    - SendEmailServic e_1_0_0_1.appli cation
    - setup.exe

    Is there any...
    See more | Go to post

  • Mugs321
    started a topic Team system build errors
    in .NET

    Team system build errors

    Three developers have been working on a project for several months now and now we want to include new users in our project so they can test what we have built. The application works perfectly fine on our three machines but when the tester uses "Get Latest Version" and builds the project two errors occur that cause him to be unable to run the project.

    1) Source Control is saying that Microsoft.Pract ices.Enterprise Library.Common. dll...
    See more | Go to post

  • Mugs321
    started a topic Using Properties and Private Variables
    in .NET

    Using Properties and Private Variables

    Hey all,

    A colleague and I are in the middle of a debate and I was wondering if anyone could shed some light:

    Question:
    For the code in a class, should you reference a local (private) variable itself or the property that gets/sets it?

    My arguement:
    There is less overhead involved if you just reference the local var. As such, you should only reference the property when any logic/calculations...
    See more | Go to post

  • Mugs321
    replied to Empty Strings and Zero
    thx for the reply... but I'm still trying to come to terms with this conundrum.

    Consider the following:
    [CODE=javascript]
    alert(0+'xx')
    [/CODE]
    By the 'empty string' logic, shouldn't the alert display 'xx' instead of the '0xx' it actually returns? Even (0+'') returns 0. If the string = '0' (has a length=1) how can it be considered empty?

    I will accept "It's like that... and that's the...
    See more | Go to post

    Leave a comment:


  • Mugs321
    started a topic Empty Strings and Zero

    Empty Strings and Zero

    Hey all,
    I have a simple function which submits a form when a radio-button is clicked:
    Code:
    function submitAccessForm(frmAction, frmActionID){
    	if ((frmActionID+'') != ''){
    		document.getElementById('frmAction').value = frmAction;
    		document.getElementById('frmActionID').value = frmActionID;
    		document.getElementById('step3form').submit();
    	}
    }
    You'll notice I used (+'')...
    See more | Go to post

  • Mugs321
    replied to Flaky IFrame Print Issue
    Dasty,
    Your suggestion worked great. I am curious, however, as to why the script only executes properly when using window.onload (as opposed to document.onload )
    See more | Go to post

    Leave a comment:


  • Mugs321
    replied to Flaky IFrame Print Issue
    Figured it out... guess it was a timing issue.

    I added
    Code:
    document.onload=setTimeout("doPrint()", 100);
    to the iframe page and it works fine now.
    See more | Go to post

    Leave a comment:


  • Mugs321
    started a topic Flaky IFrame Print Issue

    Flaky IFrame Print Issue

    Hey all,

    Here's the deal... I have an iframe which I am using a to print a certain page without displaying said page. I've use this technique in other areas of my site and they work like a charm. Using the same code as all the other pages:

    From page with print icon:
    Code:
    function printStudents(url1){
        objFrame = document.getElementById('printFrame');
        objFrame.src = url1;
    ...
    See more | Go to post

  • Mugs321
    replied to SELECT INTO Another Database Problem
    Perfect guys! Both solutions work.
    See more | Go to post

    Leave a comment:


  • Mugs321
    started a topic SELECT INTO Another Database Problem

    SELECT INTO Another Database Problem

    Hey all,
    I'm trying to use SELECT INTO to copy a table from one database to another. http://www.w3schools.com/sql/sql_select_into.asp tells me that I can do this using the IN keyword. I'm using MSSQL Server and the following statement:

    Code:
    SELECT RMC_Attempt.* INTO RMC_Attempt IN 'Test2'
    FROM RMC_Attempt
    I'm getting an "Incorrect syntax near the keyword 'IN'." error.

    Any thoughts?
    See more | Go to post

  • Mugs321
    replied to Force Page Load
    Thx gits,
    I already had a session variable with the time at which the break expires. Now, as you suggested, if break dialog loads and is any more than 10 seconds after the expiry, the system boots them out with a nice "Tampered Break" message.
    See more | Go to post

    Leave a comment:


  • Mugs321
    replied to IE Margin Issue
    I seem to have fixed the problem... though I don't know why it was happening in the first place (guessin an IE bug)...

    I forgot to mention in the previous post that this was a nested table. As such, I used padding on the cell the table was located in instead of setting the magin on the nested table itself:
    [HTML]<td colspan="2" style="padding: 0px 40px;">[/HTML]

    It now looks the same...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...