Kelvin Lush's Q&A profile
.NET Development ASPNET Membership
Sorry - I posted a similar question in the VS General forum then thought this might be a better resource. I currently use a SQL server DB for a web app. I am re-writing in dotnet and would like to use the membership features of framework 2.0. I already have user tables, however and cannot find info on how to convert those users to the aspnet_Membership users. I tried to execute the aspnet_Membership_createUsers SP by setting up values for the parameters in query analyzer, but then passwords and such are not hashed or encrypted as they are if you add the users using the Create client interface. I am already storing the user id and pass ...Show All
Visual C# ComboBox - set selected index
Hi, I have populated a combobox with a dataadapter and set the DisplayMember and ValueMember as required. So, the conents are essentially: 1 Apple 2 Orange 3 Banana (Obviously, only the fruit names are visible in the combo) My problem is, that if I want to display a form with the combobox and set the selected index to the item which has fruit if # 2 (Orange). How do I determine which one I want. Do I have to loop over the contents and check the ValueMember value for item I suppose I could populate the combo without an adapter, but can I add both a valuemember and a displaymember that way Thanks, CW I actually do q ...Show All
SQL Server Accessing SQL Server remotely
Dear All, I have created a database on my SQL server, I want to access my database through C# .NET project . By just installing the software on the client side I would be able to access my SQL server remotely. On internet can i Do that Plz let me know any solution for this. Regards, Anil Dhiman DId I understand you right that you want to connect through the internet to your SQL Server Then you have to redirect/forward port 1433 of the connected internet gateway to the SQL Server that you have within your infrastructure. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
SQL Server beginner question - instances VS. separate databases?
Hi, I hope this is the right place to ask this question. I'm trying to get started programming databases against SQL Server Express. I'm pretty confident in understanding the techniques of how to access a database, a specific table, retrieve rows, etc. However, I’m having endless frustration in understanding the very rudimentary basics of how the SQL system even works. I know I don’t need this information to program against it on a simple level, but if I want to develop robust applications that I can distribute properly I need to know this, and it just seems so much more complicated than when I used MSDE. One of the book ...Show All
Windows Forms Security Exception introducting anything
I just installed the 1.2 client and created a new terrarium (Lab01) When I click on the Add button and try to click ok on any of the plants (or animals for that matter), I get a security exception. It also happens if I try to introduce the sample animal I just compiled. What is wrong. The excption stack trace follows... Thanks Bill <NewDataSet>   ...Show All
Visual Studio Express Editions Databases!!!
Hello, I have a problem trying to connect to an Access Database, the problem is that I want to make a working project without thecontrols, I only need the source code to do that. I would like to know about working with databases without using the bindingnavigator, how can i do that. I don't know, please help!!!:D I imagine the code in this article will cover what you want to know, there's lots of similar articles on that site as well: http://www.codeproject.com/vb/net/atcl.asp ...Show All
Visual Studio "Report is being generated" message not showing
I am retreiving data from Oracle and has about 10 parameters. The report renders ok, but there is no wait message and the nice little green swirl graphic! Any idea Also, how do I show the Print button I set it to true, both declaratively and programmatically to no avail. Thanks! There is a property called ReportViewer.ShowProgress which determines whether the green swirl is displayed. The Print button is not available in ASP.NET ReportViewer when in local mode. You can still print programmatically if you know which printer to print to. The print button is available in ASP.NET remote mode, or WinForms local and remot ...Show All
Visual C# richTextBox an html tags
Hi guys :) I am creating an application (SmtpClient with GUI) and i want to be able to preview what i have written so far, ok. Now, here is the part i am looking for advice on: This program is suposed to support html mails, so how can i preview html mails Please let me know how that is possible. Hi, This problem can be cleared from the Syncfusion's HTMLUI control. You can render the HTML available easily in the control and it is very efficient too. Try it you will be satisified. Bye, Nanda. ...Show All
.NET Development Parameters in a sql statement
I am creating a simple sql statement that returns all from the table that is equal to Comp_UserID. The problem I am having is that I want to pass in the Comp_UserID as a variable. I am not sure of how sql parameters work, i have tryed searching the msdn network but I can see nothing for begineers so if anybody has any useful links that would be great. Below is the code I am using. //This is statement works correctly SqlDataSource1.SelectCommand = "SELECT * FROM ApprovedComponents WHERE Comp_UserID = 61" ; //Now I tryed inserting the variable like I would pass a variable to a function but it does not work, int ...Show All
Visual Studio 2008 (Pre-release) using 32bit and 64bit dll..
We have a plan to upgrade our APP for Vista. And I have a some of question about it. some of DLL or Com are still made with 32bit. I want to use thouse. So my question is Can I use 32 bit and 64 bit DLLs or Coms, in same 64bit APP This is not an Avalon-specific question. In general: Most existing 32-bit apps should run just fine in WOW on x64 Windows. 32-bit DLLs cannot be loaded in a 64-bit process. A 64-bit process can talk to a 32-bit COM LocalServer. (This may be the easier way to reuse your existing COM components--out of process.) Managed code is usually compiled to platform-independent IL, so the process ...Show All
Visual C# Starting a console?
Hi, I've got a console-based project, which contains a class like so: using System; using System.Collections.Generic; using System.Text; namespace vm { public class clsVirtualMachine { public void Execute( string Code) { Console .WriteLine(Code); } } } Part of the same solution I also have a testbed project, which consists of a form, a textbox and a button. Then the button is clicked the following happens: using vm; (....) private void cmdRun_Click( object sender, EventArgs e) { // New instance of code runner clsVirtualMachine TheVM = new clsVirtualMachine (); MessageBox .Show(txtCode.Text); TheVM.Execute ...Show All
Visual Studio Express Editions Visual Basic Problems Using DirectX 8.0
ok, What I really would like is to download visual basic 6.0, but I cant find anywhere to do that.. My problem with visual Basic express edition, is I cant seem to get my reference to Directx 8 to work, I have reinstalled directx 8 and VB but it still wont work for me, any ideas> I am programming in BASIC and am very new at it... if anybody could help me I'd be very thankfull, you can contact me by emailing me at Lukeskiwalker@bellsouth.net , or posting here... Thank you very much, Wesly OK VB6 is not available to download. Its an old product which is probably 8 years old and was rep ...Show All
Visual C++ Linking: libcimtd.lib requested
Hello, after conversion of a VS6 project to a VS2005 project, the linking broke down with a fatal error as some "libcimtd.lib" was not found. libcimtd.lib is no part of VC/lib (but libci, libcmtd are). After including libcimtd in the list of libraries which are ignored at linking, everything worked. Cheers Michael Mixing C and C++ I/O should not be a problem. It is mixing old VC6 iostream headers and new stream headers from Standard C++ library creates a problem. At least this is what I think the problem is looking into list of errors you mentioned. Try to grep for anything like #include <*stre ...Show All
Visual C# How to generate Dynamic the HTML Controls?
hi! how to add the dynamic COntrols in CLient Side for the ASP.NEt. There is no Problem in creating the server Side controls by dynamically adding the controls to the Panel. The main aim in creating the web HTML CLient is Validating the Created controls which can also be done in server side ,but the View State and the values of the control should be maintained (i.e) when the server side call is made, the values in the controls cant be maintained as a lot of controls will be maintained. One way of Creating ASP.NET HTML Client Side Scripting , can be created using the String builder, ...Show All
Visual C# generics constraints for types implementing operators
I'm trying to build a class public class SignalBuffer<T> where T is any type that implements the + and the * operator (mostly double or my own complex number type ) How can I add a constraint to SignalBuffer that constrains T to types implementing these two operators I tried just using public class SignalBuffer<T> where T : double, Complex but of course this won't compile because you can't use double in a constraint Another thing I don't understand is why it is possible to make generic methods like this public myType myMethod<T> ( T var1, T var2 ) but not generic operator overloads ...Show All
