AdamusTheGreat's Q&A profile
.NET Development Request Object - # character in the QueryString
Hello: I am having problem of Request.queryString("address") to get the value of address, if the address contains '#' character then it is chopping up to # then I am not getting remaining part of value and other values in the query string. My query sting is: a href="TestCharacterForm2.aspx Address=Apt#123&Address2=Chicago" > TestCharacter Is there any way using javascript or something else Thanks akkd101 Like " Indian Ocean " said, # is used for bookmark, it's a reserved character, it cannot be used in your querystring as data. Use UrlEncode or write # directly in the url. ...Show All
Visual Basic vb 2500 tcpListener accepting connections JUST FROM ONE ip address
Hi guys! I've been using TcpListener and TcpClient classes (I read examples from on line help of Visual Studio 2005). I succeeded in making a tcp server that works quite well. Now I want that this server could accept connections from just one and only IP address (that I choose). Does anybody know how to make it I think it's a simple trick but I'm not able... Thanks for any kind of advise! Zingaro. ehm... sorry: *************** 'se la connessione proviene da un altro ip la ignoriamo e restiamo in ' attesa di un'altra connessione *************** this is italian language and it means: *************** 'if connection is from a different ip address we ignore it and ke ...Show All
Microsoft ISV Community Center Forums worksheet_change and data validation
Hi there I have an Excel spreadsheet in which one column has data validation set. So the cells in this column have drop-down lists with the pre-set allowed values. Now I want the cell in the neighboring column to be set to some default value when the user selects an item from the drop-down list. This seemed like it would be easy, using the Worksheet_Change event handler. When a cell in the first column is changed, it initiates a function which sets the value in the neighboring column to some default value: Target.Offset(0,1).Value = "default". The problem is that it doesn't work when using the drop-down list. If the user types in the value manually, or if a cell in the first column is deleted, it DOES fil ...Show All
Windows Forms String to Formula?
I have a formula saved as a string, e.g "180/2+15" How can I process this formula to find the result (105) Here is a C# String Parser and Evaluator. ...Show All
Visual Studio Express Editions Saving Information
Hello, I a making a program that will be opened once a day probably and some information will be imputed. How can I save the informaition to be used at a later date. I basically need to use something that is like a variable accept that the variable will be saved and after the program is closed and opened again it can be used. thanks Average Joe ReneeC, Good for you Are we all experts here! I think not. Correct me if I'am wrong, but isn't this forum intended for people who are new to VB As I am only learning and you seem to know it all , perhaps you can advise me what is so wrong with the code I have posted. You are quick to say that the solution is not up to the job, so to speak ...Show All
Visual Studio how to move a DB by copy,
I follow the help but not work, any details steps. thzx So long as you move the entire database (not just the data folder), it should work seamlessly. I'd recommend using a secure file copy mechanism like robocopy. Can you describe what's not working ...Show All
.NET Development Execute desktop .exe from asp.net 2.0
I want to execute desktop .exe file from asp.net 2.0 I using Shell method to calling it but it's not show on desktop and it show in task manager under "Network Service". Thank you. HI. This guy has not responded but I am interested to do just this. I understand it is in fact by design but how to get around it A library dll to run it for the webapp is still of no use. I an building a VNC "switchboard" app for my schoolteachers to use to select a workstation from a webpage. I can pass all the commandline stuff to show that desktop no sweat, but it is of no use at all if the user can't see it. I would appreciate any ideas here. Thanks Keith ...Show All
Visual C# problem with update
Hi here i'm trying to update a row dynamically using c# ado.net like this _sqlDataAdapter.UpdateCommand = new SqlCommand ( "UPDATE employee SET emp_name = @emp_name" , _sqlConnection); _sqlDataAdapter.Update(_dataset, "employee" ); but it shows exception like this sql exception was un handled Must declare the scalar variable "@emp_name". how to solve it thanx in advice Nagu well yes, you still need to declare the variable otherwise the error will be thrown. why don't you just call the Update() (I think) command on the dataset to update the records which have been modified otherwise if you need to update a specific record, the solution I had g ...Show All
SQL Server SQL2005 : Can not run the DB tuning tuning advisor
I've setup Sql2005 developer edition. Created a test server and one database with a few tables. I can connect through Server Management Studio. When I try to run the Database Engine Tuning Advisor I receive this error: Failed to open a new connection. Failed to initialize MSDB database for tuning (exit code: -1073741819.) (DTAClient) any tips on what to do next I'm no SQL Server expert, but I do know I can connect to my DB Server and all the contained DB's and tables just fine through the management studio. ...Show All
Visual Studio Tools for Office Automation in Excel 2003 fails when linked in Word or PowerPoint
I am building a shared add-in for Excel but am having difficulties with Excel objects in Word or PowerPoint when my add-in is running. I have found out that the problem comes from listening to Application events in Excel and have made a simple project that reproduces the error. I used the VS2005 template wizard for making a shared add-in and my connect.cs looks as follows: using System; using Extensibility; using Microsoft.Office.Interop.Excel; using System.Runtime.InteropServices; namespace MyAddin1 { [ Guid ( "CE7B3AF1-9095-4e05-92FC-66F3AF564C47" ), ProgId ( "ExcelAddin.Connect" )] public class Connect : Object , IDTExtensibility2 { public Connec ...Show All
Visual Basic Update dataset
Hello. A question please. I use a dataset to retrieve data of a table. Then, I move the data from the dataset to controls. It works fine. After that, users make changes on the screen, I retrieve all information from controls and I update my table. It works fine tot. My table (SQLserver) is updated with the changes done by the user, but my dataset contains old data, (data without changes done by the user). How can I update de dataset Thanks... In vb.net the approach is a bit different. You need to update the changes made in the controls to the dataset. and then update the dataset onto the table (database) through a adapter.update(dateset) command. ...Show All
Visual C++ BUG? auto_ptr assignment crash in VS2005
I've just experienced a crash with VS2005 with the following: #include <memory> class Foo { public: Foo* MakeFoo() {return new Foo(*this); } }; void TestCrash() { Foo f; { // either of the next lines crashes std::auto_ptr<Foo> fooPtr1=NULL; std::auto_ptr<Foo> fooPtr2=f.MakeFoo(); } } This same sample doesn't compile on VS2003 as there is no assignment operator for auto_ptr. Changing these lines to use the constructor form: auto_ptr<Foo> fooPtr1(Null) fixes the problem. It seems that auto_ptr is using the wrong constructor -- it's implicitly casting to an auto_ptr_ref type. Is this a known issue What makes you believe that Did you ever look at the operator auto_ptr_ref() ...Show All
SQL Server Query to another server
Hi, I'm trying to do a query from ine server to another, something like this: " SELECT * FROM FILESERVER . SharePointConnectingDB . dbo . vDepartmentsNames" where FILESERVER is the other SQL server name, SharePointConnectingDB is the the DB in the other server, etc. as a return i get the following error (in spanish becuse the server is in spanish): in El proveedor OLE DB "SQLNCLI" para el servidor vinculado "FILESERVER" devolvio el mensaje "Especificacion de autorizacion no valida". Msg 7399, Level 16, State 1, Line 1 El proveedor OLE DB "SQLNCLI" para el servidor vinculado "FILESERVER" informo de un error. Error de autenticacion. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX performance issues, multithreaded
Hi, I'm writing a DirectX application with two threads: Main thread: Processed Windows messages, renders frames Secondary thread: Runs game engine When my main thread runs without Sleep(milliseconds), I get about 700 - 800 frames per second, but my engine thread does maybe 5 loops per second. When I put Sleep(0) or any other small number into my render thread, the FPS drops to 64 (strange number btw). I am pretty sure I count my FPS correctly (QueryPerformanceTimer & count frames, after one second fps = framesRendered / timeElapsed). My engine thread doesn't do much most of the time and it has Sleep(50) in it. For some reason it doesn't make a difference what sleep time I put into engine thread, I still get about 64 FPS i ...Show All
Visual Studio Express Editions dates and null values
My column in sql is of a date data type. I have a textbox that a user can enter a date when certain parameters in the program are met. On occasion a date does not have to be entered in the textbox. This is where I have a problem. The column can accept null values but I am not sure how to program this part. I have a date variable = cdate(txtbox1.text). If nothing is entered in the textbox I get an error message of "can't convert "" to a date) Any help would be appreciated. I put in the following code If txtRetro.Text.Length = 0 Then ClientInfo.Retro = DBNull.Value Else ClientInfo.Retro = CDate (txtRetro.Text) End If When I run it, I get the error me ...Show All
