Ramino's Q&A profile
Visual Studio Team System How to simulate a button click in a web test
Some of my web tests are failing to simulate certain button clicks. This happens after I fix ViewState issues in the generated code (by removing the hard coded viewstate and replacing it with Context[ "$HIDDEN1.__VIEWSTATE" ]). I need to know how to simulate the button click in a C# coded web test. Thanks. That link doesn't make sense. As you pointed out, the FindText rule, with regex grid:_ctl will find occurences of this string. The index field can be used to get the nth occurence of the string. However, in this case you do not know how many there are. Do you want to randomly click on a button In o ...Show All
SQL Server Transferring LogonUser authentication cookie
This is my first post request you to please help.... BackGround: The requirements for my project demanded SSRS 2005 to be configured to use custom security extension instead of its default windows authentication. I customized the FormsAuthentication sample that is installed with SQL Server 2005, to make this working. Therefore, in the present state of my SSRS, a login page is open whenever a user reaches Report Server or Report Manager url. The Report Server/Manager open only when correct credentials are entered and submitted by the user. Now I will tell you something about the project. The project is to create Reporting module for ...Show All
Windows Forms format a column into a datagrid using a typed collection
Hi, I'm trying to apply a custom a format into a datagrid column. This datagrid is binded with a typed collection (inherited from CollectionBase and implementing IBindingList). The binding process works fine, but I'm having troubles when formating/parsing data. There isn’t something like Format and Parse event like I found in the Binding class I have redden this ...Show All
Visual C# ArrayList filled with non-string objects to array of string
Could you tell me, please, if there is an opportunity elegantly convert ArrayList filled with objects of some class to string array Example: class Point { int x, y; public Point( int x, int y) { this .x=x; this .y=y; } } // ... static void Main( string [] args) { ArrayList p= new ArrayList(); p.Add( new Point(2, 3)); p.Add( new Point(5, -2)); string [] result=( string [])p.ToArray( typeof ( string )); // something like this } I have tried to override method ToString() in class Point or add static public implicit operator string (Point p) { return p.x.ToStri ...Show All
Visual Studio Instanciate an external model
I want to acces to a sdm model from my custom model to update it. How can i do Thanks Mauro, i will investigate this. I will report you my experience. Best regards, ...Show All
.NET Development int on a 64-Bit machine
Hi! If I declare a variable of type int in C# it will normally map to System.Int32. If I run the same application on a 64-Bit machine will it then map to System.Int64 Please note that some information in this thread is not correct. In unmanaged Visual C++ sizeof(int) == sizeof(long) == 4 on both 32- and 64-bit machines. Thanks, Eugene ...Show All
Visual Studio Team System Problems with MSTest.exe
I’m having problems using MSTest from the command line to execute tests on my build server. I have a VS2005 (Beta 2) solution set up as follows (actual names changed for clarity): C:\MyProject [ solution root ] C:\MyProject\MyProject [ production project ] C:\MyProject\MyProjectTests [ test project ] When I run MSTest from the command ...Show All
Visual C++ Unmanaged void* to .Net System::Array
I have an unmanaged C++ class representing a 2D matrix. It holds a pointer to a block with the actual data, and fields indicating the number, size and type of the matrix elements. Like this: public class UnmanagedMatrix { public: void * block; long rows; long cols; int type; //refers to an enum of possible types - char, long, double, etc. long sizeOfBlockType; ... } I am writing a managed wrapper to use this class from within .Net with a member pointer to the unmanaged class in the usual way: public __gc class ManagedMatrix { private: UnmanagedMatrix __nogc* pM; ... } I need the wrapper class to get and set the unmanaged block ...Show All
Windows Forms TreeView Problem
Hi, I am using a tree view web_ctrl1.0 of net on my aspx page. the tree view control has checkboxes in it as follows: parentnode -> childnode -> subnodes. every node(i.e parent node, child node , sub nodes) has checkboxes in it. my requirement is that when i click on the checkbox on the parent node the child nodes and subsequnetly all sub nodes should be checked automatically. Pl help me in finding solution. thanks in advance. Mohan, As this is regarding ASP.NET, please post on the http://forums.asp.net forums. ...Show All
Visual Studio Team System Team foundation error
Hello I get this error when I try to conect to team foundation server Team Foundation Server Error The request was aborted: The conection was closed unexpectedly. Cannot connect to domain [domain.projects] for gdctest not retrieved. Earlier I was getting a BIS service error. Can somebody help me out here If by "BIS service error" you mean "Unable to connect to BIS service" error then this second message might be the same thing, except that the BIS service 'died' after you were already connected, as opposed to not being able to connect. Take a look at this blog entry for instructions on how to fix the issu ...Show All
Windows Forms Getting ClickOnce to create a desktop shortcut
msdn states that ClickOnce supports the creation of shortcuts . I am using VS2005 Beta2. But I have not found a way to tap this feature. How do I set ClickOnce to create a shortcut on a user's desktop during installation Does anyone know As of now you cant. People have put it in the suggestions for VS2005 final release, but remains doubtful whether it will happen or not. ...Show All
Visual Studio Team System Static Analyzer reports leaking memory in atldbcli.h, is there a workaround?
When I run the VC 2005 static analyzer in release mode with ATLdbcli.h included I get the following warning: c :\program files\microsoft visual studio 8\vc\atlmfc\include\atldbcli.h(4095) : warning C6211: Leaking memory 'pBinding' due to an exception. Consider using a local catch block to clean up memory: Lines: 4066, 4067, 4068, 4069, 4072, 4073, 4074, 4078, 4092, 4094, 4095 C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atldbcli.h(4065) : while compiling class template member function 'HRESULT ATL::CDynamicStringAccessorT<BaseType,OleDbType>::BindColumns(IUnknown *) throw()' with [ BaseType=WCHAR ...Show All
Software Development for Windows Vista How to get an IMoniker from an already instantiated IBaseFilter
Hi, does anybody know how to get an IMoniker from an already instantiated IBaseFilter Or, alternatively, how to get the DevicePath property of a WDM capture filter of which I "only" have the instantiation in the form of an IBaseFilter Thanks for any hints. Regards, Thomas I don't know how you might get it from an IBaseFilter, but you can use GraphEdit to view the moniker display names in the insert filter dialog. Just drill down into a filter and you will see the display name as the first line in the filter's information. If you are trying to persist a graph, I think the best you ca ...Show All
Visual C# where did NewConstraintAttribute get moved to?
I’m playing with TxRef, a Microsoft download. There is a call in the source code to System.Runtime.CompilerServices.NewConstraintAttribute but I can’t find it anywhere. Anyone know where it is these days There is an update to the code that eliminates any need for NewConstraintAttribute. Sorry to be talking to myself. ...Show All
Visual Studio VS 2005 Integration with MSBuild
Let me ask the question and then provide some background... How much can we customize an initially VS 2005 generated .csproj msbuild project file without "breaking" the VS 2005 <-> MSBuild integration Background... Forgive me if this this overly general question has been answered elsewhere, but I didn't see anything. I have just recently begun investigations related to migrating our existing NAnt build scripts to MSBuild for when we move to .NET 2.0. In our current system, we ask developers to maintain the .csproj files and the nant build files. However, only the nant build files are really important. Our bu ...Show All
