Software Development Network Logo
  • Smart Devicet
  • Visual C++
  • Visual Studio
  • Game Technologies
  • SQL Server
  • Windows Vista
  • Visual FoxPro
  • SharePoint Products
  • VS Team System
  • Microsoft ISV
  • Audio and Video
  • Windows Forms
  • .NET Development
  • IE Development
  • Visual Basic

Software Development Network >> tommazzo's Q&A profile

tommazzo

Member List

Sarguna
SeanMSDN
Alexander Marinov
ReneeC
ekb0211
Hooper
onkel elton
M. Abraham
Trish
Luis Simões
Xefan
ChiragKhabaria
Ted Dawson
2162
dnetmgr
Steven Wilmot
Mr. Scott X
CaroNZ
DINESH CHAUDHARI
LeeC22
Only Title

tommazzo's Q&A profile

  • .NET Development Dataset Update

    I have a dataset, and a save button that issues an update: myDataAdapter(myDataSet).Update() This works fine the first time the button is clicked. However, it I make changes to the record then click it a second time, it does not save the record. Is there another command/code i should be entering after the first update How are you changing your rows Sometimes an EndEdit() or EndCurrentEdit() need to be done to commit the changes to the DataRow. I bet that this is all you're missing. Also, Paul, an AcceptChanges() is not needed when using the DataAdapter.Update() method (the Update method does this automatically). ...Show All

  • SQL Server ReportViewer error "Page navigation is out of range"

    I am embedding the ReportViewer in an aspx page and the report comes up fine, but when I press the "Next Page" or "Last Page" buttons, I get the error: "Page navigation is out of range". The application has session state turned off. The problem occurs whether or not the viewstate for ReportViewer is turned on or off. How can I fix this problem Perfect. You made my day. Thanx. ...Show All

  • Visual C# How to read tags from XML and extract value.??

    I want to search an XML file for specific tags, and take whats inside and push it to a database. for example: <connections> <title id=1>Connection1</title> <port id=1>3500</port> </connections> I figured out to use StreamReader and read the whole file; ReadToEnd(), and use if( str.Contains("<title id=1>") && str.Contains("</title>") { take what's in between } My question is how to take what's in between Hi, a simple way to read this is to load the Xml into an XmlDocument i.e. XmlDocument xmlDoc = new XmlDocument(); xmlDoc.LoadXml("<connections><title id=\"1\">..... ...Show All

  • Visual Studio MissingReportSourceException NullReferenceException

    "MissingReportSourceException means that you have not yet supplied a definition for the report, so the report viewer can't validate parameters. Make sure you have set ReportViewer.ServerReport.ReportPath before calling SetParameters(). " How do you set the path or set the definition tried " reportViewer1.LocalReport.ReportPath.Equals new ( "TicketPrintLayout.rdlc" ); " and it gave me a null reference exception, so what do I do ...Show All

  • Visual Basic Importing the values of a datarow from a database into a variable

    Hi I am currently designing an VisualBasic (I use Express Edition) application that needs to perform calculations with data from a SQL-database. I'd like to know if anyone knows how to import the values from a datarow into the values of variables Is it possible Regards Johannes If your simply asking how you can get the values out of a data row and into some other data stucture Class form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim x As New DataTable x.Columns.Add("Col1") x.Columns.Add("Col2") x.Columns.Add("Col3") x.Columns.Add("Col4") x.Columns.Add("Col5") x.Ro ...Show All

  • SQL Server Issues with database.dbo.tablename usage

    Hello, Can you guys think of all the possible reason why you wouldn't want 2 databases to cross reference each other using - database.dbo.tablename I can see one reason...Developers are going to go gagas using database.dbo.tablename for cross database updates/inserts etc. This will mean that the databases cannot scale anymore. What else Security issues, additional keystrokes required to use four part names, etc. I can also think of many equally valid reasons to separate data between different databases. Security issues, Backup/Restore Issues, etc. Saving Developers 'keystrokes' is a trivial concern and should be ignored. Make the decision based upon 'real' organizational needs and requirements. Wit ...Show All

  • SQL Server Looking for table / view that will tell me if I need to reinitialize subscription

    I have kind of unique situation. I am running Merge replication. In one of my publications I am only publishing procedures/functions/views. By design, these do not change that often, but when a programmability object changes, it is scripted in a way so that: 1. The article is dropped from the publication 2. the object is then changed 3. The article is added back to the publication My question is: Is there a table or view that the subscriber or publisher can see that could tell me if reinitialization needs to occur. I am looking at adding an automated script at the subscriber that makes the determiniation and automatically reinitializes the subscription. My alternative is to force the subscriber to reinitialize every time w ...Show All

  • Visual C# recursive locked methods

    is it ok to do stuff like this - will var locker be unlocked before Method() is called from the inside of the Method() private void Method() {   lock (locker)   {     // do some stuff     // ...     // ...     // ...          if (testVar = someVar)     {     Method();     }   } } Hi, "lock" is for multithreading issues, When you "lock" some object then EXCEPT the thread which has aquired lock on the object, NO OTHER thread will be able to aquire lock on that object TILL first thread release the lock. ...Show All

  • Software Development for Windows Vista No uninstall option in Control Panel->Installed Programs

    Hi, if I go to Control Panel->Software->Installed Software all programs installed before the Windows Vista upgrade can't be rightclicked so they can't be uninstalled. I tried the third-party uninstallation tool "add remove pro" but those old programs don't even show up on the list. How can I uninstall programs now of which I don't know the setup path or the uninstall program With kind regards Johannes This is the procedure I used to uninstall Windows Vista on a clean install How do you perform a reinstallation of Windows XP, sometimes called a repair installation Boot Your computer and as it's starting to boot press the delete key to get in setup In the choices to boot ...Show All

  • Smart Device Development Soft-reset on a WM2005 device removes registry entries created by cabinet files

    A soft-reset on a WM2005 device removes registry entries which where created by cabinet files... Why How to avoid this xxxx behaviour! The same applications / CABs worked on PPC2002 and WM2003... Regards, hfrmobile WM 5.0 uses flash for storage, it takes some time to flush changes from RAM to flash. Make sure to wait a while before resetting device after making changes to the registry. ...Show All

  • Visual C# AppSetting explanation

    I still can’t understand how the AppSetting and the ConfigurationManager works in Windows Application (C#) and would like to know the following Where dose the AppSetting keys get saved Is it in the app.config I can’t see anything!! Is it secure to save password as AppSetting Where can I go and change the setting manually Any specific file If you use the ConfigurationManager class, the application settings will be saved in either a file named "<exename>.exe.config" (default behavior) or a file name that you give it. I always use the default. When you save the config file it will appear in the same folder as the exe. If you're debugging, it is named "<exename>.exe.v ...Show All

  • Windows Forms Where are DialogKeys processed in Designer?

    I want to be able to move the controls around in the desgner by pressing the arrow keys but I can't find where the ProcessDialogKey is being fired. Is it in a service somewhere I don't know about Ken I thought about this some and I think that I might not have had enought information in my original post and got you off track, or you are still thinking about that vacation. You said that "someone has to fire the event" and in your original post that "VS" routes the command to the window. I'm assuming here that VS is Visual Studio I'm not using visual studio, I'm using my own custom designer. Considering the comment about the event, who actually does fire it I'm thinking ...Show All

  • .NET Development FTP upload file

    Hi, I am uploading file to FTP server. But before upload the file I want to check the existance of the file. How do I check the file on FTP server FtpWebRequest request = null ; FtpWebResponse response = null ; try { request = ( FtpWebRequest ) FtpWebRequest .Create( new Uri (FtpAddress)); request.Method = WebRequestMethods . Ftp .UploadFile; request.Credentials = new NetworkCredential (FtpUserName, FtpPassword); request.Timeout = FtpRequestTimeout; Stream requestStream; byte [] buf; int i; requestStream = request.GetRequestStream(); buf = new byte [source.Length]; resetStream(source); while ((i = source.Read(buf, 0, buf.Length)) > 0) { requestStream.Wr ...Show All

  • Smart Device Development Install .NET Compact Framework in my WM 5.0 emulator

    Hi everybody, I have installed: 1.- Windows Mobile 2005 SDK 2.- Windows Mobile 2005 Emulator Images I can connect with de emulator but when I try to deploy an application the emulator says: .NET Compact Framework v2.0 couldn’t be found. Please install it and run this setup again I have downloaded .NETCFSetupv2.msi from www.microsoft.com . They says that the instalation contains a .cab file for Pocket Pc. I can’t install NETCFSetupv2.msi in my desktop because it’s installed in my dekstop yet. How can I install .net Compact Framework in my emulator to run apps Thank you If you have VS 2005 installed and are developing the app then just connect to the device in VS and deploy it. Make sure yo ...Show All

  • Smart Device Development EVC++ 4.0 : float to string conversion unicode problem?

    hi everyone, i'm new to win32 programming , especially for smart devices. i'm developping an application and i need to show some float variables in edit boxes. so first i need to convert them to strings. here is the code i use:       LPTSTR buff = new TCHAR[256+1];       sprintf((char*)buff,"%g", x_coord);       SetDlgItemText(hDlg, IDC_XCOORD, buff);       delete[] buff;   someone told me to use _stprintfl_s instead of sprintf but it seems that is not supported by evc++ 4 i tried to include several files that i read in msdn but with no luck.. so to be quick , with this code i get as output those st ...Show All

©2008 Software Development Network