dayjur's Q&A profile
Visual C# from dataTable to database
hi! is it possible to do a select command on a dataTable after selecting can i insert it into a database if it is, how could this be done not entirely. you can go through the specific rows you are after and then insert the data you want from the current row cells' so for each datarow there is in the datatable, and for each datacolumn in the current row, get the data, then after this row has been complete, insert into the database. is this datatable manually created or have you used a dataAdapter to fill the dataset / datatable ...Show All
.NET Development IIS defult configure
Hi, I am a ASP.Net user, and with all of my stupidity I tried to change the IIS configre, didnt backed it up and now I cant find the "Defult" butten, I tried to remove it and add it again but it didnt restarted it. What shot i do Thank you all, Nadav Levintov. Not sure if this is going to be helpful but the only way I can think of to completely revert to a default installation is to.... Uninstall IIS Delete the file %SystemRoot%\System32\Inetsrv\Metabase.bin ...(and Metabase.Xml for IIS6) Reinstall IIS I know it sounds drastic, i hope it's only on your dev box... maybe someone else has a beter idea I don't know ...Show All
Visual Studio Team System UPDATE - RTM Download for Team Suite Subscribers
From Gert's blog- The trial edition image can be downloaded from http://download.microsoft.com/download/f/7/6/f76437c4-6e3d-4618-94c9-3bff8141bee0/VSTSDBTR.img The full product download on MSDN is a full image only, so 2.9 GB or so, if you already own Visual Studio Team Suite, you can simply download the trial SKU (which is only 20MB) and install this on top of your Team Suite instance. The installer will detect that you have a full license instead of a trial license and do the right thing. One correction, I believe the full image (not trial) is 3,8 Gigs. Be aware that there may be an issue when installing with a localised OS (i.e. German OS). See http://forums.microsoft.com/MSDN/ShowPost ...Show All
Visual Studio Crystal Report and Page Width Zoom... How?
Hi, i'm developing an application Windows Forms + C# + VS2005. I'm using Crystal Reports to develop my reports. I want set zoom (Page Width) on my ReportViewer an runtime, but i don't know how. To set zoom, is very eazy, like this: rptViewer.Zoom(100), but i don't know how to set Page Width zoom. Somebody knows Thanks. rptViewer.ReportSource = rpt; rptViewer.Zoom(1); // Page Width rptViewer.Zoom(2); // Whole Page ...Show All
Visual C++ Return to the "Start" of a console program. Question from a beginner.
Hi, I'm new in C++ and I really need some help. I made a small console program that asks for two numbers. These numbers will be added together and the user will see the result. It looks like this: Please add number: Please add second number: Result: a+b=c That part was the easy. Before "return 0;" I put "system ("pause");". This so that the console window doesn't close before the user can see anything. Now I would like to add a question for the user if he wants to continue calculating two numbers. If YES the program should start over again. If possible with a cleared screen. If NO a message "thank you" should appear and then the window should close. I have tried to use " ...Show All
Visual Studio Express Editions form show and close problem
hi all..... i create a dialog form for user to select a service type......and i want to show the selected form and close the dialog form once the user select a service type and click on OK button......but my problem here is once the OK button is clicked, it will show the new selected form and close it immediately......may i know what is the problem , below is my code..... If rbInventory.Checked = True Then frmNewInventoryItem.Show() ElseIf rbService.Checked = True Then frmNewServiceItem.Show() ElseIf rbKit.Checked = True Then frmNewKitItem.Show() End If Me.Close() so can anyone tell me what is the cause of this problem... thanks Well whats happe ...Show All
Visual Studio Will MSBuild.exe reurns any error code
In a batch file I want to call MSBuild.exe . Is there any way to check whether the MSBuild succeeded or not Will it return any error code if it fails if so how to access that errorcode. Please help. ...Show All
Visual Studio 2008 (Pre-release) Custom Panel Layouts & ItemsControls
I have built a custom panel that arranges its elements in a way that keeps the currently selected element centered. I have been maintaining selection state within the panel so that as the user hits the up or down key the panel calls its ArrangeOverride and updates the centered item. Up until this point I have been using simple objects for the contents of the panel's InternalChildren collection, such as an Image. Now I would like to use a more complex object, such as an object that consists of an Image and a TextBlock. Furthermore, I would like this complex object to respond to an "IsSelected" trigger so that the TextBlock is either hidden or visible. I have attempted handle this trigger problem via DataTemplate for my complex ob ...Show All
SQL Server Cannot find my SQL Server
I have installed SQL Express in my server with SQL Browser enabled. I also added an exception to the window firewall to port 1433. My client application is installed in another machine on the same workgroup. But I cannot see the SQL Express unless I disabled the server's firewall. Without disabling the firewall, what else should I do Thanks I have done the following, but still cannot find my SQL Server 2005 Express installed on WinXP Prof.(SP2) server, My server only has one instance named "AppDefault" Enable local and remote connections(in Surface Area Configuration for Services and Connections) on the instance of SQL Server that I want to connect to. Turn on the SQL Server Browser serv ...Show All
SQL Server what errors normally should i log for my SSIS package?
I got an SSIS package that first "truncate the product table" then populate the table with new rows....if there is an error then i will invoke the send email task. However in the "truncate the product table" task, the sql i put "truncate dbo.product" instead of "truncate table dbo.product" but this error is not captured in the text file that I m going to send an email to the appropriate personnel. Under logging, and when i go into "truncate product table" tasks , "Details", i saw "OnError", "OnWarning" and other error handlers...which should i tick in order for the text file to ONLY show errors I encounteered during the running of the SSIS packa ...Show All
Software Development for Windows Vista get ip of remote pc
Hello Everbody I have a problem in getting ip address of the remote pc i m connected with that pc through dial up connection that is throught the API RasDial() which is the part of ras32.ll As u know in dial up connection there is a phone line so i dial a phone number and through PPP we are able to get the ip address Now the thing is i want to know the ip address to which i am connected with. I hope u got my problem 1) Connect to remote pc throught dial up i.e. PPP come 2) i m getting my ip that happens through negotiation betn 2 pc 3) i want to know the ip of remote pc Where are you calling RasDial() from If you're calling this from a Windows CE device, please repost your question in the Smart ...Show All
Windows Live Developer Forums VE in XAML application
I am trying to embed VE in a WPF application (XAML). From this forum, I have learned how to embed VE as a web browser control in a WinForms app, and then load a .js script into the webrowser and talk to the script methods inside (I don't like kludges like this, but then that is what I get for trying wacky things). But ( VS-Studio, Sparkle (interactive designer)) do not allow web browser controls to be placed in XAML pages. So I am stuck as to do do this. Hmm, hmmm, not using winforms, but now coming around with python *** is a bit like 'i decided to not use virtual earth, but google maps, but i still ask in this microsoft forum how it can be done' ...Show All
Windows Forms Problem with WindowHandle
Hello, I found the below code on the internet, I want to use this to hide my notepad, Well, the hide part works very well, but to restore it doesnt work.. Now i tried separate numbers but none of them worked. So i would like to ask, does somebody know a way to fix this Or do this otherwise using System.Runtime.InteropServices; using System.Diagnostics; namespace WindowsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private const int SW_HIDE = 0; private const int SW_RESTORE = 9; private int hWnd; [ DllImport ( "User32" )] private static extern int ShowWindow( int hwnd, int nCmdShow); ...Show All
SQL Server SQL Agent Failing when trying to run my SSIS Package
I found a similar thread posted under the same title as this by dba123. Unfortunately, his solution does not match my problem. I have a SSIS package that will run fine in debug mode, will run fine when published to the server when I right click and execute it. However, when I run it through a job, either scheduled or running the job manually, the job fails. There is an entry in the servers application log telling me that "login failed for user xxxxx" where xxxxx is the name of SQL login that I am using. I know that the login works (logged in manually to the server via management studio, and it runs fine when I run it manually). Both connection managers are SQL, no flat files or other data source types. All the commands are T-S ...Show All
Visual Basic Line separation
I would like to write a file's content to a textbox which is multilined. I loaded the file but I don't know how to write lineseparator. Try Dim sr As StreamReader = New StreamReader("D:\\a.txt") Dim line As String TextBox1.Text = "" Do line = sr.ReadLine() If (line IsNot Nothing) Then TextBox1.Text = TextBox1.Text & "\n" & line End If Loop Until line Is Nothing sr.Close() Catch Err As Exception Console.WriteLine("The file could not be read:") Console.WriteLine(Err.Message) End Try It wrote xyz\nxyz. It would be good if it write:xyz xyz Thank you in advance. Adam Yes, Spotty's answer works but it doesn't tell ...Show All
