Forum: C# Aug 1st, 2008 |
| Replies: 8 Views: 676 Re: Generate int numbers Sure but how do you explain getting "1234 -> 1234" or "123 -> 0123"? That is not a solution, but just hard coding all your requirements. That we could have done from the beginning, =_=; What we want... |
Forum: C# Jul 24th, 2008 |
| Replies: 10 Views: 1,098 Re: How to print an XML File >But printing in this way formatting will be
>omitted which is not solution of my
>problem
What more do you want? We told you how to "get" a formatted XML output and save it. We also told you how... |
Forum: Java Jul 22nd, 2008 |
| Replies: 9 Views: 835 |
Forum: C# Jul 22nd, 2008 |
| Replies: 4 Views: 1,183 Re: Update GridView You can use the ComboBox class SelectedIndexChanged or SelectedValueChanged Events. Once the event is generated, you can update the DataSet and then display the data in the DataGrid. |
Forum: C# Jul 22nd, 2008 |
| Replies: 4 Views: 536 Re: Unexpected Token: Reading XML Bondo, I'm sorry but there is no way to read not well-formed XML data in .NET. Since you want to use this XML Data into a SQL Server, it's more important for it to be well formed.
You can create... |
Forum: C# Jul 22nd, 2008 |
| Replies: 10 Views: 1,098 Re: How to print an XML File AmirBedair, Please use the code blocks while posting your code. Refer to the rules section of the forum.
>string text = sr.ReadToEnd();
This is a big no no. Do you even realize if the file is... |
Forum: VB.NET Jul 22nd, 2008 |
| Replies: 3 Views: 454 Re: Help to print the XML file >I fact i have posted this after searching over
>two days over internet
Well it seems like you haven't searched well. Anyways, you can find all the information about it in MSDN.
Just create a... |
Forum: VB.NET Jul 21st, 2008 |
| Replies: 7 Views: 818 Re: SQL connection fails Maybe you don't have your Sql Server running? Try starting/restarting it using the surface area configuration manager or services. |
Forum: VB.NET Jul 21st, 2008 |
| Replies: 7 Views: 818 Re: SQL connection fails The problem is your connection string. To connect to a SQL server Compact edition database you use the following:
Data Source=MyData.sdf;Persist Security Info=False;
Data Source=" +... |
Forum: VB.NET Jul 21st, 2008 |
| Replies: 3 Views: 572 |
Forum: VB.NET Jul 21st, 2008 |
| Replies: 3 Views: 454 Re: Help to print the XML file Didn't you post the same question in the C# forum?
Have you tried searching the web? Just go into the MSDN (http://msdn.microsoft.com/en-us/library/default.aspx?s=6)documentation, you'll find all... |
Forum: C# Jul 21st, 2008 |
| Replies: 4 Views: 612 |
Forum: C# Jul 21st, 2008 |
| Replies: 8 Views: 676 Re: Generate int numbers The following websites might help your need.
http://blog.stevex.net/index.php/string-formatting-in-csharp/
This MSDN article about Custom Numeric Strings... |
Forum: C# Jul 21st, 2008 |
| Replies: 10 Views: 1,098 Re: How to print an XML File A simple way to print an XM data onto the Console window is by using an object of XmlDocument.
here is a sample code snippet:
XmlDocument doc = new... |
Forum: Java Jul 19th, 2008 |
| Replies: 4 Views: 2,636 |
Forum: Java Jul 19th, 2008 |
| Replies: 5 Views: 526 Re: How to write to more than one file in Java? Yeah your right, =_= I was too lazy to read your post. Sorry.
But Just so you know, having a switch case here is less prone to error. But still whichever you use, in the end, how you program it will... |
Forum: Java Jul 19th, 2008 |
| Replies: 5 Views: 526 Re: How to write to more than one file in Java? Umm, Have you thought about creating separate PrintWriter objects? Define a rule collection and use switch case to check which rules match. Accordingly call the PrintWriter object's print method... |
Forum: Java Jul 19th, 2008 |
| Replies: 19 Views: 1,046 Re: Design issue - checkers game You can have a class that just controls the movements. It can check the piece and move it. The board class will have the information about the pieces that are on it. If the region is free, then the... |
Forum: Java Jul 19th, 2008 |
| Replies: 6 Views: 1,583 Re: how to close the application using java What `masijade` is trying to say is that, JSP is a server - side scripting language. You can't only affect the server with it, to control the client side, you need to use a client-side scripts such... |
Forum: Java Jul 19th, 2008 |
| Replies: 19 Views: 2,707 Re: java.net.ConnectException: Connection refused You can use the following to create an EchoServer and then use it along with your EchoClient.
http://www.cs.princeton.edu/introcs/84network/EchoServer.java.html
A more complex version from Sun Java... |
Forum: Java Jul 19th, 2008 |
| Replies: 19 Views: 2,707 Re: java.net.ConnectException: Connection refused >i don't know whether to mark this as solved or not
Well like I said, the problem lies in the fact that you need to conect to another system in your network, I don't know how to create a self echo... |
Forum: Java Jul 19th, 2008 |
| Replies: 19 Views: 2,707 Re: java.net.ConnectException: Connection refused As you can see, you need to have an echo server already running. So the hostname can be any computer on you network. I don't have any network connection open so I can't test this application. You... |
Forum: Java Jul 18th, 2008 |
| Replies: 1 Views: 232 Re: Servlet Package doses not exist... hymm, it should be present. Either way which version of JDK are you using? I think you need the J2EE verson. Servelets are related to jsp pages and applets, right. |
Forum: Java Jul 18th, 2008 |
| Replies: 19 Views: 2,707 Re: java.net.ConnectException: Connection refused The problem is that there is no server running in your system. Install the IIS7 server in Vista. Look here (http://www.howtogeek.com/howto/windows-vista/how-to-install-iis-on-windows-vista/)for... |
Forum: Java Jul 18th, 2008 |
| Replies: 7 Views: 369 Re: quick java question(chars) >I mean the superclass of the char .Or can extend other original data type ,
>give it more function
Why do you want to bother doing all that stuff? When a simple typecasting is enough. |
Forum: Java Jul 17th, 2008 |
| Replies: 7 Views: 369 Re: quick java question(chars) Can't you just store the values on a String and then accept a value for the count of recursion. Call the method passing the String and Integer.
If you must use a char data type, then is a simple... |
Forum: C# May 21st, 2008 |
| Replies: 17 Views: 4,578 Re: Returning Multiple Objects As much as I love getting this info on using templates, Please DO NOT revieve dead threads. Aslo if you only need like two returns from a fuction, there is no need to use templates. It's just more... |
Forum: C# May 12th, 2008 |
| Replies: 2 Views: 848 Re: Addition of Polynomials Firstly, Sorry for the long delay. I went out for a short trip.
umm, too hard to debug? There is nothing to debug.
The second class Expressions( should be Extensions, but never mind) , you need to... |
Forum: C# May 4th, 2008 |
| Replies: 3 Views: 1,820 |
Forum: C# May 4th, 2008 |
| Replies: 2 Views: 668 Re: random generation I agree with the above poster. However it'll be easier if you implement LINQ. You can also retrieve few questions from the Database and display them, or you can use the Random Class to generate a... |
Forum: C# May 4th, 2008 |
| Replies: 2 Views: 848 Addition of Polynomials I want to implement that using C#'s Generic LinkedList and the new features of C# 3.0. But I'm stuck now. the code add's the polynomials with matching exponents but doesn't add the rest of the nodes... |
Forum: MS SQL Dec 5th, 2007 |
| Replies: 2 Views: 587 Re: Sql Server 2008 OMG! thankyou soo much. Add a password to the windows account worked, here's a bag full of big glomps for ya.. *GLOMP* |
Forum: MS SQL Dec 3rd, 2007 |
| Replies: 2 Views: 587 Sql Server 2008 Has anyone installed it? I've downloaded both express and full developer edition but I can't get past the user account stage. Can someone give me valid userID's and passowords for it? I don't have a... |
Forum: MS SQL Dec 1st, 2007 |
| Replies: 1 Views: 1,585 Applying Constraints after creating a table. I would like to know how to apply Constraints after creating a table. I was just practicing and creating a database HomeInventory by reading the free e-book from Microsoft. But I'm trying to... |
Forum: C++ Nov 11th, 2007 |
| Replies: 9 Views: 622 Re: Shift Operators: >> and << >you may have to use pre-standard headers <iostream.h> etc.
I'm never using that header file in my entire life again. While we are at it, tell me since which year was it deprecated. I don't think... |
Forum: C++ Nov 11th, 2007 |
| Replies: 10 Views: 3,451 Re: Homework, GPA Calculator out of the topic question:
What does credit actually mean? In my country, we don't have those and I couldn't find much info about it on the web? |
Forum: C++ Nov 11th, 2007 |
| Replies: 9 Views: 622 Re: Shift Operators: >> and << >if you have gcc (the gnu compiler collection),
>you also have g++ (it's c++ compiler)
No, I searched it. I don't have it. I'm using the DJGPP collection that I found from the website.
BTW the code... |
Forum: C++ Nov 11th, 2007 |
| Replies: 9 Views: 622 Re: Shift Operators: >> and << @vijayan121
>to compile c++ code, use g++ (not gcc)
I don't have a g++ compiler. I thought it was mostly used in linux. I'm currently just using Vista, my linux (Mandriva) is downloading process.... |
Forum: C++ Nov 11th, 2007 |
| Replies: 9 Views: 622 Shift Operators: >> and << I just recently came across Shift Operators and it interests me. Though I'm beginning to learn more about it, I'm still a bit confused as where to implement them. However, the problem I'm facing is... |
Forum: C++ Nov 4th, 2007 |
| Replies: 4 Views: 1,469 Re: Help with Fibonacci Series >#include <iostream.h>
You should not use iostream.h, IOSTREAM is the standard header file for C++ I/O operations. and also de-comment your using namespace std; becasue it's necessary.
Also, the... |