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 bkrike 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: *

  • Users: oddball
  • Content: Threads
  • Order by date
  1. oddball

    Keystroke Event

    I want every keystroke of typing a numerical value (weeks) into a text field, to immediately change values in two other fields. Have put the script in the onblur__ Action but to trap every keystroke I put it in the Format Custom Keystroke Action. This doesn't seem to work as I had thought ie...
  2. oddball

    Getting the date format from a field

    Have got a field which has a date format (dd mmmm yyyy). The date is auto formatted when the user types in the date e.g.: 1 jun 2003 -------> 01 June 2003 However, if I then access the value of that field i get the unformatted user input rather than the nicely formatted date shown to you on...
  3. oddball

    Using a text box for a Bulletin board input

    How do i get the input typed in a multiline text box to register carraige returns as <br>'s when displaying as html in the resulting 'thread' datalist. Is there a simple encoding/conversion method or do i have to recognise and replace the carraige returns at say the stored procedure level...
  4. oddball

    Referencing the page Body or Form from Global.asax?

    I need to render the Body or Form tags of every aspx page loaded with a javascript event. This event will open a popup when the main browser is closed. I can add javacript events to objects using: object.Attributes.Add(&quot;onunLoad&quot;, &quot;Logoff.aspx&quot;) So can i reference the...
  5. oddball

    How do i work out time spent on site when logged in

    How can i work out the duration of a Forms Authenticated User on a website so that a monthly total can be kept in the database.
  6. oddball

    How to encode carriage returns into &lt;br&gt;

    DB stores input from a text area (nvarchar 3000) with carriage returns in it, is there an easy way to get it to then display this in a datareader with the carriage returns still in place ie. <br> instead cheers, si
  7. oddball

    Dealing with DBNull results in a Datareader

    Always have this problem whenever a DB query returns Null values for certain columns to my Datareader. I don't know how to check if any of the values returned are Null before setting the control Text property or SelectedIndex to it. With the code below i get the following error message...
  8. oddball

    Data Types

    Have the following stored procedure, that crops html content out of the Description Column in my Events Table: =========================================================== ALTER PROCEDURE GetEvents ( @ModuleID int ) AS SELECT ItemID, CreatedByUser, WhereWhen, CreatedDate...
  9. oddball

    Stuff Function &amp; NText

    Have a 'Description' Column in my SQL7 DB which is currently NVarchar (4000). Need to change the data type to allow more characters. NText seemed to be the way to go, but it causes errors saying that its not a valid selection for Argument 1 of the Stuff function (I thought the stuff function...
  10. oddball

    Extracting Day, Month and Year values individualy from a date

    How do i get the numerical Day component from a Date variable. ie I have a variable declared, and assigned a value as below: =========================================================== Dim dateofbirth as Date Dim users As New ASPNetPortal.UsersDB() Dim dr_id As SqlDataReader =...
  11. oddball

    Link to external text file

    New to Director, but need to create a Director project that will effectivley be a template that references a series of files on starting, to provide the content. These files will be of the following type: Graphic file (eg .bmp) Text Movie Clip (.mpg) This will allow the end user to change the...
  12. oddball

    Removing sections from strings in rows returned

    Have got a stored procedure that returns all news announcements from a table. The string however contains html references to images eg: <br><img src=http://localhost/WAFPortal/images/itemimages/aust104.jpg><br> Is it possible to remove all content from the string enclosed by < > when...
  13. oddball

    Full-Text enabling problems in Enterprise manager

    I need to do a FREETEXT search on several database tables but the Full-Text option is disabled (greyed out) in Enterprise manager at server, database, and table levels. What am i doing wrong, cheers, si
  14. oddball

    Stored Procedure/ Transaction problem

    Have written a stored procedure that submits Company info into a Company Table, User info into a User Table, and two inserts into a UserRoles table. What i want to achieve is if either the User or Company INSERTS fail becuase of a duplicate field in Email or CompanyName, then all four inserts...
  15. oddball

    Popup window question

    Similar question to one i posted recently. What is the syntax to refer to the value of a DropDownlist selection from within a call to a javascript function: =========================================================== <td> <a class=&quot;CommandButton&quot; runat=&quot;server&quot...
  16. oddball

    LIKE stored procedure conundrum

    When i pass the following stored procedure the variable @LetterRange with values: a-e or abcde why do i only receive back company names begining with 'a'? =========================================================== ALTER PROCEDURE GetAlphabeticalCompanies ( @LetterRange VarChar ) AS...
  17. oddball

    Another Datalist question!

    I want to display a size restricted window with no menu bar from a Hyperlink control in a Datalist. The URL needs to also pass the CompanyID. The only way i know to open a mini window is using Javascript, so I am trying to combine the call to the Javascript function with the Databinder of the...
  18. oddball

    Limiting rows returned from a stored procedure

    Is there a simple way of returning only five results from the following stored procedure (ie those 5 companies who registered most recently) ========================================================== ALTER PROCEDURE GetNewestCompanies AS SELECT CompanyName, RegDate FROM Company...
  19. oddball

    Simple Datalist question

    Whats the syntax for checking if a datalist is empty? cheers, si
  20. oddball

    What is the syntax to test if a sel

    What is the syntax to test if a selection has been made in a listbox? I want to execute a sub when clicking a button, but only if they have selected a value in a listbox, cheers, si

Part and Inventory Search

Back
Top