supagu'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 I have some more info based on testing. The first time I enter, the record is being inserted. It's second calls to the update (which should issue an update statement) that do nothing. If I call an existing record, I don't have any problem calling update() as many times as I want, and it will work ...Show All
.NET Development How to create a Web.Config
Hi, I'm a newbie to ASP.NET, I try to create a new propject in MS Web Development 2005 Express. All I did was just put in a "Hello World" in the Default.aspx.cs file at the Load_Page. I try to load it up to my web page and type in my home page name and this is the error I got: Please help if you can. Thanks Jason Server Error in '/' Application. Hi Computer Guy, Thanks for the reply, I changed the <customErrors> see below: < xml version="1.0" > - <!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list ...Show All
Visual Basic Need help with "Constant expression is required"
I'm trying to define an Enum containing integers that make up a colour scheme. My problem is to define the values of the integers. I dont know where to get the hexadecimal values for the colours and in any event would prefer to use the colour names and have the compiler insert the values. The following code is an extract of my code and the second line generates a compiler error stating "Constant expression is required" Enum Autumn As Integer PlotGridColour = Color.ForestGreen.ToArgb() PlotUpColour = &HFF00& PlotDownColour = &H60FF& End Enum To isolate the problem I tested the following statements; Private Const PlotGridColour As Integer = Color.ForestGreen.ToArgb() Dim P ...Show All
SQL Server Add a calculated measure to a Measure Group ??
I have created a calculated measure which is logically very much part of a specific measure group but I can't seem to work out how to add it to the measure group.. it just sits there as part of the general Measures. Can I specifiy in which Measures group it should reside This would also make more sense for managing Perspectives.. In the calculations tab, when you are defining the calculation, look on the toolbar for a button named "Calculation Properties". Click on that and it will open a dialog box that you can use to add either display folders or associated measure groups for each of your calculated members. Just add an associated measure group for the calculated member in question and it w ...Show All
Visual Basic Delta file copy - How
Hi, I have seen a lot of applications that can detect what part of a file has changed and can copy only that part to the file on a target server. i can not find anything my self so i am here. does anyone know how to or know a site explaining how do this in vb.net. This is a cool feature that i would love to add to an ftp app that i have written. Cheers Rich If the app you wrote is an FTP client, you just need to start the transfer where it left off (and the FTP server needs to support resume). See http://www.codeproject.com/internet/pauseresume.asp. I know the code there is C++ but the author gave the necessary steps to resume uploads and downloads. ...Show All
Visual Studio Team System Publishing unit test results without TFS
Hi, I want to publish some unit test results to a system testing team without the use of TFS. I've recently moved over from a java project were all junit test results were published to system test in a junit report. This is idea for my organisation. Here the system test team are totally separated from development so TFS is not an option, and they will only accept code into system test if similar junit style unit test reports can be provided ! I really don't want to have to use NAnt and NUnit2Report, so am hoping there’s another option... Here's a simple template that will display the results of the .trx file: < xml version = " 1.0 " encoding = " utf-8 " > < x ...Show All
Visual Studio 2008 (Pre-release) WSE to Indigo migration help needed
Hi, I am new to Indigo. I have a WSE 3.0 webservice which implements an Asynch Method (where the reply to address is different from the senders address). I need to upgrade my WS to Indigo and need code samples/documentation which will help me do that. My first question being does Indigo have a class similar to SoapSender in WSE Also my Existing webservice uses a policies (soapSender.SetPolicy) to communicate with other services, how are policies handled in Indigo These are probably very basic questions :) and any help given will be appreciated. Thanks, Firdosh Hi Firdosh, There are a number of documentation topics about this very subject. Here are some links: http://msdn2.microsof ...Show All
Visual Basic Parameters
How do I make a VB Program to use Parameters e.g I run test.exe -test1 It runs test1 I run test.exe -test2 It runs test2 etc. It doesn't matter, I found out how! I made a function that can do it Function ParameterTest() Dim cmd As String = Microsoft.VisualBasic.Command Select Case cmd.ToLower Case String .Empty MsgBox( "Empty String" ) Case test1 <Code in here> Case test2 <Code in here> Case Else MessageBox.Show(cmd) End Select Return 0 End Function ...Show All
Windows Forms PropertyGrid Commands pane
Hellow. I have some question abot PropertyGrid class. Please, look at this MSDN page: http://msdn2.microsoft.com/en-us/library/system.windows.forms.propertygrid.commandsvisibleifavailable.aspx What is this property about What is a PropertyGrid Commands pane How I can it use Thank you in advance. http://msdn2.microsoft.com/en-us/library/system.componentmodel.design.componentdesigner.verbs.aspx ...Show All
Visual Studio Express Editions Can any one give a way
Hi all I need help to read a word document.The problem is not to use a COM component or third party software. Can any one provide a solution for this regards keshav Dear ahmedilyas I will tell the actual problem.I want to read the word document and convert to xml is the main goal.We can do this by using Ms word COM object.I think there is definitely another way for doing this, without using COM component.I am looking for that.Can you figure out this. Regards keshav ...Show All
SQL Server Execute SQL Task speed
I've created a SSIS package, in a sql 2005 instance, that uses an Execute SQL Task" to call a stored proc as its last step. When run from BIDS, the last step takes about 2 to 3 minutes, consistently. When I run the exact same query from Management Studio (either via exec <spname> or by copying the sp's t-sql code into a query window) it consistently takes about 1 minute. I've run sevral test and these number are quite reproducible. Any ideas to account for the "slowness" of the Execute SQL Task TIA, Barkingdog The dropdown box at the top of BIDs says "Development" Here is what I have found. My package runs three control tasks. When I run all three, the Exec SQL tas ...Show All
Visual Studio Express Editions question about my threads
Hello. this may be an unusual question, but i was wondering if I can delete my threads, or do I use the unsubscribe button Its just that av got quite a few threads and all but this and my last thread have been answered and a thought it might free up some space in here by removing the threads thats been answered and finished with. Thank you. ...Show All
Windows Forms How to change cursor position bar size in text box?
My users are complaining that the flashing thin bar that indicates the cursor position inside a text box is hard to see. They ask if I can widen the bar. I imagine it has something to do with the font, but I cannot see where I can change this in the properties of the textbox. Is there a way to widen the cursor position bar inside the text box Thanks. I don't like posting C# code because the event handlers are initialized in the designer, not the source code. I created a custom control, derived from a TextBox. Add a new class to your project, then paste this code into it: using System; using System.Drawing; using System.Windows.Forms; using System.Runtime.InteropServices; public cla ...Show All
Commerce Server How to Extend Catalog schema
I want to implement Reviews mecanizm to my commerce site. I have done product grading by adding custom properties to my model product definition. The question is how to implement reviews storing with associating it with customer ID. Can somebody give me advice, How to do that Maciej, The quickest way is to use a join table in your product catalog database. There isn't a whole lot of information on making it work but the concept is basically a SQL join statement. Cheers, Colin ...Show All
SharePoint Products and Technologies Alerts not being sent
About a month back Sharepoint stopped sending alerts to subscribers. Notification is only sent when a new user is added. No other alerts are working for any of the Sharepoint sites on the server. I've searched pretty extensively for a solution and the closest I have come is: http://support.microsoft.com/kb/894632/en-us. But the kb solutions did not correct the problem. The SP installation is running on server 2003 sp1 and the SP version is 2.0 (version no. 11.0.6361.0 (sp1)). At this point I'm baffled but I really need to get this fixed. Any ideas or help is really appreciated. I remember Mike Walsh yammering on about this a while back in the newsgroups and he has graciously posted some info on his incred ...Show All
