User Profile
Collapse
-
Riiiight.... silly rabbit.. thx! -
Substring Error
Hey all,
This code:
Produces this error:Code:AMessage = e.StackTrace.Substring(e.StackTrace.LastIndexOf("\\"), e.StackTrace.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...Code:Index and length must refer to a location within the string. Parameter name: length
-
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...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" /> <legacyImpersonationPolicyLeave 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:
The line above does not extend my session. However, if I set cookieless="tru e", it seems to work just fine....Code:<sessionState mode="InProc" timeout="45" cookieless="AutoDetect"></sessionState>
-
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...Leave a comment:
-
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;
-
All I did was create a Console Application project, code it then right-click the project and select "Publish... "Leave a comment:
-
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... -
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... -
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... -
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...Leave a comment:
-
Empty Strings and Zero
Hey all,
I have a simple function which submits a form when a radio-button is clicked:
You'll notice I used (+'')...Code:function submitAccessForm(frmAction, frmActionID){ if ((frmActionID+'') != ''){ document.getElementById('frmAction').value = frmAction; document.getElementById('frmActionID').value = frmActionID; document.getElementById('step3form').submit(); } } -
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 )Leave a comment:
-
Figured it out... guess it was a timing issue.
I addedto the iframe page and it works fine now.Code:document.onload=setTimeout("doPrint()", 100);Leave a comment:
-
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; -
-
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:
I'm getting an "Incorrect syntax near the keyword 'IN'." error.Code:SELECT RMC_Attempt.* INTO RMC_Attempt IN 'Test2' FROM RMC_Attempt
Any thoughts? -
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.Leave a comment:
-
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...Leave a comment:
No activity results to display
Show More
Leave a comment: