DineshB's Q&A profile
Windows Live Developer Forums How to customize the pushpin popup window
Im a newb on this stuff I'm trying to convert a VEMaps program from version 2 to the latest. The problem I'm having is trying to manipulate the overall look of the popup window that comes up when you roll your mouse over a pin. In version 2 the developer used the innerHTML parameter of the AddPushpin method to add custom javascript code that would popup a custom window.. is there an easy way to do that in the latest version.. Version 2 AddPushpin method: AddPushpin(id,lat,lon,width,height,className,innerHtml,zIndex) Any help would be great Thanks Kirk Kirk, You should be able to do the same functionality as V2 control. The constructor for creating a pushpin is: var x = new VEPushpin( id , location , i ...Show All
SQL Server Removing identity column
We can easily remove identity columnn through enterprise manager but how can it be done through transact sql The only way i found is to create a new column and pass values if identity column in it and then remove this identity column is there any better method of doing it Open up the Northwind DB an select identity NO for the OrderID The script that Enterprise Manager creates is this (Click on the 3rd Icon from the left, left side of the scissors) BEGIN TRANSACTION SET QUOTED_IDENTIFIER ON SET TRANSACTION ISOLATION LEVEL SERIALIZABLE SET ARITHABORT ON SET NUMERIC_ROUNDABORT OFF SET CONCAT_NULL_YIELDS_NULL ON SET ANSI_NULLS ON SET ANSI_PADDING ON SET ANSI_WARNINGS ON COMMIT BEGIN TRANSACTION ALTER TABLE dbo.Orders D ...Show All
SQL Server I made a mistake about service name and the transmission queue got filled of them
I want to use SSB as a mean to thread multiple SP invocation of the same procedure. When I launched the initator processes it created in the transmission queue error messages saying for each of them that it is an invalid target service name. The view (sys.transmission_queue) records them in this way in the status column: "The target service name could not be found. Ensure that the service name is specified correctly and/or the routing information has been supplied." Services and queues and activation procedure are all defined into the same database. I drop services and queues, and i tried to create a service with the initial wrong name. Nothing happened. Thanks vour your help Thanks, I tried to ...Show All
Visual Studio Express Editions How do I into Sleep mode by VC 6.0
I would like to into sleep state after program executed 5 secs later. I know the sleep modes are include 6 states that S0~S5. The simple information of these modes are show as below. S1 (POS) ==> Stop HDD and monitor power, but CPU and memory still alive. S3 (Suspend) ==> Stop CPU and HDD. Store data to RAM. S4 (Hibernate) ==> Stop CPU, memory, HDD. Store data to HDD. Now, I can control my program into S3 and S4 by "SetSystemPowerState". But I don't know how I can into S1 mode. Could you please give me some hint If SetSystemPowerState() or any APIs does not into S1 mode, could you please help me to close monitor and stop HDD Thanks, Rabin Thank ...Show All
SQL Server help with an expression
I need to create an expression to handle a simple calculation. Here is what I have: =Sum(Fields!MH_POS.Value, "lexis_sales_dbdata_prd")/ Sum(Fields!MH_POS_Goal.Value, "lexis_sales_dbdata_prd") What do I need to add to handle the when the MH_POS_Goal = 0 I tried isnull and nullif and kept getting errors. This expression processes ok. But I am still getting the error message. Can someone help me update it to work correctly =IIF(Sum(Fields!MH_POS_Goal.Value, "lexis_sales_dbdata_prd")>1, (Sum(Fields!MH_POS.Value, "lexis_sales_dbdata_prd")/ Sum(Fields!MH_POS_Goal.Value, "lexis_sales_dbdata_prd")),0) ...Show All
Visual Studio 2008 (Pre-release) The name 'InitializeComponent' does not exist....
I'm trying to create a UserControl in a Class Library and it all works just fine. I can see everything in designer, but when I'm trying to build my solution I get the following error. The name 'InitializeComponent' does not exist in the current context And that's it, as it says I don't have that method in my .cs codebehind file. But the thing is when I create a UserControl in a WinFX Windows Application I can build it just fine, so i must be missing something. I tried removing the method call and that let me build it, but when creating a new instance and adding it to my Grid nothing happend. Any idea what I'm doing wrong. I am somewhat new to the .NET platform ( great idea jumping on the .NET 3.0 wagon then huh ) But I would r ...Show All
SQL Server start from expression
Hi, Maybe somebody experienced the same thing: It happens more and more that I have to split up my packages into two flows and then execute one flow dependent on a variable's value. Like for example if a boolean variable is true -> do one side of the package otherwise follow the other flow Untill now I started from an empty script task and then achieved my goal via constraints but as I want to cut out all the quick and dirty parts of my packages... So, should I create a custom component greets, Tom Thanks, clever idea I'll give it a try allthough this is not really the way I like it, in my opinion there should be a "switch component" or a "case component" greets -Tom ...Show All
Visual Studio ProjectNode.BuildLogger
I created a basic Logger: class XgenLogger : Logger { public override void Initialize( IEventSource eventSource) { eventSource.BuildFinished += new BuildFinishedEventHandler (Xgen_BuildFinished); eventSource.ProjectFinished += new ProjectFinishedEventHandler (Xgen_ProjectFinishedBuilding); } private void Xgen_BuildFinished( object sender, BuildFinishedEventArgs buildEvent) { MessageBox .Show(buildEvent.Message); } private void Xgen_ProjectFinishedBuilding( object sender, ProjectFinishedEventArgs buildEvent) { MessageBox .Show(buildEvent.Message); } } In my ProjectNode class I am trying to set the BuildLogger property to a new instance of my logger class: ...Show All
SQL Server Pass data to a report?
Hi all, We have an ASP.NET application that generates various reports and word documents. The word documents and the reports require the exact same data and we have written some rather complex functionality that generates the SQL select statements to fetch this data. The statements are currently being used to create ADO.NET DataSets which feed the word documents. How can we now get these DataSets to feed the reports too We would really, really, really like to avoid having to recreate the logic for constructing the select statements within SSRS. Can we pass the DataSets themselves, or can we serialize them to XML using the WriteXml method then pass the Xml data as parameters or is there a way to just pass the SQL to ...Show All
Visual Studio Problem with Help VisualStudio2003
Hello, i have a problem with the help system. i start a new vb.net project and i want to go to help. for example i select a button and then i press F1. no help is show. i see help on the register: i can type in a phrase to search but the message is "fur die aktuelle Auswahl ist keine Verknupfung vorhanden" (= for the actual choice there is no linking). it already worked. then the problem occured again, i installed the msdn help again but now there is no help. can you help me i tried all settings in the extra / option window. but no one worked! Thank you Michael Ok, wiping out VS2003 completely under administrator, a couple of reboots. nuking a couple of KB entries (the ...Show All
SQL Server my first experience distributing the new-built sql db onto client machine?
hi i am new to mssql db stuff. I just developed my first VB.NET application and it uses a mssql database which is hosted locally on my development machine. I built the deployment msi file for my application which can be installed easily on client machine, but have no idea how to move the mssql db with it. the client machine is a laptop with XP Home installed. and it's clean, no other software installed. oh, btw, i use VB.NET 2003, MS Server Service Manager Version 8.00.760 and SQL Server Enterprise Manager. Please help... Microsoft has a full explanation of what to do, here: http://msdn2.microsoft.com/en-us/library/ms165639.aspx Buck Woody ...Show All
Visual C++ Build error converting C++ 2003 to 2005
I have an unmanaged C++ project in VS 2003. I converted it to VS 2005 without any problem. However, when I build it in 2005 I quickly get a message 'Build failed' in the bottom left hand corner. But the error list is empty! Can anyone help Thanks That's the problem. There are no errors, warnings or messages. Unless I'm misunderstanding what you mean, I'm looking at the grid at the bottom of the sreen headed 'Error list'. Thanks ...Show All
SQL Server Help point this total neophyte in the proper direction
Hello All, I just started a new job and I'm totally new to our SQL 2000 server (v. 8.00.760). My boss asked me to look into 'cleaning up the database' and has also mentioned reindexing as well. He seemed to suggest that this was a pretty minor thing to actually do but I'm absolutely clueless on where to begin. At this point, with having no experience, I'm very hesitant to do anything that may negatively impact our SQL database. I would appreciate any and all advice from more experienced people to help get me pointed in the right direction. Thanks in advance. If you have the possibility to install another instance on another server or on the actual server it there should be no budget for getting additional ...Show All
Visual C# How to store dataset to a table in the database. Please be specific. Urgent
I have create the following datarow: _dtProjectQuestion.Columns.Add("ProjectQuestionNo"); _dtProjectQuestion.Columns.Add("ProjectQuestionType"); _dtProjectQuestion.Columns.Add("ProjectQuestionName"); _dtProjectQuestion.Columns.Add("ProjectQuestionLastModifiedDate"); _dtProjectQuestion.Columns.Add("ProjectQuestionDateFormat"); _dtProjectQuestion.Columns.Add("ProjectQuestionShortLabel"); _dtProjectQuestion.Columns.Add("ProjectQuestionLongLabel"); _dtProjectQuestion.Columns.Add("ProjectQuestionMessage"); _dtProjectQuestion.Columns.Add("ProjectQuestionMinAnswer"); _dtProjectQuestion.Columns.Add("ProjectQuestio ...Show All
Visual Studio 2008 (Pre-release) Page Height and Width - Newbie Question
Hello, I am trying to set the background of an entire XBAP page. I want the page to be the size of the entire window and the background to fill this. I thought this would be easy, but there must be something I'm overlooking. After all, as a developer, I'm just a pawn ( http://www.computerworld.com/action/article.do command=viewArticleBasic&articleId=9007527 ) Thanks, Alan Normally that behavior should come up b default with no effort from your side. Just set grid as a contents for your window, like: Grid g = new Grid(); g.Background = Brushes.Blue; Window.Contents = g; ...Show All
