Aman Dhingra's Q&A profile
Architecture Choosing deisng pattern
Hi. Your help is very appreciated. I want to build an app that is basically a client db. For that I am contructing a "client" class (that has - name, address, contact details etc...). However, I want to enable my users, to add properties to my "client" class WITOUHT needing to change my code . i.e. some clients might require an "age" and "annual income" properties as part of the "client" class. Which design pattern(s) might assist me ...Show All
Visual Basic Accessing Public Function located in another Project referenced within the same Solution
I've to a solution with two projects: Bungalow New Programs New Programs has a ref to Bungalow. Bungalow has a Module called Bungalow which has a Public Function (clone_control()) From within 'New Programs' I can not access Clone_Control. However, if I drag (wihin the Solution Explorer) the Bungalow module from Bungalow to New Programs, then it works OK. I thought that adding a reference was like lett ...Show All
SQL Server SQL SERVER TEMPORARY TABLES in STORED PROCEDURES
There are two ways to create a temporary tables in stored procedures 1: Using Create Table <Table Name> & then Drop table ex. Create Table emp (empno int, empname varchar(20)) at last : drop table emp 2. Using Create table #tempemp ( empno int, empname varchar(20)) at last : delete #tempemp ---which one is preferrable & why. what are the advantages & disadvantages of the above two types. th ...Show All
SQL Server SSRS 2005 Export to PDF Missing Data
I have a report that has a page header that needs to have the customers name. The report works fine by referring to reportitems!Customer_nm.value where customer_nm is a hidden textbox in the body of the report. Unfortunately, when I select the Export to PDF, this value is blank. It works fine if I export to Excel or just use the native functionality. It appears only to be missing in a PDF. Any ideas I a ...Show All
SQL Server How to copy the database diagram to new SMSS
Hi, How to copy the database diagram from a source database to a destination databaase in SMSS ...Show All
SQL Server Get latest purchase of each vender
I would like to query the latest purchase record of each vender. The query is something like: Select VInvoiceID, Date, VenderID From BuyingTable Order By Date Desc If I use DISTINCT keyword, it remove duplicated row. But I want only VenderID to be DISTINCT, not the whole row. How can I do that Thanks. There are many ways to do this. -- any version of SQL Server / ANSI SQL select b1.VInvoiceID, b1.Date, b1.VenderI ...Show All
.NET Development Problem with continous polling using HttpWebrequest and HttpWebresponse
Hi, I am currently developing a PDA program that continously polls for data on a java servlet running on a tomcat server. Usually during the first 15-20 minutes the program works fine, however after that I begin to recieve the following exceptions in: - "Internal Error 500 (from webserver)" -after a few minutes I begin to recieve this web exception : "The operation has timed out" - finally it this error occurs "Unable to connect to Web Server" f ...Show All
Visual Basic Debug mode reverts to previous level of form
I have been making a sequence of changes to a form, entering debug mode after a few changes. Suddenly debug mode has stopped displaying recent changes, instead reverting to an ealier version. There are no indications of either compile or runtime errors. This makes it difficult to determine what is causing the problem. Is there some way to make the IDE not use a cached version Hi, Peteg1, Hmm, that’s not one we’ve seen before – my apologi ...Show All
Visual Studio Help Integration Wizard does not generate title nodes
Hi, I'm trying for some time now to create a MSI installer to deploy a Help2 File. For this I'm using the Help Integration Wizard - which seems to work all right. But when I've installed the .MSI and start dexplore I can't find my Help at all(but a filter I configured in Step 3 of the wizard shows up). When I take a look with Namespace.exe(contained in VS SDK) I can see the Namespace created by the installer, but unlike all other, this Nam ...Show All
Visual C# BitConverter
hello... First of all, I am not sure if this is the right place to post this... anyway, here's my prob... I am writing a TCP server in C#... and a client in JAVA..... I converted an int in JAVA into byte[4]...(tested it in java, nothing wrong). sent it over to the server.. At the server, convert it back into int from byte[4]....and it becomes 16777216 instead of the original number which is 1.. my question is, is it pos ...Show All
SQL Server Convert SQL 2005 to SQL 2000
I started a project using SQL 2005 and now the customer has decided they can't go to 2005 yet so I need to convert it back to 2000. I didn't use any new features of 2005. How do I move it back to SQL 2000 Hi frnds, I have done the process of Converting SQL 2005 Database into SQL 2000 Database. 1.Create Database in SQL Server 2000 which is the name into SQL 2005. 2.From SQL 2005 Mgmt Console Studio , from Database - tasks - Gene ...Show All
.NET Development How to handle Windows Users in an application (C# or VB)
Hi all, I had a problem in fetching / setting Windows Users and Groups by coding. Let's assume the user of my program will login as Administrator, the program needs to check whether a certain user with certain privileges exists. If such user is not found, the program will create such user with correct privileges. How can I achieve this functionality Any kind of help or piece of idea are welcome! I code in C# or VB 2005 release version, ...Show All
Windows Forms Displaying Text of Button Vertically
Hi everybody, How do you display Text of a Windows Button Control vertically instead of usual horizontal formation Thanks. den2005 I think you need to create your own button control inheriting from the System.Windows.Forms.Button class and override the OnPaint method to handle the Graphics calls and have you managing all its related stuff... I can't think of an easy answer for this one, sorry. Amadrias ...Show All
Windows Forms Adding Assemblies to the Global Assembly Cache without using gacutil.exe?
Hello All, I am deploying applications that will require some .Net assemblies to be used in multiple applications and would like these dll files to be recognized in the client's global assembly without having to phsically add them using gacutil.exe. Is there& ...Show All
Windows Forms System.window.forms.combobox in web application
Hi, I am quite new to asp.net. I am trying to have the System.windows.form.combobox control in my web page. This is because I wanted the editable function that is found in the combobox in my webpage. Another thing which I want to add is that if a person insert a value that does not exist part of the list should receive a javascript pop-up msg. So can any body help how can I embed the combo box control in my web page. Thanks. ...Show All
