Jay Shrestha's Q&A profile
Visual C# Display data as a dataset
Hi all, I would like to query data from the tables and display as a dataset. May I know is this the correct way of doing it I had not tried it before. Do we display data using dataset If yes, can someone direct me of how to do it Pls advise A DataSet is used for storing data and not for displaying it. You need to decide how you want your data displayed. The canonical control is normally a DataGrid (v1.x) or DataGridView (v2+). In both cases you can simply dump the DataSet to the control by setting the DataSource property to the DataSet instance and the DataMember property to the ...Show All
Visual C# !!! IF MICROSOFT HEAR US!!!
I just saw another thread with "Can i make a app that doesnt use the .NET. The framework is too big 23 MB".. SO... Can Microsoft create a .Net Framework just for c# not for asp or j# or visual basic providing only the neccesary dlls Please!!!! This makes me laught! You are kidding, right All the .NET Languages just create MSIL code, so the .NET Framework is allready only for 1 language. But please tell me, what is wrong with a 30MB sized framework For example: Java needs the JVM and VB6 needs the VB-Runtime, it don't know what you point is. If people have an internet connection they can download the framework with your applic ...Show All
Visual Studio Team System ADAM Error on Installation
Hi, I could not ever install the ctp version of foundation server. Finally on beta 2, i thought my woes would be over... Far from it Now it stops at the ADAM install itself. I did exactly as the installation guide said.. fresh machine.. it completes the step 1 starts the step 2 and then it says there has been an error.. now no info on what the error is all abt. I chkd the known issues and it mentioned abt the TMP variable spaces... I even changed it to c:\myTemp. Still no change to my luck. any idea what i might be missing here... TIA Paritosh jb_tiburon, Are you trying to get a single-server ins ...Show All
Visual Studio 2008 (Pre-release) NLB & WCF
Hi, If I am not using WCF session, and have configured my service as InstanceContextMode.PerCall, could NLB work *without* affinity I know WCF is not like .NET remoting, but can the following article here http://support.microsoft.com/default.aspx scid=kb;en-us;830217 could somewhat apply to WCF Thanks Actually if you configure the service for "Per call",we don't consider session setting on contract level,so we are not going to save any data between calls. About load balancing: when we are discussing about WCF stuff,client activated objects and pausing the objects between client and server(CLR objects) may not be ...Show All
Windows Forms Setup error
Hi, Does anybody know the cause of error message Setup error (title) Failed to load resources from resource file. Please check your Setup. This is a popup message box and after that applicatioh crash. I have no chance to find where does it come from. I've try with global error handler but with no luck. ...Show All
SQL Server sub-reports don't start in the first page
Hi all, we are using SQL Server 2000 with RS SP1. We've built a report that use sub-reports, each sub-report is quite long (more than 1 page). It happens that the first sub-report begins in the 2nd page but the first page contains only the title. So we have the 1st page with only the title and all the data in the 2nd page (not very nice). Is it a problem that someone have solved Am I doing something wrong with building sub-reports Thanks in advance Luca Italy Just following up on the topic of subreports. Are there any plans to inlcude the subreports header and footer when embedded in another ...Show All
Visual Studio Team System How to get the value in 'Namespace' in WebService attribute?
My code behind file (asmx.cs) has the web service class like below [WebService(Namespace=" http://mycompany.com/ ")] public class Operator : System.Web.Services.WebService { // class code ... } I want to extract the value " http://mycompany.com/ " in the 'WebService' attribute. Which class / method in FxCop can be used It would be of much help. Thanks Just a heads up, this is an area of FxCop that is very likely to change in the future, as the current mechanism for retrieving these values is a bit complex. The specific pattern you posted uses named arguments for specifying th ...Show All
Visual C# How to free a BYTE[] ?
Hi We often declare byte arrays in loops, reading files one by one. If suppose there are 100 file and I am reading them one by one into the byte array, creating a new array (new byte[file.length]) everytime . This will allocate 1000s of bytes of memory in CLR. Is there anyway I can free an array explicitly without waiting for GC's collection. One solution could be allocate the array for larger file and read accordingly, but this will make me go through the files twice. As a programmer,this should not be a cause for concern,since if the memory pressure is high,the GC would collect the data struct ...Show All
Visual Studio Team System grrrrrrrrrrrrrrrr failed install buggers system (beta 3 refresh)
After failed TFS install that supposedly backed out, Reports Site is buggered. . . getting w3wp.exe application errors these events: MSSQLSERVER: 18456 Login failed for user 'OBJTEC\sqlservice'. [CLIENT: <local machine>] SQLSERVERAGENT: 208 SQL Server Scheduled Job 'TfsVersionControl Administration Job' (0xBB8211FD404DA340A22A60F7F0DF52F8) - Status: Failed - Invoked on: 2005-11-15 00:00:00 - Message: The job failed. The Job was invoked by Schedule 1 (Regularly scheduled maintenance). The last step to run was step 1 (Delete Unused Workspaces). Anyone got a guideline for manually cleaning up this mess Still no answer as to what c ...Show All
Visual C# How to constrain generic type to a superclass instead a subclass of another type?
In Java 5 you can use the following syntax for variance in generic types: public class A {...} public class AA extends A {...} public class MyContainer<E> { void setComparer(Comparator< super E> c) {...} ... } This means that you can pass instances of either Comparer<A> or Comparer<AA> to MyContainer<AA>.setComparer. Is there a way to specify this type of constraint in .NET The where clause can be used to restrict the type the OTHER way ("where type inherits from another type") but can I define "where type is base class of another type" In other words I need something like the following: pu ...Show All
Visual C++ Trying to learn C++ - but some things just dont make sense....
Hi Folks, I am trying to learn C++ but some things just dont make sense. For example I am looking at a tutorial on OpenGL at http://nehe.gamedev.net/data/lessons/lesson.asp lesson=13 Now he calls a function with: glPrint("Active OpenGL Text With NeHe - %7.2f", cnt1); // Print GL Text To The Screen It passes two arguments to glPrint - the string and whatever cnt1 is. What I find weird is that glPrint doesnt actually do anything as far as I can see with cnt1 Also I find I have looked up on MSDN vsprintf which is used in the glPrint function. http://msdn.microsoft.com/library/default.asp url=/library/en-us/vclib/html ...Show All
Windows Forms Problem in using datacolumn expression and aggregate functions
Hello Every One. Wishing u all a good day, My problem is as follows : I have to tables in dataset Ds1 as tblinvoice(InvNo,FCustNo,InvDate) and TblInvoiceDetails(FInvNo,Qty,Price) I have created a relationship between them as follows Ds1.relations.add("InvDetRel",Ds1.TblInvoice.InvNo,Ds1.TblInvoiceDetails.FInvNo) In the code (not in the backend) i have added to TblInvoiceDetails one column that contains ex ...Show All
SQL Server Need help designing dimension
Any ideas appreciated on this: We are pulling customer data from 8 homogenous sources like so: customer attributes, sourcesystem This data is going uncleaned into a base customer dimension Using fuzzy grouping we group and extreact similiar customers into another dimension: conformed customer dimension, and update the base customer dimension with the conformed customer dimension primary key in a parent_customer field. We add several attributes to the conformed customer dimension that are not present in the base customer dimension. Mostly, analysis will be performed on the conformed customers, but occasionally one will want to ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where is DirectX going?
I read somewhere *cof* http://www.managed-world.com/SoonDirectXDirect3DNothingElse.aspx *cof* that Microsoft is deprecating a large part of DirectX (DirectInput, DirectSound) he then hints about learning Shaders http://www.managed-world.com/AdviceLearnShadersNow.aspx so the question is, should I not bother to learn DirectInput, DirectSound, etc... what should I be learning if I want to develop DirectX applications in the future is DirectX the future of graphics programming or is there something else coming (XAML anyone ) thanks for your comments heh heh.. I was just joking to myself that the next thin ...Show All
SQL Server Installing onto Windows 2003 Server for multi-user application
Good Day, I have an application that is being developed on Visual Studio 2005 (VB) and SQL Express. The application is set up to use the SQL Express on the development computer, and if an Internet or CD install is built, it installs SQL Express as expected. The question is, when it is time to deploy and put the SQL Express database on the 2003 server, how should the install on the server be done and how should we set the database path to the server Thanks, Dave Hi Dave, This question would probably be better asked in one of the VS forums, where they deal with writing data bound applciations, but ...Show All
