Forum: C# Jul 6th, 2007 |
| Replies: 3 Views: 3,154 90% of what you do in C# (or any OO language for that matter) is in functions.
I am not sure exactly what you are asking though - I know you are new to C#. You ask if you can put some repetative... |
Forum: ASP.NET Mar 23rd, 2007 |
| Replies: 5 Views: 3,470 OK
You can get webdeveloper express which is free and makes it a lot easier.
the code below has a grid view which lets me list, edit and delete items in the grid (it could select too but i have no... |
Forum: ASP.NET Mar 23rd, 2007 |
| Replies: 5 Views: 3,470 use the formview control and bind it to a datasource control which is configured to access your database.
If you use VS2005 they are there and very simple to setup (follow the wizards). Drop a form... |
Forum: ASP.NET Mar 23rd, 2007 |
| Replies: 2 Views: 1,762 if the texbox was bound to the database and there is no value then num1 num2 etc. is empty or null, neither of which will parse to a double to be able to be added. You need to do a test to see if... |
Forum: C# Mar 5th, 2006 |
| Replies: 9 Views: 6,322 when do you call CalcColumn()?
You havent quite grasped the concept which is where you are going wrong but thats why we are here :)
Are you using a strong typed dataset to get your data? You dont... |
Forum: C# Mar 5th, 2006 |
| Replies: 9 Views: 6,322 database1Dataset.Columns.Add(Column1);
that line is incorrect
Cannot add a column to a dataset... need
database1dataset.Tables["sales"].Columns.Add(Column1);
if sales was the table name |
Forum: C# Mar 5th, 2006 |
| Replies: 9 Views: 6,322 you create an unbound column in the sales and use the Expression property whose value is quantity*price (assuming those are the two column names). Only create bound columns if you want data saved in... |
Forum: ASP.NET Feb 10th, 2006 |
| Replies: 7 Views: 21,193 sms is complex and not free but can be done. There are gateways which you can setup with your provider. There is a way to do it via email and is usually mobilenumber@carrierssmsmail.tld i know them... |
Forum: VB.NET Jan 21st, 2006 |
| Replies: 6 Views: 44,082 oh ok i thought you were trying to get the MAC and other things too.
your dns is in the form xxx.xxx.xxx.xxx
so there is a clue. it is DELIMITED by the . (period)
so instead of your... |
Forum: VB.NET Jan 21st, 2006 |
| Replies: 6 Views: 44,082 use System.Management classes to do it. Writing WMI queries. Have a look at it and if you are stuck let me know and i will give you some code. |
Forum: Computer Science Jan 17th, 2006 |
| Replies: 14 Views: 5,292 no because your chart says if it is not c then it can go to F without worrying about d. I had the c AND not d and changed it. Which means it is
While not(not c or d)
Thats dragged up some... |
Forum: Computer Science Jan 16th, 2006 |
| Replies: 14 Views: 5,292 which is almost the same as yours except i included the B (no biggie) and no extra variable needed hence performance should be marginally better. |
Forum: Computer Science Jan 16th, 2006 |
| Replies: 14 Views: 5,292 you missed out B!
Try
A
While c or not d
(
B
if not d then do E
)
F |
Forum: Computer Science Jan 16th, 2006 |
| Replies: 14 Views: 5,292 Ok now i am totally lost. Your initial post had c and C and d and D but now you say there is no C or D? Your initial post also said if c is true to skip B but now you are saying if c is true to do... |
Forum: Computer Science Jan 16th, 2006 |
| Replies: 14 Views: 5,292 I think i am with you now. i was confused between c and C and d and D. i take it A B C D E and F are some processes/functions etc. and c and d are flags?
In which case my pseudocode needs a... |
Forum: Computer Science Jan 15th, 2006 |
| Replies: 14 Views: 5,292 I think we both got confused. I wasnt too sure what A B C etc meant. Are they states in a state machine? Or just processes? also do they run though the flow once or keep repeating? I thought they... |
Forum: Computer Science Jan 15th, 2006 |
| Replies: 14 Views: 5,292 sorry should not be a while loop just another if statement
A
if not c then b
if not d
{
if not c then c
D
E
} |
Forum: Computer Science Jan 15th, 2006 |
| Replies: 14 Views: 5,292 First 2 are correct. last pseudocode is wrong.
I think it needs to be something like
A
if not c then b
while not d
{
if not c then c
D |
Forum: ASP.NET Jan 12th, 2006 |
| Replies: 9 Views: 20,717 Just one quick one on stored procedure names... dont prefix a stored procedure with sp_ use anything but this as when you call a stored procedure SQL Server looks at the name and if it starts with... |
Forum: ASP.NET Jan 12th, 2006 |
| Replies: 6 Views: 9,557 so you want to auto refresh the page at set times?
Best way to do it is to put it in the META tag. It is the same technique as an auto redirect to another page, only this time you are reloading... |
Forum: ASP.NET Jan 12th, 2006 |
| Replies: 6 Views: 9,557 I agree. However should you need to pause the thread while another thread completes then use thread.sleep(timetosleep) |
Forum: ASP.NET Jan 12th, 2006 |
| Replies: 3 Views: 6,059 are you talking about a popup window or a whole new webpage/site? if you need to do a new browser window with a webpage then in the link that you have you need to set the target="_blank"
if you... |
Forum: C# Jan 12th, 2006 |
| Replies: 4 Views: 3,923 I am slightly lost but i think i know what you mean.
In design view in all VS (2002, 2003 and 2005) you can click the events icon in the properties box (normally you have it in properties view to... |