Search Results

Showing results 1 to 40 of 45
Search took 0.01 seconds.
Search: Posts Made By: bcasp
Forum: ASP.NET Aug 14th, 2009
Replies: 2
Views: 325
Posted By bcasp
The simplest way would be to create a new .aspx page in your project and copy the HTML into the markup of the .aspx page. Simply renaming the HTML file to aspx wouldn't work because the .aspx file is...
Forum: ASP.NET Aug 14th, 2009
Replies: 1
Views: 680
Posted By bcasp
In your code behind, you would bind a DataSet or some other object to a control on your form. In your markup, the statement you gave then uses whatever object you bound to your control to look up the...
Forum: VB.NET Aug 14th, 2009
Replies: 4
Views: 1,828
Posted By bcasp
This should work:


label24.Text = String.Format("{0:F2}", a/b)
Forum: VB.NET Aug 14th, 2009
Replies: 3
Views: 386
Posted By bcasp
It would probably be possible, but I would probably rethink why there are database calls inside of the constructor. I would rather split it out into a separate call.

Here's a link to a Microsoft...
Forum: XML, XSLT and XPATH Aug 6th, 2009
Replies: 2
Views: 868
Posted By bcasp
I don't think variables in XSL are mutable.
Forum: ASP.NET Aug 5th, 2009
Replies: 4
Views: 275
Posted By bcasp
If what you're trying to do is put the results of the SELECT statements in a and b into the parameters, then it's not going to work like you think it will. Your best bet is to use a stored procedure....
Forum: VB.NET Aug 5th, 2009
Replies: 4
Solved: access help
Views: 197
Posted By bcasp
Have you tried taking renamed "Colour Name" to something like "ColourName"? It might not like the space.
Forum: XML, XSLT and XPATH Jul 23rd, 2009
Replies: 1
Views: 429
Posted By bcasp
Rather than adding the Temp node from the dataset as a child of the Temp node from doc, you could loop through the children of myNode and add them as children of TempNode.


string xml = "<?xml...
Forum: C# Mar 24th, 2009
Replies: 3
Views: 339
Posted By bcasp
If you've ever expanded the file for a form in the list view in your solution explorer pane, you should see two files below the main Form source file. There should be a [form_name].Designer.cs (or...
Forum: C# Mar 24th, 2009
Replies: 5
Views: 577
Posted By bcasp
To answer you questions about the different source files, if you're using Visual Studio, each time you add a new component to your solution (as explained by ddanbe above), it is placed in its own...
Forum: ASP.NET Mar 2nd, 2009
Replies: 3
Views: 1,164
Posted By bcasp
Do you mean you need to start an application from your ASP web application? Are you trying to get it to start on the client's machine? Wouldn't it just start on the server?
Forum: C# Feb 27th, 2009
Replies: 13
Views: 779
Posted By bcasp
When you set the DataSource or load the Items manually, you could just set the SelectedIndex property to 0. That should keep you from getting errors about nothing being selected. I guess whether or...
Forum: ASP.NET Feb 26th, 2009
Replies: 5
Views: 602
Posted By bcasp
Would it be possible for you to just update the value in the database that's bound to the checkbox on the paging event?
Forum: ASP.NET Feb 25th, 2009
Replies: 5
Views: 602
Posted By bcasp
Is whether or not the checkbox is checked tied to a field in the database?
Forum: ASP.NET Feb 24th, 2009
Replies: 5
Views: 634
Posted By bcasp
Get rid of the surrounding ' for the values in your insert statement.

