Mr-T's Q&A profile
.NET Development ObjectDataSource and instance methods
Hello, I have a gridview and a objectdataSource associated to it. Here is the scenario I'd like to perform: Create an object (let's call it C) to store the infos of 1 line of GridView with a Save method in it Display the data in my gridview (data coming from a dataset or a list, I don't care) For the ObjectDataSource, give my Save method (which is an instance method) as the Update method. As far as I have seen, this doesn't work because the ObjectDataSource creates a new instance ofm y object by reflection but I may be wrong. Is there a way of doing this scenario Thanks, It sounds like you are trying to display ...Show All
Visual Studio Express Editions Database Creation thru C# IDE
Why is it that when I right click Data Base Explorer from the C# IDE, the "Create New SQL Server Database" is greyed out I am logged in thru an account with administrative priveledges. I can create a database thru the command line utilities and then attach it via Database Explorer but I can't create the database directly thru the explorer. Go to the solution view and add a new item to the project, from there you should be able to add the new database file. ...Show All
Windows Forms Validation & Tab Control
I have a custom control in which I want to perform some data validation in the OnValidating event. If the data is invalid, the control sets the CancelEventArgs's Cancel property to true to reset the focus back to the control. This all works fine until I host this control on a tab page. If the user enters invalid data into the control then dir ...Show All
Windows Forms DataGridViewComboBoxColumn Selection is not retained
Hi, I created a DatagridView and added two columns to it. One of them being a ComboBox Column. After running the form, I click on combobox, select some different value and leave the cell. At this point, the value I selected is getting lost and it reverts back to its original state. If someone has made samples on how to use the different column types, can you please put them on the net or mail it to me Thanks, Kunal I have found the solution to your problem after 2 days of agony here is the link to my post: http://www.vbcity.com/forums/topic.asp tid=144983 good luck ...Show All
SQL Server Missing SqlContext.GetCommand() in new namespace
I'm just starting with using the SQLCLR features in SSX, and I'm following the most recent Beta 2 MSDN docs. I created an SQL Server project and made a simple stored procedure method, and the problem now is the docs refer to SqlContext.GetCommand( ) inside the stored procedure method to return an SqlCommand object, but this method does not exist. I did some searches and noticed that the MSDN docs still refer to the old System.Data.SqlServer namespace where it has been replaced by Microsoft.SqlServer.Server in Beta 2. Pablo Castro (PM at MS) wrote a MSDN article about it here . A couple of blogs that cover ...Show All
Visual Basic Give Me A Liitle Help Here Please.
Hi i have recently switched from VB 2005 express edition BETA 2 to VB2005 express edition no BETA 2 or what ever that junk was about. but any whoo i get a error message saying that my designer view can not be opened because the compiler is not intact i have been unistalling and reinstalling this framwork 1.1, 2.0, and the new SQL server stuff along with the new VB and all that good stuff but it still wont work VB is my job and right now i dont have a job since VB isnt working please Help. the message only pops up when trying to view designer mode but the code view is fine i can debugg and all i write a code hit debugg and it works but th ...Show All
Visual Basic Creating an External Resource DLL
Hello, I am new to these forums and somewhat new to Visual Basic .NET. Here's basically what I want to do: I have a lot of graphic images for my application, including icons and png files. I want to store these files in an external DLL so my application can load faster. As it is, I just have these resource files in the same project as the main EXE file. How do I put these images into an external DLL project and then reference them in my main application Thanks in advance for the help! You are basically on the right track. However, you should aware there are two ways to embed a bitmap to an assembly, and the way to extract t ...Show All
Visual Studio Install VS and VS.NET on the same pc
Hi, Can I install Visual Studio and Visual Studio.NET on the same PC , Is there any known problems or conflicts Thanks, They are designed to work side by side so yes, you can install them on the same machine. ...Show All
Windows Forms Additional whitespaces during insert
Hi, I'm using databinding with a MSDE database. When I update values from a dataset to database, additional whitespaces are added to the values. In fact, if a varchar column length is set to 10, there are (10-length(myValue)) whitespaces added. Does someone have an idea Thanks Please post ADO.NET specific questions to the .NET Framework Data Access and Storage Forum. Thank you, Joe ...Show All
SQL Server Bug cannot export/import any dts package on sql 2000 from 2005 manag. studio
I am connectd to a 2000 database and select import and try to generate a dts to pull in a flat file... the destination is also a 2000 database.. I used to do this using enterprise manager.. Nothing works you get the error: The operation could not be completed. The existsonsqlserver mthod has encountered an ole db error code 0x80004005 (client unable to esablish connection) the sql statement issued has failed. I can connect fine an open query windows and look at all the tables etc... You can file bugs here: http://lab.msdn.microsoft.com/productfeedback/default.aspx Thanks ...Show All
SQL Server Problem in VB6 application with SQL Server 2005
I have got a VB6 application where I update local SQL server table from MS Access table with code like that: ---------------------------------------------------------------------------------------------------------------- Dim rst As ADODB.Recordset Set rst = New ADODB.Recordset rst.Open "SELECT * FROM Table1 WHERE [Fld1]=" & v1, Cn, adOpenKeyset, adLockOptimistic 'check if exist if not exist create new If rst.EOF Then rst.AddNew rst("Fld1") = v1 rst("Fld2") = v2 rst.Update End If rst.Close ------------------------------------------------------------------------------ ...Show All
.NET Development Route add with C#
Hi, i need to add a persistent route to route table of os with c# and controlling if it's present, simply like command: "route -p add xxx.xxx.xxx.xxx mask 255.255.0.0 xxx.xxx.xxx.xxx". How i can add a persistent route with c# Thanx Use this code to add route: using System.Diagnostics; Process p = new Process (); p.StartInfo.UseShellExecute = false ; p.StartInfo.FileName = "route" ; p.StartInfo.Arguments = "-p add " +ip+ " mask 255.255.0.0 " +ip2; p.StartInfo.RedirectStandardOutput = true ; p.StartInfo.StandardOutputEncoding = Encod ...Show All
Windows Forms Can one use an image for the actual control?
Hi. This might be a simple task for the pros but I'm far from that! Anyway, I would like to create controls such as knobs or switches etc. for my user interface. Say I want to duplicate a home stereo face or whatever. I would like to have a knob image from an actual photo then make this image rotate with adjustments an ...Show All
SQL Server SSRS & multiple datasources
Hi: SSRS is set up on it's own server, I'm writing reports using a DB on a different server. I'm wanting to use tables from both servers in the one DataSet, but I can't see how this is done. For Example: dbOne has tables db1One, db1Two and dbTwo has tables db2One; I want to create a dataset that uses all three tables. But when I try to 'Add Table' in the Data tab of the Report Designer only the tables from the one datasource are listed. Can someone please give me a clue Thanks One solution that u cam try is that, export all ur tables to only one server database & then create dat ...Show All
Visual Studio Team System Team Foundation Server MSSCCI Provider Beta 2 Now Available (Feb 20, 20006)
The Team Foundation Server MSSCCI Provider Beta 2 is now available here . IMPORTANT: Beta 2 is not strongly signed, so you'll need to disable strong name validation as mentioned in the README. You can find details at http://blogs.msdn.com/buckh/archive/2006/02/21/536260.aspx . New in this beta: Support for Visual Studio 2003 and Fox Pro in addition to the already supported VB6 and VC6. Integrated Checkin - you can now associate/resolve bugs and specify checkin notes with your checkin Improved performance - opening controlled solutions, get, checkout, checkin, and compare/diff are much faster M ...Show All
