Kirk Rader's Q&A profile
.NET Development Encrypting sections of Web.Config
I have a websever running IIs 6.0 and the .Net 2.0 framework. I'm trying to encrypt sections of a web.config file on one of the websites that I host on this server. I have about 20 different websites each with their own IP address. From several MSDN docs and posts here and there I've learned that I can use the aspnet_regiis command to encrypt certain sections of my web.config. I'd like to encrypt the sections that contain passwords - such as ...Show All
Visual C# C++ #define equivalent
Is there a C# equivalent to using #define in c++ I know I can use enumerations for integer constants that I need, and I assume the actual enumeration wont be compiled and stored in my app, but what about floating point constants what about const float First = 1.0f; const float Second = 2.0f; ...Show All
Visual FoxPro pulling data from one field and making a new column out of it
Hi all!!! I have two fields, work_id and sp_id. All sp_id's are related to the work_id's ie. work_id sp_id 1 000 3 000 3 111 5 111 9 000 9 111 i need the data to be listed by the work_id, then in another colum have it state whether it is one sp_id, the other sp_id or both sp_id work_id sp_id 1 000 3 both 5 111 9 both any insight life is short ...Show All
Visual Studio Tools for Office VSTO2005 vs. VS2005Prof
Hi All! I'm going to purchase VSTO2005. But before doing so, I would like to get a bit more informtion about it. I have 3 questions. If you have experiences and have time to answer, please do! THANKS A LOT in advance! 1. Can I develop and deploy Windows Form application with VB in this edition (VSTO2005) as I could with VS2005 Prof Are there any differencies (The compare product edition for VS2005 webpage ( http://msdn.microsoft.com/vstudi ...Show All
Windows Forms Terrarium Help.
Hi, I need help. I am a newbe to terrarium and it looks interesting. But All what I can read on the internet concerning Terrarium looks a long time ago. No recent post I mean, or at the farm... or I look at the wrong place. (Where is everybody ) I see 10 peers, All LED's are green, but I never receive a creature from other peers. I can't introduce my own creatur ...Show All
Visual C# some questions about treeview!!
I am trying to make a directory tree in c# using a tree view.And i want the node to expand only when any node is double clicked.For doubleclick event i used the following code: this.treeView1.DoubleClick +=new System.EventHandler(treeView1_DoubleClick); private void treeView1_DoubleClick(object sender, EventArgs e){ if (treeView1.SelectedNode !=null){ //expand the selected node } } but the problem is this event works if i ...Show All
Visual C++ About the extension of properties file
Hi All, I am a beginner in VC++ and I would like to ask a question here. As I had migrated a VC++ project from VC6 to VC7. The program can be built successfully but the program fails to execute. The logic of the program requires to load a properties file and perform some library initialization. (e.g. abc.properties). The program fails to run because the program has some memory allocation problem when I execute it in debug mode. However, when ...Show All
Windows Forms Error after debug on one computer
Hi there, I have made a windows application in vb.net and now I have an problem. When I run the app. on my machine everything goes fine. When I run it on my laptop everthings fine, but when I run it on the computer from my boss we get an error "cannot convert varchar 'T' to int" the strange thing is that it's not an error of my "try catch" because there is no title bar in the error window, something i did program in my ...Show All
SQL Server EXEC Strangeness
Hi all, I would be very grateful if anyone can detect the problem with the following code. I have indicated the offending line. Basically if I hardcode in @BelegId, it runs with no problems. Declare @SQL VarChar(1000) Declare @TableName VarChar(1000) Declare @Result Varchar(50) Declare @BelegId int Set @BelegId=447 Set @ObjName='s_jps.ap_gr' if (object_id (N'tempdb..#tempt') is not null) drop table #tempt; create table #TempT (result varchar(100 ...Show All
Windows Forms Master/Detail Multiple rows?
Is there any way when making a master/details Windows form that you can make it so that you're able to select multiple rows in the parent and have the child form display the results for each of the rows selected I'm having trouble getting this to work. I have a simple master details form working fine, but I need th ...Show All
.NET Development Console.writeline() will not write to a ASP.NET page, Framework 2.0
Thought for sure that I have done this in Framework 1.1, but will not work with 2.0 The problem is simply writting to the web page console, can not seem to get the Console.Writeline function to work.... Tried setting the Console.Setout() but still no success. No error messages just nothing displayed from the Console.Writeline function. MSDN documents the issue if the default output is not the console, nothing is displayed. Any help app ...Show All
Visual C++ What API to use to parse file names in a given directory
Hi, Long time back I had used this windows API. What this API did was input = pointer to a directory Then you called it in a while loop and it returned the file names(full path) in that directory one by one. You had the option of doing this recursivley also. You could give wild cards like *, etc.. In other words it just imitates dir /s command and I want to do it programmatically. If some kind soul could please point me to the API I wou ...Show All
SQL Server Reportviewer web control and Pagination
Does the ReportViewer web control handle pagination if the page breaks are setup for a long report I'm trying to decide between using reportviewer control or reporting services 2005, and need to know if performance issues for large reports- such as pagination - need to be handled via custom code if using the Reportviewer control. We plan to render the report using HTML. Thanks, JGP ...Show All
.NET Development NTDLL.DLL deadlock in recvfrom udp
Hi Friends,I am working on UDP based multiplayer network game engine. The problem is very complicated because there is nothing wrong with my code no warnings and no errors,1. when ever i send information from server's sendto function it reaches to clients recvfrom2. but after receiving some data Program Hangs Because of Deadlock in NTDLL.DLL.I have tryed lot to google it but end up with some results regarding "you have to install Service ...Show All
Visual C# DataGridView control with databound and non-databound columns
I am trying to use a datagridview control to display images associated with a given record + some text about the image. The data table contains the text, technical info and the location of the image file. (I considered storing it in the database but it is stored as a byte[] meaning that databinding it to an image column does not work anyway. My datagridview has the text and image location and bound columns (the image location is hidden) an ...Show All
