Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. sacheson

    pass parameters through asp button onclick?

    Also consider using a querystring for your code. It'll require a postback, so you'll have to handle that as well. ______________________________________________ When told, "goto hell", a programmer finds the method, not the destination as harmful.
  2. sacheson

    Javascript - works in some cases, not in others

    Uhm - I'm doing that. That's my point. Maybe I should explain better ... 1) put myCustomJavascript.js in the root of my project. example: <script ... src="myCustomJavascript.js"> **** THIS WORKS 2) put myCustomJavascript.js in /any/ folder on my website example: <script ...
  3. sacheson

    Example of ASP &amp; ADO and ASP.NET &amp; ADO.NET

    (in C#) First, there are now classes for accessing data in the different data sources. Some examples are: System.Data.Odbc: for creating DSNs through ODBC drivers System.Data.OleDb: MSFT Access style System.Data.SqlClient: SQL Server System.Data.OracleClient: Oracle ... etc. Your code...
  4. sacheson

    Javascript - works in some cases, not in others

    Alright - here's my situation. I'm using ASP.NET 2.0 and some javascript. The jscript works just fine if I put the files in the root directory of the project, and works fine if I upload the .js file to my web server and fully qualify the name in the src attribute of the script tag (meaning...
  5. sacheson

    Unexpected behavior using Crypto API

    thanks for the reply. Yeah, i'm using a static value as a parameter to the CryptHashData function. I found this article on MSFT's site: http://support.microsoft.com/?kbid=841715 Apparently, the lovely giant has changed the way the API works from WinXP SP1 and beyond. There is a required call...
  6. sacheson

    Unexpected behavior using Crypto API

    Is anyone here familiar with the CryptoAPI (functionality exposed through Win32 advapi32.dll)? I'm beating my head against the wall on this project, and can't seem to find anyone that has an answer. Background to the problem: using VB6 (maint on legacy project + dumb constraints == vb6) to...
  7. sacheson

    Deleting Records from an Access DB

    Curtis, I don't have much time to work through this issue today, but the problem is a known issue with the DataGrid (actually, many controls that behave in this manner). What's happening is you're doing something that is firing the OnUpdateCommand event, and the update is happening which is...
  8. sacheson

    Index was outside the bounds of the array...?

    Or you could do this ... int counter=0; counter <= tempArray.GetUpperBound(0);counter++ Both answers provided are correct, the difference is the zero based index. If tempArray has 4 values, they're 0, 1, 2, and 3. tempArray.Length returns 4 - one greater than the index...
  9. sacheson

    Question about classes

    I think the problem you're experiencing is because you're trying to declare your variable and instantiate the object in the same line, and for some reason, the compiler is not creating the CV_SELECTED month object before it is executing the code to retreive the DaysInMonth. I just created a...
  10. sacheson

    Deleting Records from an Access DB

    actually, you can do that from a Command object. Are you using the System.Data.Odbc namespace? Do you have a System DSN set up to access the db? If so ... string sql = "DELETE ..." OdbcConnection cn = new OdbcConnection(<your dsn params here>); cn.Open(); OdbcCommand cmd = new...
  11. sacheson

    going line-by-line through a Multiline textbox

    nickmollberg, OK, here's what you do (and in C# even!) ... you've created your form with a multiline textbox, right? If so, you can loop through each line this way (on a button click event): private void button1_Click(object sender, System.EventArgs e) { string[] lines =...
  12. sacheson

    NEWB question about accessing Pocket Access Data.

    Emmanuel, Hey - I've been looking around to see if I can answer this question for a day or so. Unfortunately, it appears that you're going in a direction that's not so Microsoft supported. I found this newsgroup article...
  13. sacheson

    Property question

    only 120 lines of code? You can do that in no time. ;-) Best of luck to you. ______________________________________________ When told, "goto hell", a programmer finds the method, not the destination as harmful.
  14. sacheson

    Property question

    Hey there, if I may contribute something here (fresh off the C# exam and still remembering way too many Microsoft definitions) ... I think your first example is demonstrating a property where, as Chip says, can consist of code to perform some validation, and the second is called a 'field' of a...
  15. sacheson

    Populating a listbox

    Awesome! Good job. ______________________________________________ When told, "goto hell", a programmer finds the method, not the destination as harmful.
  16. sacheson

    Populating a listbox

    chmilz - Hey, definitely no worries! It's actually fun to help. And referring to you getting some books, I'm talking more about you learning than complaining about me helping. When I first made the plunge into C#, it was on a high-priority, fixed deadline project - I spent 3 months of 12+...
  17. sacheson

    Populating a listbox

    what happens when you do this ... private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here AWBSL.FileSet FileSet = new AWBSL.FileSet(); DataTable dt = new DataTable(); FileSet.List(out dt)...
  18. sacheson

    Populating a listbox

    in sql plus, you might want to try ... TRUNCATE TABLE log_file; COMMIT; You can also DELETE FROM log_file; COMMIT; the big diff is that you can rollback a DELETE, and can not rollback a TRUNCATE - AND TRUNCATE is much faster (esp on big tables) because of the rollback with the DELETE...
  19. sacheson

    Populating a listbox

    to get your code to display like mine, click on the Process TGML link below the window you type your reply into. It will give you a help sheet for the TGML tags. It should look like this when you're typing: ... <your code goes here> ... Regarding the values still being there, did you...
  20. sacheson

    Populating a listbox

    Yeah, that's odd. Are you sure you have the database name specified correctly? And the table? ______________________________________________ When told, "goto hell", a programmer finds the method, not the destination as harmful.

Part and Inventory Search

Back
Top