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

    Trying to create a linq OrderBy alias

    I use the following to sort text containing strings and integers naturally Current .OrderBy(x => x.some_class_property_string, new OrdinalStringComparer(true))) I have been trying to create an alias (I hope I am using the correct terminology) so I can centralize and end up doing the...
  2. mrgulic

    Why doesn't my jQuery extension work? (TypeError: validStatus.arrayContains is not a function)

    I wrote the following to enable/disable elements, and it works fine. jQuery.fn.enable = function (enable) { var $this = $(this); if (enable) { $this.removeAttr("disabled"); } else { $this.attr("disabled", "disabled"); } }...
  3. mrgulic

    SELECT UNION statement works in MSSQL but not in Oracle

    The following query SELECT column1, column2, column3 FROM [table1] UNION ALL SELECT '0',NULL,NULL FROM [table1] HAVING COUNT(*)=0 in MSSQL it will produce the following results (which i will display as comma separated values) when there are no records 0,NULL,NULL if there are records then...
  4. mrgulic

    Where is Textcopy.exe?

    I have installed every single component for SQL Server 2008 R2 Developer Edition except for Reporting and Analysis Services and textcopy.exe is nowhere to be found. Everything I have read says it should be under C:\Program Files\Microsoft SQL Server\100\Tools\Bin\ or C:\Program...
  5. mrgulic

    Need help with DISTINCT on single column with multiple output with multiple joins

    I have a GridView (populated by MSSQL) that displays information about order line items. Each Line Item is part of an Order and each Order belongs to a Project (3 tables). The GridView has several DropDownList's that filter the GridView results (based on user selection). I am currently...
  6. mrgulic

    How do you open a UNC path from ASP.NET

    My app retrieves all servers on the domain and populates a listbox with the server name. When server is clicked in the listbox, the shares on that server is listed in another listbox. When the share listbox is clicked, details about the share is displayed in labels, etc. What I am trying to do...
  7. mrgulic

    How to get only users from DirectorySearcher query

    I have the following code that i use to search for users in the domain. When I enter a complte user name it finds it but when i use wildcards and gets even computer names that contain the string too. How to i filter for only only users? There has to be some flag that indicates a AD objct is a...
  8. mrgulic

    Element 'div' cannot be nested within element 'table'.

    What can i use instead of a <div> to wrap around a <tr> as I get a warning on build. It still works as expected but I don't like warnings. <table> <div id="div_VENDOR" runat="server" visible="false"> <tr> <td class="td_label_grey"> <label class="label_label">Vendor:</label> </td> <td>...
  9. mrgulic

    Oracle 8 Left Join Not Working

    I have the old Oracle 8 database that I am trying to get some data off but I can't quite get the query right. SELECT TO_CHAR(TRANSACTION0.DOCUMENT_DATE, 'YYYY-MM') AS MyDate, TRANSACTION0.FK_TRANSMISSIONFK, TRADING_PARTNER.NAME, TRANSACTION0.DOCUMENT_NAME, TRANSACTION0.DOCUMENT_ID...
  10. mrgulic

    Javascript not running on PostBack (ASP.NET, C#)

    Basically this function limits the amount of text that can be entered in a textbox based on the radion button selected. The problem is that on postback of page neither javascript function is being called so no maxlength is set on the textbox. Postback occurs when user clicks a submit button, a...
  11. mrgulic

    Find Control Inside UserControl

    I have an "ascx" referenced inside an aspx page. I was using the following in the aspx page to reset certail controls to "". It worked fine, but when i decided to refactor and moved it into the referenced ascx page it stopped working. I tried adding another depth to it but I can't seem to find...
  12. mrgulic

    Could not load file or assembly 'Microsoft.Office.Server.Search

    I keep getting the following error when trying to load a page that I am creating in Visual Studio with C#. Could not load file or assembly 'Microsoft.Office.Server.Search, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. An attempt was made to load...
  13. mrgulic

    How do i remove the trailing white space on DataBind?

    I have the following code that gets data from SQL2K5. I have tried setting the ANSI padding is FALSE and i have tried nchar and nvarchar, but they all keep the space. I read that MS recomends leaveing the whitespace and removing it at the application level, which is why I am here...
  14. mrgulic

    Why does my fields have white space after the data?

    I am using SQL 2005. Microsoft SQL Server Management Studio 9.00.1399.00 I just started noticing that the data in my fields had trailing white space in it equaling the fieds size less the data. Example: "SAN/NAS " The field type/size is: nchar(25) Even when I do the...
  15. mrgulic

    &quot;Incorrect syntax near the keyword 'user' in&quot; INSERT INTO statement

    I do not understand why I am getting this error. I have the exact statement used elsewhere accessing a differnt table with different field names of course and that one works. These are the SQL fields: SELECT [user_id] ,[user_fname] ,[user_lname] ,[user_details]...
  16. mrgulic

    Loop Through Web Controls When Using Master Page

    I am trying to perform control.enable = true/false on a page by looping through all the controls. I have tried to modify the following method that I found on http://www.west-wind.com/Weblog/posts/5127.aspx, to suit my needs with no sucess. public static Control FindControlRecursive(Control...
  17. mrgulic

    Get autonumber from new SQL INSERT

    I have the following code to create a new record in SQL but I don't know how to get the autonumber for the new record. SqlCommand cmd = new SqlCommand("INSERT INTO device (" + "device_name,device_serial_num,device_created,device_created_by)" + " VALUES (@name, @serialnum, @created...
  18. mrgulic

    'DirectoryServices' does not exist in the namespace 'System'

    I am new to .NET, C# and programming in general. Anyway, I am trying work with the System.DirectoryServices namespace. The build completes sucessfully but I keep getting an error in the browser. (see below). I have added the System.DirectoryServices reference, pointing to...
  19. mrgulic

    Call Method To Fill DropDownList From SQL

    Cation: I am new to c# and all things .NET so please have mercy. I am trying to call a method from a non local class (not in the aspx or the code behind). All examples that I find are all putting the code in the the .cs behind the .aspx page. Thats not what I am looking for. This is what i...
  20. mrgulic

    Lost SBS 2003 Remote Desktop connectivity.

    I rebooted my SBS 2003 server yesterday and for some reason I am refused remote connection to it now. There have been no updates applied or changes to the configeration. RDP is enabled and allows access to users through GPOE. The custom port number (8089) is still correct and netstat shows...

Part and Inventory Search

Back
Top