INSERT INTO DataStatus(CedantID, CompanyType, CompanyName, TypeOfFile, FileName,Reportingperiod) VALUES ('@CedantID',...
Forum: C# Feb 23rd, 2009
Replies: 13
Views: 779
Posted By bcasp
OK...have you tried using the SelectedItem property?
Forum: C# Feb 23rd, 2009
Replies: 13
Views: 779
Posted By bcasp
If this is the problem I think it is, I usually fix it by using the Text property of the combo box. It should allow you to get the text of what's in the combo box without the user actually having to...
Forum: C# Feb 20th, 2009
Replies: 8
Views: 1,810
Posted By bcasp
An easy approach would be to separate the values in the array by a comma before putting it into the database as a comma delimited string. Then when you bring it back from the database, just do a...
Forum: VB.NET Feb 20th, 2009
Replies: 2
Views: 701
Posted By bcasp
You would probably have to play with the count and where the message box is displayed to get this to be exactly what you want, but I think something like this should work.


Public Class Form1

...
Forum: ASP.NET Feb 18th, 2009
Replies: 2
Views: 406
Posted By bcasp
You could always just use the built in login controls assuming you're using at least .NET 2.0

http://msdn.microsoft.com/en-us/library/ms178329.aspx
Forum: MS SQL Feb 13th, 2009
Replies: 2
Views: 500
Posted By bcasp
You could try to use a case statement in the where clause to determine which value to match. You could pass two parameters to the stored procedure. One of the parameters could be used to determine...
Forum: VB.NET Feb 13th, 2009
Replies: 2
Views: 640
Posted By bcasp
You could use a Dictionary to create a set of key-value pairs. You could use the name of the food as a string key and the votes as an int value.
...
Forum: C# Feb 13th, 2009
Replies: 9
Views: 1,089
Posted By bcasp
If I'm reading this correctly, it sounds like you just want to be able to manipulate the ListView on a Form from another class somewhere in your application. Have you tried making a public instance...
Forum: ASP.NET Feb 13th, 2009
Replies: 1
Views: 392
Posted By bcasp
You might want to take a look at jQuery. It makes it really easy to manipulate objects on your page.
Forum: VB.NET Feb 13th, 2009
Replies: 2
Views: 521
Posted By bcasp
Have you tried just reading in the lines and splitting based on the "." and "{"?


Dim streamRead as StreamReader = new StreamReader("xyz.css")
Dim input As String = streamRead.ReadLine()
Dim...
Forum: VB.NET Jan 23rd, 2009
Replies: 1
Views: 323
Posted By bcasp
If all you have to do is validate each line of text, the System.IO.StreamReader class would be my choice. Just read in each line and do any validation you need to do. Splitting each line by the '\'...
Forum: ASP.NET Jan 9th, 2009
Replies: 4
Views: 1,005
Posted By bcasp
To do what you're trying to do, you're probably going to need to create an instance of the Admin_Calculator class.

How do you open the forms right now? Do you click something on one of the forms...
Forum: ASP.NET Jan 9th, 2009
Replies: 8
Views: 728
Posted By bcasp
What you are describing is easily accomplished with standard .NET code. I don't quite see why you're trying to use JavaScript (...if it's even possibly to do so in this scenario).
Forum: Database Design Jan 9th, 2009
Replies: 2
Views: 1,495
Posted By bcasp
The last sentence in your description would lead me to believe it's a separate entity only because a table for Stock would allow a query to be run against that table to get a list of things that...
Forum: ASP.NET Jan 9th, 2009
Replies: 4
Views: 1,005
Posted By bcasp
How is your application set up?

Is Admin_Calculator the name of the Form or is it an instance of the form you have created? Do you create an instance of the form to show with the .Show() method?
Forum: ASP.NET Jan 9th, 2009
Replies: 8
Views: 728
Posted By bcasp
How would you get the data from the database if you never sent anything to the server?
Forum: Python Jan 9th, 2009
Replies: 8
Views: 512
Posted By bcasp
I actually just started to pick Python back up a couple of days ago. What has probably helped me most is going through the problems at Project Euler (http://www.projecteuler.net/). It's a great way...
Forum: ASP.NET Jan 9th, 2009
Replies: 8
Views: 728
Posted By bcasp
I don't quite understand what you're trying to do. Let me see if I have this correct...

1. Have an ASP text box control on a form
2. The user enters text into the text box
3. Does the user have...
Forum: ASP.NET Jan 9th, 2009
Replies: 8
Views: 728
Posted By bcasp
My only question would have to be why do you need to? You need to think about the fact that ASP runs on the server while JavaScript is on the client.
Forum: C# Jan 9th, 2009
Replies: 5
Views: 347
Posted By bcasp
I think there's a couple of ways you could solve the problem you are having. One of the options you could use would be to make MotorVehicleAdministration a separate object.


using System;
...
Forum: VB.NET Nov 26th, 2008
Replies: 3
Views: 1,060
Posted By bcasp
I'm assuming you want to check the values before making the call to the FV function. If that's the case, you could accomplish what you're trying to do with three simple if statements. Something like...
Forum: VB.NET Apr 30th, 2008
Replies: 7
Views: 3,229
Posted By bcasp
If you're simply trying to see if a row was returned, just take your result DataSet and do something like...

if result.Tables[0].Rows.Count = 0 then
'nothing was found
end if

or

if...
Forum: Database Design Apr 30th, 2008
Replies: 3
Views: 1,613
Posted By bcasp
Do some research on normalization.

You might want to consider a simple setup where you have three tables.

Menu
MenuID (Primary Key)
MenuOutlet

Starter
StarterID (Primary Key)
Forum: VB.NET Apr 30th, 2008
Replies: 7
Views: 3,229
Posted By bcasp
Let me know if you try that and anything is deprecated. I originally used it in .NET 2.0.
Forum: VB.NET Apr 30th, 2008
Replies: 7
Views: 3,229
Posted By bcasp
The first piece of code you would need is a way to execute the queries. The following is a simple method that just takes a SqlCommand and returns a DataSet with the results.


Private Function...
Showing results 1 to 40 of 45

 


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

©2003 - 2009 DaniWeb® LLC