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

    Debugging long SQL queries generated with c#

    I have been using a tool called sql pretty printer for a while which is great for formatting sql queries. (Basically you pass in a long string to the tool and it places the enters in logical places in the query and then highlights keywords. I am looking for a free tool/plugin for vs.net to...
  2. mike509123

    Image not displaying, from javascript

    I have the following line of code in my javascript. document.all['test_label'].firstChild.data = '<img src="/images/cabinet.gif" height=15 width=15>Check this out'; When it goes to render the page it displays it as <img src="/images/cabinet.gif" height=15 width=15>Check this out Any idea why...
  3. mike509123

    Covert one dimensional array to coma delimited string

    Is there a quick way to convert a one dimensional array into a comma delimited string. I know i can just iterate through the array and generate the string using concatination. Is there a better or simpler way? (FYI: The elements in the array are numbers) thanks
  4. mike509123

    Applying css via javascript

    I have the following code: <a onmousedown='test();' onmousover=''><img src='button.gif'/></a> I want to place some code in the onmouseover to apply the following css style to to the image when a user mouses over the image. cursor:hand; filter...
  5. mike509123

    Modifying query to return one aditional column with a default value.

    Hi, I have the following query: select first_name,last_name, address from address_book which returns the following table john smith 393 Jones RD bill smith 345 Jenkins RD I would like to modify the query so the resulting query returns a table that looks like this john smith 393...
  6. mike509123

    Save to Disk IE7 vs IE6

    Hi, I have a modal dialog (window.showModalDialog) which contains the following link: <a href='download.aspx?file=test.txt'>" + "test" + "</a> Note: This issue only arises when the link is clicked from inside a modal dialog window. IE6 When i click the link a blank window shows up, and then...
  7. mike509123

    Joining to sql statements

    I have two sql statements. The first has a unique primary key on name, whereas the second is a one to many relationship on name. I would like to join the two queries so the result looks like: John Smith, 234 Jones Rd, 430-293-3928, note1 John Smith, 234 Jones Rd, 430-293-3928, note2 John Smith...
  8. mike509123

    design question

    Hi, I have a several white links on a dark green background. (which looks good) I need to have some of the links "disabled" what color should I make the disabled links? Thanks
  9. mike509123

    CSS, disabled links

    Hi I have the following two lines in my code (see below) the only difference is that the title is different in each and one is disabled while the other is not. I created a css style see below which is applied to both. Is it possible to create two css styles and have one applied to the disabled...
  10. mike509123

    Searching through stored procedures

    Hi, I am currently using Microsoft SQL Server Management Studio to look at the contents of my database and view/edit my stored procedures. Is there a way using SQL Server Management Studio to search through all the stored procedures for the words 'accounts'. I know one solution i have is to...
  11. mike509123

    Javascript, regular expressions

    Hi, I am looking to create a regular expression that only allows Upper Case and Lower Case Letters and hyphens. I have the following so far which allows for uppercase and lower case characters. How do I modify it to include "-" also? var re = new RegExp("^([a-zA-Z])+$");
  12. mike509123

    ASP.net Panel Scrollbards

    Hi, I have the following code <asp:Panel ID="Panel1" runat="server" Height="150px" Width="200px" ScrollBars="Auto" CssClass="box"> here is my text...</asp:panel> when the code runs i see a scrollable panel with a lot of text. When i hit the print button, it only shows me the text that i can...
  13. mike509123

    Insert rows into a datatable or datarow[]

    I have a Datatable with 100 rows in it. (I can easily convert it into a Datarow[].) Is there anyway to insert rows in the middle of these structures. Meaning can i insert a new Datarow in between rows 35 and 36. (If there is no way to do this, are there any other data structures I can easily...
  14. mike509123

    How to add columns to a table?

    Hi, I know you can add a row to a table by doing Table table = new Table(); table.Rows.Add(new Row()); How would you go about adding a column to that table? Thanks.
  15. mike509123

    Adding Column to a table

    Hi, I know you can add a row to a table by doing Table table = new Table(); table.Rows.Add(new Row()); How would you go about adding a column to that table? Thanks.
  16. mike509123

    XML Writer to write html

    Hi, How would i use the xml writer in c# to write the following? <TABLE cellspacing=1 cellpadding=1> <TR> <TD align=center colspan=4><FONT size=4 color=blue>Price Quote</FONT></TD> </TR> <TR> <TD><B>Product</B></TD> <TD><B>Price</B></TD> </TR> </TABLE>
  17. mike509123

    Excel writing to one cell.

    I wrote the following code (full source code at the bottom) which writes to cells A7 and B7 in Book1.xls. I am wondering how can I modify the following code so it only write to one cell. I attempted the following comOleDBCommand.CommandText = "UPDATE [Sheet1$A7:B7] SET F1 = 5, F2 = 'Cell G3'"...
  18. mike509123

    What datatype should i use?

    Not sure what data type to use for this. (language c#). I have a function that takes in three values a row, column and a string. (I have no idea how many rows or columns there will be). I will later need to pull the values in the following order. First Row, First Column First Row, Second...
  19. mike509123

    Excel Spreadsheet/ADO.net

    I wrote the following code (code below) which opens an excel spreadsheet named Book1.xls. Afterwards it writes the text 5 in cell A7 and the text "Cell G3" in cell B7. This works okey the only issue is that when I open the spreadsheet and place the curser in cell A7 the number 5 is formatted as...
  20. mike509123

    Backing up a database from PROD to Dev

    I saw the following code on the codeproject which allows you to copy a table from one server to another server. Is there a simple way to do the same thing but instead copy a database? SqlConnectionStringBuilder cb = new SqlConnectionStringBuilder(); cb.DataSource = "SQLProduction"...

Part and Inventory Search

Back
Top