Thanks for the help. I see what I did wrong with the SLICE function (somehow I thought it would return a string with the third parameter as the delimiter). What would I need to use for defining that regular expression if I only wanted numbers with or without decimals to be matched?
I am trying to create an array with the matched elements from a string. I am not having much success (the result is an empty array). Here is what I got:
var regpattern = new RegExp("^\d+(\.\d{1,2})?$");
var myarray = new Array;
myarray[21] = "TEXT NOT NEEDED";
myarray[22] = "Diagnosis: Other...
What would cause some fields to run together when printing? The report looks fine when viewed in the web browser (RS2008 is what we use), but when the report it printed, two fields occupy the same space and overwrite each other.
Thanks!
Is there any possible way for me to choose what server I get assigned on my Web Farm? I have three webservers in that cluster and am using one of them for development for an ASP app. I have people that need to test changes that are being made, but they don't always get assigned that server...
Well, I got this partially working. I had to include the /codebase option for regasm and then add the application in component services and then add the components and it worked!!! Sort of anyway. I am still having issues with accessing functions in the .NET assembly that are polymorphic...
I have tried to register and consume a .NET dll with plain classic asp (Server.CreateObject). I think I have registered the DLL correctly (it shows up in Component Services just fine and gave me some error messages when the authentication wasn't setup properly), but I can't seem to get classic...
You should also check out jQuery's Ajax methods. They are much cleaner, faster to code and give you lots of options for how you want the call to be made.
If you do use jQuery, do your event binding in your code behind javascript file and not in the html
onchange="filterResults(this.value)"
On a sidenote - check out jQuery for much cleaner code and better access to DOM elements.
That aside, there is no need to declare variables when you are passing them in to the function (function calc). Remove the var declaration.
Why not use jQuery and take advantage of the docready function. You could even use this with real form submission. The advantage of using docready over body onload is that it will fire as soon as the DOM is loaded and will result in quicker and generally more consistent execution.
You really ought to take a look at jQuery and some of the validation plugins. You could have a solution that is not only a better UI experience for your users, but one that is more rebust and flexible as well.
One of my favorite validation plugins is...
I am getting errors in IE when making simple ajax calls. The calls work in other pages, but not in this page.
The IE Script Debugger picked this out as causing the issue:
return new A.XMLHttpRequest
The error is Object doesn't support this property or method on line 123 character 183
The...
I am having serious issues with several webpages. It seems to be happening when people copy and paste text from applications like MS Word. I have written a function to replace some of these with the proper html characters (single quotes, double quotes, etc), but now more symbols are showing up...
I am having serious issues with several webpages. It seems to be happening when people copy and paste text from applications like MS Word.
I have written a function to replace some of these with the proper html characters (single quotes, double quotes, etc), but now more symbols are showing...
The problem turned out to be this:
Me.App_DateDateTimePicker.Text = ""
Even though this property setting was happening BEFORE the value setting, it apparently breaks the datapicker somehow.
Once I removed that line, it works like a charm.
That didn't work. I tried something else:
If Not IsDBNull(dsProtocolInformation.Tables(0).Rows(0).Item("App_Date")) Then
Me.App_DateDateTimePicker.Value = CType(dsProtocolInformation.Tables(0).Rows(0).Item("App_Date"), Date)...
I am struggling with this. I have a datetimepicker. I have code to get data from database on form load. All that works just fine. What won't work is for the datetimepickers to be set to the date I get back from the DB. I can do a MessageBox.Show on the variable that holds the date coming...
I have a Windows Forms application and need to print a reporting services report directly to a printer. Right now, I can bring it up in a browser, but really need to bypass the viewing and just send output to a printer. Any advice?
Thanks,
ElJay
BTW - This works:
SET @COUNT = ( SELECT COUNT(r.ereq)
FROM dbo.Request r
INNER JOIN dbo.[Status] s ON s.ereq = r.ereq
WHERE s.[Status] = @STATUS
AND r.creator = @UID
)
IF @STATUS = 'ALL'
BEGIN
SET @COUNT = ( SELECT COUNT(r.ereq)
FROM...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.