Search Results

Showing results 1 to 40 of 89
Search took 0.01 seconds.
Search: Posts Made By: hollystyles ; Forum: C# and child forums
Forum: C# May 23rd, 2008
Replies: 1
Views: 384
Posted By hollystyles
Put your terms into Google, read the links and try it out. I put 'c# myql' into google and first hit was this...
Forum: C# Apr 11th, 2008
Replies: 10
Views: 1,123
Posted By hollystyles
Look into SqlLite (http://www.sqlite.org/) its free and simple and can be packaged with your app more easily.
Forum: C# Mar 28th, 2008
Replies: 23
Views: 20,770
Posted By hollystyles
It's just a preference. I like things to be as loosley coupled as possible. I prefer to bind to collections of objects, rather than strongly typed datasets. Like most things it depends on what your...
Forum: C# Mar 27th, 2008
Replies: 23
Views: 20,770
Posted By hollystyles
Oops perhaps you are doinf a Forms project not a web project.

I have started a forms project and I can't get the binding source to use the new query either yet. I am too tired at the moment.
...
Forum: C# Mar 27th, 2008
Replies: 23
Views: 20,770
Posted By hollystyles
The query has the single column you want 'Expr1' bind the textbox to that.

I am not very knowledgeable with BindingSources I am afraid, I don't like them. I prefer to have simple business objects....
Forum: C# Mar 26th, 2008
Replies: 23
Views: 20,770
Posted By hollystyles
SELECT Name + '\n' + Street + '\n' + ZipCode +'\n' + City
FROM Customers
WHERE (CustomerID = @1)


This assumes none of the columns allow NULLS. Otherwise you will need to use ISNULL(name, '') +...
Forum: C# Feb 13th, 2008
Replies: 5
Views: 830
Posted By hollystyles
What? C# is case sensitive the Exception class is with a capital E.

Console.Readline returns a string of character data input by the user of the program, the user may deliberately or mistakenly...
Forum: C# Feb 12th, 2008
Replies: 5
Views: 830
Posted By hollystyles
try
{
Console.WriteLine("Insert a date:");
string strDate = Console.ReadLine();

DateTime myDate = Convert.ToDateTime(strDate );

Console.WriteLine(string.Format("The...
Forum: C# Feb 12th, 2008
Replies: 18
Views: 9,816
Posted By hollystyles
I do understand. But yes you can attach it. Click the Go Advanced button below the reply box. You'll get a bigger editor. SCroll the page down a bit and there's a manage attachments button.
Forum: C# Feb 12th, 2008
Replies: 18
Views: 9,816
Posted By hollystyles
Don't put the hotel booking id in quotes (I'm guessing that's what you've done). And hard coding an ID into your program logic is very poor, but I guess there's time for that later when you've...
Forum: C# Feb 12th, 2008
Replies: 18
Views: 9,816
Posted By hollystyles
You're very close. You have the ID, you need a function in itenary.aspx.cs you can pass the ID too, the function should look the ID up and see if it's the hotel booking catagory and return true or...
Forum: C# Feb 12th, 2008
Replies: 18
Views: 9,816
Posted By hollystyles
That's right the variable id is an integer, "world tour" is a string literal you cannot apply the == operator to these different types.

I can see you are either very very green or a forum troll....
Forum: C# Feb 12th, 2008
Replies: 18
Views: 9,816
Posted By hollystyles
Post the error then, I 'm afraid I left my crystal ball at home. :)

Well actually I can hazard a guess. You cast the QueryString variable to integer, then you try and comapre it to a string...
Forum: C# Feb 12th, 2008
Replies: 18
Views: 9,816
Posted By hollystyles
Right, so just set the visible properties of the necessary controls in the page load event handler of itenary.aspx

I don't get what the problem is ??????
Forum: C# Feb 11th, 2008
Replies: 18
Views: 9,816
Posted By hollystyles
I'm still not entirely sure what you want to do. I take it english is not your first language?

Are india tour and world tour catagories ?

So I choose a category, then I see a datagrid of tour...
Forum: C# Feb 11th, 2008
Replies: 18
Views: 9,816
Posted By hollystyles
You haven't given us enough information to give you specific codeing. How do you know what itinery to show in the itinery page? Are you using the query string or session variable? Codeing will be...
Forum: C# Jan 30th, 2008
Replies: 18
Views: 3,598
Posted By hollystyles
Please use code tags when posting code.
Forum: C# Jan 29th, 2008
Replies: 18
Views: 3,598
Posted By hollystyles
1. You can't do check boxes in a console app.

2. Please use [ code ] tags when posting code it's the law here.

3. to delete you want a SqlCommand object


String strAuthorid =...
Forum: C# Jan 29th, 2008
Replies: 18
Views: 3,598
Posted By hollystyles
Great !!

Post it, then we stand a chance of helping you straighten it out.
Forum: C# Jan 29th, 2008
Replies: 18
Views: 3,598
Posted By hollystyles
Sigh....

Search hint: TemplateColumn, GridView.Items collection.
Forum: C# Jan 29th, 2008
Replies: 2
Views: 795
Posted By hollystyles
You need to use cookies

When a page is requested, check if cookies are supported, and check for a cookie. If found fill in the username from the saved cookie.

You will rarely just get given...
Forum: C# Jan 29th, 2008
Replies: 18
Views: 3,598
Posted By hollystyles
Ok the absolute number one thing a newbie needs to know:

http://catb.org/~esr/faqs/smart-questions.html#intro



Well how long is a bit of string?

There are *many* ways to accomplish this...
Forum: C# Jan 25th, 2008
Replies: 8
Solved: UI techniques
Views: 1,000
Posted By hollystyles
They will look like real microsoft ones. When you create a Windows Application project in Visual Studio (I assume you're using one of the express editions ?) In the Program.cs file in the Main...
Forum: C# Jan 24th, 2008
Replies: 8
Solved: UI techniques
Views: 1,000
Posted By hollystyles
Well UI Design is not specific to any platform really. But what about this?

http://msdn2.microsoft.com/en-us/library/aa350483.aspx
Forum: C# Jan 21st, 2008
Replies: 5
Views: 1,015
Posted By hollystyles
Here's a question in C#:


using System;

class Program
{
static void Main(string[] args)
{
String question = "How do I count occurrences, given a list of...
Forum: C# Nov 5th, 2007
Replies: 3
Views: 2,191
Posted By hollystyles
There are many ways depending on how sophisticated your project or needs are. The easiest in my opinion is the setup project.
...
Forum: C# Oct 31st, 2007
Replies: 2
Views: 1,007
Posted By hollystyles
Does the data have to be standalone on the device? can't the device connect remotely for DB operations perhaps?
Forum: C# Oct 30th, 2007
Replies: 1
Views: 815
Posted By hollystyles
In base class declare a method as virtual:

public virtual void SomeMethod()

In the derived class override the method:

public override void SomeMethod()
Forum: C# Sep 28th, 2007
Replies: 2
Views: 2,290
Posted By hollystyles
No. The dll is one or more compiled .cs files, it is a class library. Microsoft calls them assemblies because they are different to the old style COM dll's where a .tlb (type library) also had to be...
Forum: C# Sep 28th, 2007
Replies: 14
Views: 19,818
Posted By hollystyles
Ok just to split hairs. C# is just a language, the .NET framework has classes that can write text to the filesystem. RTF is text. So yes you can programitically create RTF files by programing the...
Forum: C# Sep 27th, 2007
Replies: 6
Views: 894
Posted By hollystyles
It may not bee that much work. Depends how many 2.0 only features you used (generics is one that springs to mind) If you haven't used anything specific to framework 2.0 just paste your code into a...
Forum: C# Sep 27th, 2007
Replies: 6
Views: 894
Posted By hollystyles
Yes those are your two choices. It's no problem to have framework 1 and 2 on a comnputer side by side so bundle the framework 2 re-distributable in your set-up project.
Forum: C# Sep 27th, 2007
Replies: 14
Views: 19,818
Posted By hollystyles
RTF is also text but you have to learn the arcane formatting:
http://www.biblioscape.com/rtf15_spec.htm
Word can open rtf files.

using System.IO;
// create a writer and open the...
Forum: C# Sep 27th, 2007
Replies: 14
Views: 19,818
Posted By hollystyles
A csv file is not an office document, and you never mentioned CSV before now. Excel is able to read csv files. CSV files are just textfiles.


using System.IO;
// create a writer and...
Forum: C# Sep 27th, 2007
Replies: 1
Views: 1,860
Posted By hollystyles
Solved here:

http://www.daniweb.com/forums/thread90874.html (http://www.daniweb.com/forums/thread90874.html)
Forum: C# Sep 27th, 2007
Replies: 1
Views: 2,288
Posted By hollystyles
Ebabes stop spamming the forums !!

Solved here:
http://www.daniweb.com/forums/thread90874.html (http://www.daniweb.com/forums/thread90874.html)
Forum: C# Sep 27th, 2007
Replies: 4
Views: 9,242
Posted By hollystyles
Year is a reserved word surround it in square brackets:


OleDbCommand cmd = new OleDbCommand("UPDATE StudTable SET Course=?, [Year]=?, Age=? WHERE IDNo = ?", conn);


You probably need to do...
Forum: C# Sep 27th, 2007
Replies: 14
Views: 19,818
Posted By hollystyles
That just outputs text files not "all kinds of files" and certainly not office documents. If that's all you want to do just use the classes in System.IO


using System.IO;
// create a...
Forum: C# Sep 27th, 2007
Replies: 14
Views: 19,818
Posted By hollystyles
Aspose does that too. I have used myLittleWriter in the past which is a free tool that creates rtf (Word can open them just fine)

But I don't get it. Why output a doc and then convert it? why not...
Forum: C# Sep 27th, 2007
Replies: 4
Views: 9,242
Posted By hollystyles
ebabes please use code tags to format your code in posts. (See the watermark in the quick reply box at the botom of all threads)


OleDbCommand cmd = new OleDbCommand("INSERT INTO StudTable (IDNo,...
Showing results 1 to 40 of 89

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC