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: hamking01
  • Content: Threads
  • Order by date
  1. hamking01

    asp.net validation controls and database validation

    What's the recommended best practice for data validation? Is asp.net validation controls enough or should I also create validation in sql stored procedures? What do you guys think? I was discussing this with a co-worker, and feel that asp.net controls should be enough and would be easier to...
  2. hamking01

    Refresh GridView

    I have an asp:table in a webpartzone that contains a textbox and button and an asp:gridview in another webpartzone. When the user inputs data in the textbox and clicks the button, it inserts into an sql table. The gridview displays data in the sql table. The gridview is using an...
  3. hamking01

    Setup file options

    When creating a setup/deployment installer for an asp.net application can options be added to allow users to choose the back-end database and based on the selection use a certain connection string for the web.config file. How do distributed applications setup the back end database? Or must...
  4. hamking01

    Install db from backup

    I received a backup of a db with .bak extenstion. I'm trying to restore it on my local computer. Could anyone tell me the steps of setting this up. I've tried from query analyzer's master run the following command: restore database bt from disk = 'c:\BolTrab_28.10.2005.bak' But this...
  5. hamking01

    select based on either or

    I trying to add up values of a column based on whether another column has a date entered as such: SELECT P.Plant , ISNULL(SUM(CASE WHEN F.dt_Sign BETWEEN '01/01/00'AND '12/31/00' THEN M.AppvdAmount END), 0) AS CurrentTotal , ISNULL(SUM(CASE WHEN F.dt_Sign BETWEEN '01/01/00' AND...
  6. hamking01

    datalist binding from multiple tables

    I have a dataset that returns multiple tables. Some of these tables have the same column names. I'm trying to bind the columns to itemtemplate of datalist. How can I tell it to bind Table1 ColumnA instead of Table3 ColumnA? I've played with the Container.DataItem but can't get it to work...
  7. hamking01

    Less coding from Select..Case

    I have a multi dimensional array of textboxes, arrTxtBx(37, 3), and data populated in a datatable, dtResult. For each row in datatable if 1st column is DbNull it'll return "0" for the 1st set of 3 textboxes, if 1st column in not Dbnull it'll return columns 3, 4, 5 as text for the 3 textboxes...
  8. hamking01

    Delete sql with WHERE ... IN ....

    I have a dropdownlist with list of names and am trying to allow users to select multiple items and submit form. OnClick, it will delete the selected items from the database. I've tried deleting using the 'WHERE ABC IN (1,2,3)' in the stored procedure. But ABC column is integer and I can only...
  9. hamking01

    Delete with sql where ,,, in...

    I have a dropdownlist with list of names and am trying to allow users to select multiple items and submit form. OnClick, it will delete the selected items from the database. I've tried deleting using the 'WHERE ABC IN (1,2,3)' in the stored procedure. But ABC column is integer and I can only...
  10. hamking01

    datagrid image button column confirmation pop-up

    I'm trying to datagrid buttoncolumn of images show a popup window when clicked. I can create it when using the traditional pushbutton, but once I change the button to an image error results as follows: "InvalidCastException: Specified cast is not valid." for line: "Dim deleteButton As...
  11. hamking01

    join strings insql statement

    I'm trying to format the output of one of the fields as follows: SELECT EEEMPN, EENAME, TIATIM, (SUBSTRING(TIATIM, 4, 2) + '/' + SUBSTRING(TIATIM, 6, 2) + '/2005') AS NewDate I'm trying to display the fourth column so that it get two digits from the 1st substring, add a '/', two digits from...
  12. hamking01

    html/javascript get directory

    Can I get the current directory that the web page is located in with javascript or html. I've created the same function in asp.net user controls but need to recreate it in html/javascript. Can anyone point me in the right direction? Thanks for any input.
  13. hamking01

    display image dynamically

    How can I display an image dynamically based on certain criteria. For example, <img src="../image/<% =Image%>.jpg/> Will display the image of the Image() Function returned results. Can I pass a parameter 'x' in the <img src="../image/<% =Image(x)%>.jpg/> And do if..else in the Image()...
  14. hamking01

    stock quote and charts

    I'm looking for a free stock quotes and charts that I can incorporate into my website. I used to use stockpoint but they've been taken over by marketwatch that now charges a fee. Does anyone know who still offers this service free?
  15. hamking01

    button to view file in browser outside of inetpub

    can i have a asp:button to view/open a file in the browser. I can do it with a hyperlink, but i'm trying to do it with a button but can't figure out how. Any help?
  16. hamking01

    prevent image menu from showing

    Can I prevent the image menu from showing when the mouse rollovers an image. My site has a lot of pictures on them and I don't like it when the menu keeps showing. It sometimes covers the logos.
  17. hamking01

    Drop currency formatting for DB insert

    I have a webform displaying txtboxes in currency format. User may want to modify data. But if they modify some data but not the textboxes with currency format, the stored procedure treats the values as a string because of the $ and commas. How can I have the parameters of the stored...
  18. hamking01

    printer friendly div inside td

    I'm creating a printer friendly page that has a top menu, left side menu and a main section as follows: <div id=topmenu> <table> <tr> <td>TopMenu here</td> </tr> </table> </div> <table> <tr> <div id=sidemenu><td>SideMenu here</td></div> <td>MainSection here</> </tr> </table> I have a...
  19. hamking01

    check page load datatable for values

    I have an datatable that loads the different values of textboxes on page load. Each row being a record for db. Users could then change/modify values of textboxes and click button to update record. Upon button onclick, it will check the page load datatable to see if record (row) has values...
  20. hamking01

    pass datatable to Sub

    I'm trying to pass a datatable to a sub to perform some actions. I've got something to this sort: Function dtFeedbackLoad() Dim dt As DataTable = New DataTable("Feedback") Dim dr0, dr1, dr2 As DataRow Dim Id As DataColumn = New DataColumn("Id") Dim Recv As DataColumn = New...

Part and Inventory Search

Back
Top