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 strongm 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. 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.
  16. davecapone

    Preserving Viewstate When Adding Dynamic Controls

    Hi, I have an ASP.NET Page that has an asp:table. On Postback I dynamically add rows to this Table, however on subsequent postbacks I get the following error message: Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to...
  17. davecapone

    regex problem

    Hi I wouldn't use Regex at all for your problem. I would simply use the split function. String pic=&quot;/files/images/image.jpg&quot;; String[] splitPath=pic.Split('/'); String FullFileName=splitPath[splitPath.Length-1]; String FileName=FullFileName.Split('.')[0]; String...
  18. davecapone

    Dynamic Table Problem

    Hey JFrost, I tried that and was having some problems and I figured maybe a DataTable varible couldn't be carried in a Session Variable, but maybe you can help me. This is the code I have: <code> void Page_Load(Object sender, EventArgs e) { if (!IsPostBack) { InitDropDowns(); DataTable...
  19. davecapone

    Dynamic Table Problem

    Also, I'm wondering if a datagrid can be used for this somehow. The problem is the Data doesn't come from a Database or other source the data is dynamically added with each entry into the form and click of the button
  20. davecapone

    Dynamic Table Problem

    Hi, I have an asp.net page that has an asp table on it. what I am looking to do, is add rows to that table when someone fills in information in some text boxes and clicks a button. Everything works perfectly, button clicked, new row added. the problem is, when you go to add another row, it...

Part and Inventory Search

Back
Top