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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by davecapone

  1. davecapone

    Outputting an Image to a Page from a Database

    I was wondering if anyone know how to output an image to a page that is stored as a Base64 encoded image in a database to a web page inline. Meaning something like: <img src=&quot;GetImage()&quot;> I'm searched the internet and have only been able to come up with 1 article and that was how to...
  2. davecapone

    How do I update a database?

    Sorry for the delay in response, if you know the IDNum of the Row and it is the primary key in the Database table change your initial SQL select statement to include a WHERE clause so it ONLY slects that row. Then the Row ID would have to be 0.
  3. davecapone

    Image button...not...a...button....

    I honestly don't think there is a way other than using an image swap in javascript handling the onmousedown and onmouseup events.
  4. davecapone

    Parenthesis Expected error in ASP.NET!

    Hi Z, You got a couple problem here, first off you are using the ToChar function. A char in C# is a 1 character string so there will be an error in that function although you are not seeing it yet because of your other problem. In C# a simple \ denotes a newline character so it must be...
  5. davecapone

    Spooling Data to Printer

    I'm actually looking for the data output to occur server side. I'm pretty sure its possible using the system.Drawing.Printing Namespace and the System.Drawing.Graphics namespace Just wondering if someone had done it before or knew of anyplace to see some examples.
  6. davecapone

    Spooling Data to Printer

    anyone?
  7. davecapone

    Spooling Data to Printer

    Does anyway know anyway to automatically spool a image file to a printer without user intervention?
  8. davecapone

    Printing to a Remote Printer

    I have access to the router of both machines and both machines can have dedicated ip addresses setup for them if necessary available publically. I'd prefer them to have a public ip address that is also filtered by ports so only the necessary ports are open however.
  9. davecapone

    Printing to a Remote Printer

    Is it possible to setup a Winodows 2000 Server to print to a printer outside of the LAN. If so what ports need to be opened up on the Router and how is it configured?
  10. davecapone

    How do I update a database?

    to update a DB record assuming you have a table a table with 2 columns ID and theField: SqlConnection objSqlConn=new SqlConnection(); objSqlConn.ConnectionString=&quot;yourDSN&quot;; objSQLConn.Open(); String mySQL=&quot;SELECT * FROM myTable&quot;; SqlDataAdapter da=new...
  11. davecapone

    Replacing Boolean Value with Yes/No in DataGrid

    Well, I figured out one way to do it with a Tertiary Operator as follows: <%# (Convert.ToBoolean(DataBinder.Eval(Container.DataItem,&quot;CustomerAvailable&quot;))?&quot;Yes&quot;:&quot;No&quot;) %> Is there a Better/More Efficient Way?
  12. davecapone

    Replacing Boolean Value with Yes/No in DataGrid

    I have a DataGrid bound to a DataSource which contains a boolean DataField. I am wondering if there is a way to display Yes/No in the DataGrid instead of True/False? Can you do: <%# if (DataBinder.Eval(Container.DataItem,&quot;boolField&quot;)) response.write &quot;Yes&quot...
  13. davecapone

    Problem with Attempted Table Viewstate Workaround

    OK in regards to the &quot;Preserving ViewState when Adding Dynamic Controls&quot; Post. I determined that I might be able to get away with not having to add tablerows dynamically if I use a DataGrid inside a DataGrid's ItemTemplate and then using a single column Table inside that nested...
  14. davecapone

    Preserving Viewstate When Adding Dynamic Controls

    Oh and also the ability to alter a row's visibility
  15. davecapone

    Preserving Viewstate When Adding Dynamic Controls

    Well maybe I am missing something, but the primary reason I thought I couldn't use a DataGrid was I needed the ability to use use rowspans and columnspans which I didn't think was possible with DataGrid, but if it can be done, I'd be interested to here how.

Part and Inventory Search

Back
Top