lympanda's Q&A profile
Visual Basic Replace Function is removing + characters
Hi, I have a web page that receive a querystring argument, and run a replace function over that query string to replace - with spaces before performing a lookup in a database for the updated querystring value. now the problem is, that this function seems to also be removing any + symbols that happen to be in the query string, which i dont want, as it wont match with any records in the DB if it does this. Code on page load Dim EntireQueryString As String = Request.QueryString().ToString() Dim ProductName As String = Replace(Request.QueryString("Product"), "-", " ") The EntireQueryString value returned is "product=targus-backpack-+-mouse-bundle" The ProductName value returned is "targus b ...Show All
.NET Development Matching using multiple question marks
I am trying to this regex but I am not. is it possible help me!!!! string: x*[2+[(2+y)*z]*(4+y)]-3/[(3+y)*z] regex: matches: 2+[(2+y)*z]*(4+y) (3+y)*z (Moderator: Thread moved to the Regular Expression Forum and Title tweaked for quicker thread understanding during a search) It appears you are trying to find the string bounded by the outermost pair of square brackets and allowing nested square brackets within the string Try the expression described in the following blog entry: http://blogs.msdn.com/bclteam/archive/2005/03/15/396452.aspx . The example uses angle brackets as the thing being matched, but you should be able to convert the expression to look for square brackets fair ...Show All
.NET Development install windows service application
hi how can install windows service in the computer that only have .net framwork 2 hi I do what you said But I am haveing This Problem Now, It is Run If I install it in the Computer that has Visual Studio 2005 and Framwork 2 .but if I install it in The computer that only has Framwork 2 it will not run and when I want to start that service i have this message ' The WindowsServiceName service on local computer started and then stopped .some services stop automatically if they have no work to do,for example , The performance Logs and alerts service. ' Could you help me ...Show All
SQL Server Print Subreport Problem?
I use Reporting Service make a Report .In the Body ,there are a Table, three SubReports.Format like this: ******************************************************** Table1 col1 col 2 col3 col4 aaa bbb ccc ddd aaa bbb ccc ddd Subreport1 subreport2 subreport3 ******************************************************* three SubReports have a Table. when print this report .I select A4 Page,portrait,the Print result like this(picture 1): ********************the first page************************* Table1 col1 col 2 col3 col4 aaa bbb ccc ddd aaa bbb ccc ddd ...Show All
.NET Development Cannot install .NET Framework 3.0 Windows SDK
I cannot install the the .NET Framework 3.0 Windows SDK, the GUI displayed the following error: -----cut----- A problem occurred while installing selected Windows SDK components. [SDKSetup:Error] Config_Products_Detect: Windows SDK installation (detection failed) Please resolve the issue and then start Windows SDK setup again. If you continue to have problems with this issue, please contact the SDK team at wsdkfdb@microsoft.com and provide a copy of your installation log for investigation. Click the View Log button to review the installation log. To exit, click Finish. -----cut----- I clicked on the View Log button and the following is shown: -----cut----- 1:32:27 PM Wednesday, December 06, 2006: ---------------- ...Show All
SQL Server GetDataDrivenSubscriptionProperties vs GetSubscriptionProperties
Is there a similar method for Data Driven Subscriptions like there is for plain subscriptions ListSubscriptions. I would like to get SubscriptionID for use with the GetDataDrivenSubscriptionProperties just as I do for GetSubscriptionProperties. When I execute GetSubscriptionProperties for Data Driven Subscriptions there is no array of Subscriptions. Here is an examole of the code which I execute using rs.exe: Sub Main() 'Dim rs As New ReportingService() 'rs.Credentials = System.Net.CredentialCache.DefaultCredentials Dim DRPlan As DataRetrievalPlan Dim extSettings As ExtensionSettings Dim desc As String Dim active As ActiveState Dim status As String Dim eventType As String Dim matchData As Str ...Show All
Visual C# Using ActiveX controls in a .NET service
I've seen a few different approaches to the question of using an ActiveX control in a windows service, however, it seems that the answer to the question is somewhat unclear. I have seen one post that indicates it is possible to use an ActiveX control in a windows service and another post indicates that it is not possible and that the control should be placed in a separate application. Here's my situation: I have a 3rd party ActiveX control that performs mathematical calculations that I would like to use in a windows service. The licensing scheme for this control requires that it be placed on a windows form even though the control does not have a UI that needs to be displayed in order to use the control. Even though I display the designe ...Show All
.NET Development Problem with databindings after removing a row from a DataTable
I have a DataSet containing 2 DataTables: A and B. The tables are related through a common ‘id’ column, which is a unique column. Table A which is the main table, is displayed by a DataGrid. Table B is displayed by a checkbox and 2 textboxs. (Each control is connected to its matching column through the ‘DataBindings’ property. Everything works fine when I move through rows in the DataGrid, or add a new row. (I see the data of the checkbox and the textboxes is changed properly.) But, when I remove a row from table A, the data I see in the checkbox and the textboxes does not represent the actual data. I don’t know what is wrong, since everything works fine until I delete a row. Can someone help please Table ...Show All
Visual Studio Express Editions Working with threads
Hi, I need to know, how can I work with threads, because I'm developing an application using sockets, and i want to create a thread for the tasks of the application, and another thread, for execute the socket operations in order to avoid blocking the execution. Thanks! I would suggest using asynchronous I/O instead of manually creating threads for socket communications. See Asynchronous Client Socket Example and Asynchronous Server Socket Example for examples. ...Show All
SQL Server SQL Everywhere - Utter Dissapointment!
On the surface, SQL Everywhere seems like a great way to reuse code from an enterprise app using SQL Server in a SMB or home office app needing a more But in experimenting, I have been utterly dissapointed in SQL Everywhere. Key reasons for my dissapointment are the inability to write Database Independent codeusing System.Data.Common . There are instructions for doing this in the MSDN. But do they only apply to non Microsoft Databases I have the following grievances. Are these things that Microsoft plans to fix, or do they plan to leave SQL Everywhere as an inferior product 1. Limitations of query language are not well documented nor understood. SQL Everywhere uses a "subset of Transact-SQL syntax". I have not seen it do ...Show All
SQL Server XML DOM Document
Hi, I created some DTS packages in sql server 2005 and this morning I am getting errors. I am able to open the packes to edit. Following are the errors: Error 1 Error loading MCDMS_Load_Key_OCRepair_Extract_TST.dtsx: Unable to instantiate XML DOM document, please verify that MSXML binaries are properly installed and registered. E:\SCRIPTS\MCDMS_Scripts_System_Test\MCDMS_Load_Key_OCRepair_Extract_TST.dtsx 1 1 Error 2 Error loading MCDMS_Load_Key_OCRepair_Extract_TST.dtsx: Unable to load from XML. E:\SCRIPTS\MCDMS_Scripts_System_Test\MCDMS_Load_Key_OCRepair_Extract_TST.dtsx 1 1 Error 3 Error loading MCDMS_Load_Key_OCRepair_Extract_TST.dtsx: Error loading a task. The contact information for the task is "". This happens when ...Show All
Visual C++ IDE vs Command Line build library specification
I have a project file which builds an exe file - the property page for this project, under the Linker Command Line entry, shows a library (.lib) file. This builds fine in the IDE. This library is not specified in the project file itself, and when I try to build this project from the command line, (vcbuild /useenv) I get unresolved symbol errors due to the missing lib. Where does the IDE pick up the need for this .lib I cannot find a specification for it anywhere in the project property pages, nor in the solution file, yet there it is on the Command Line. If I add this library to the Additional Dependencies for the Linker under the property page, then the lib gets saved into the project file, and I can build from the command line. Is this d ...Show All
.NET Development Computer real clock (CMOS)
How can I get the computer real clock (the one that is in the CMOS, not the windows clock) or the real computer epoch Thank you people in advanced. Technically, you can access the CMOS registers through I/O ports. There's a real danger however that this will interfere with proper system operation if you do this at just the wrong time. Windows obtains the time from CMOS when it starts up and auto-correct the CMOS clock when it gets an update from a time server. Either way, the windows clock and the CMOS clock should be in sync. Do you have problem with the century ...Show All
SQL Server Change Dataset on existing reports
Hi All, I have a set of reports already built. I want to use the same reports using a different dataset(different server). I have tried to add a new datasource and data set, then set the data tab of the report to reflect the new dataset. All seems fine, but when I deploy the report, it is deployed with the new dataset into the new location, but the data displayed is from the original dataset. Any pointers regards Have you tried getting out of report manager and going back in Refreshing. Something sounds like it's pointing to the wrong server. The report is doing what you have told it to do. Check your data sources and check your report on the report manager to see where the data source is pointin ...Show All
.NET Development Drawing on web pages
After way too much research and study, I have not been able to determine how to draw on web pages (not forms). Is it possible If not, how do I launch a seperate form, and can I draw on that (as the client) Thanks in advance. Bert, For the img: there is a way to create logical sections on img tag, which is called image map. But this will never update the image, you may have Javascript to update the look of image, but again it's very limited (as limited as any interaction you can get on the web today). But if the image is static, yes it's possible to get the x and y of the location that you clicked not the mouse movement, and do a client side action for each area. Javascript is your friend here, ...Show All
