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. LenardD

    Deployment Setup Project Question

    Does anyone know what the trick is to creating a shortcut to the "APP.EXE.CONFIG" file contained in the "Primary Out"? I'm trying to create a shortcut in the program menu so that I can have notepad load it when clicked. Thanks.
  2. LenardD

    Setting window.opener.Location without reloading the form

    I was afraid of that. I don't want to go that route if I can help it. :) --Lenard
  3. LenardD

    Setting window.opener.Location without reloading the form

    How does one set the window.opener.location without reloading the form? I tried using "window.opener.location.href" but it still reloads the form. I need to do it on the opener form because I need to perform a postback on it later. (I'm trying preserve the values its fields.) Thanks.
  4. LenardD

    I would like to create a function that.....

    I just realized that your code is for a procedure and not a function. I wanted a function so that I can use it in my SELECT. I tried to convert it but when I use it, something about "Only functions and extended stored procedures can be executed from within a function." Here is...
  5. LenardD

    I would like to create a function that.....

    hmckillop, How would you modify your function so that it returns a string....for example something that is functionally the same as: SELECT @telephone = Telephone FROM BusinessDetails WHERE ID = @ID RETURN @telephone
  6. LenardD

    I would like to create a function that.....

    Thanks LogicalManUS, I guess DSQL is the way to approach it. I just wanted to avoid giving SELECT permissions to those tables I would be using.
  7. LenardD

    I would like to create a function that.....

    Thanks Guys, The first method is what I wanted to avoid because I would have to hardcode the columns and tables. I'll actually be looking them up from a table to build a custom list of preferences for the user to pick from. The second method is using dynamic sql which as you said is more...
  8. LenardD

    I would like to create a function that.....

    I would like to create a function that retrieves the value of a field by passing the string name of the table and field. For example: returnValue = dbo.LookupValue('BusinessDetails', 'Telephone') I could do it via dynamic sql but is there any other way? Thanks.
  9. LenardD

    Running Instances of an Application

    I was wondering if anyone would know how to configure IIS for the following senario: Setup a base directory structure that contains core files of an application (ASP.NET). Then I would like to have IIS start an instance for each subdomain navigated to. For example, when a client logs into...
  10. LenardD

    Taking the first field from a DataSet

    You can't take a DataRow and expect it to be converted into a string. Remember that Rows(0) is a DataRow object and not a string. It contains fields. If you want to pass it the way you have it, you need to convert it to, say, a delimited string first. EXAMPLE in C#: string record =...
  11. LenardD

    Populating and choosing default in a DropDown

    If you are going to use DropDown.Items.FindByValue(MyValue).Selected = true method, you have to do a DropDown.ClearSelection before or you will get an error the next time you set it again. --Lenard
  12. LenardD

    Populating and choosing default in a DropDown

    Here is another way you can set a default: DropDown.Items.FindByValue(MyValue).Selected = true; --Lenard
  13. LenardD

    Weird CSS...bug?

    You need to save the StyleSheet after you make the change and you need to refresh the form. The latter is done by either closing the form and opening it up again or toggling between the form's Designer and HTML views. --Lenard
  14. LenardD

    Can't get SelectedItemStyle to work with DataGrid's TemplateColumns.

    I figured out my problem. In my StyleSheet, I defined a "TD" tag and it was overriding most of my styles I defined for my datagrid. --Lenard
  15. LenardD

    Populating and choosing default in a DropDown

    I could but that would take the fun out of it for you......just kidding.....here are you: Public Shared Function AddBlankItem(ByVal dt As DataTable, ByVal blankName As String) As DataView Dim dtTemp As DataTable = dt.Clone() ' Add the "blank" item first Dim drTemp As...
  16. LenardD

    Populating and choosing default in a DropDown

    If you want a default of no-entry, use -1. Another idea is to add a blank item in the first position on the list and then set the SelectedIndex = 0. Keep in mind that the latter then can't be bound. public static DataView AddBlankItem( DataTable dt, string blankName ) { DataTable...
  17. LenardD

    Settings LINKS or Scripts with a Variable

    Does ASP.NET have a way to set LINKS or SCRIPT tags through a variable?: For example, from: <head> <LINK href=&quot;../../Styles/Master.css&quot; type=&quot;text/css&quot; rel=&quot;stylesheet&quot;> <script src=&quot;../../Scripts/Common.js&quot; type=&quot;text/javascript&quot;></script>...
  18. LenardD

    Populating and choosing default in a DropDown

    How about something like: DropDown.SelectedIndex = DropDown.Items.IndexOf(DropDown.Items.FindByValue(ID)); --Lenard
  19. LenardD

    Can't get SelectedItemStyle to work with DataGrid's TemplateColumns.

    How does one get the SelectedItemStyle to apply in a DataGrid when using a TemplateColumn to &quot;select&quot; a row? For example: <asp:TemplateColumn > <ItemTemplate> <asp:RadioButton Runat=&quot;server&quot; AutoPostBack=&quot;True&quot; GroupName=&quot;Select&quot...
  20. LenardD

    Redefine Variables

    Is it possible to redefine the same variable as two different &quot;types&quot; (a.k.a. classes) within the same scope? Sometimes I just want to use the same variable name over and over since it is just a &quot;temp&quot;. Thanks --Lenard

Part and Inventory Search

Back
Top