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.
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.
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...
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
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...
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.
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...
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 =...
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
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
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...
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...
Does ASP.NET have a way to set LINKS or SCRIPT tags through a variable?:
For example, from:
<head>
<LINK href="../../Styles/Master.css" type="text/css" rel="stylesheet">
<script src="../../Scripts/Common.js" type="text/javascript"></script>...
How does one get the SelectedItemStyle to apply in a DataGrid when using a TemplateColumn to "select" a row? For example:
<asp:TemplateColumn >
<ItemTemplate>
<asp:RadioButton Runat="server" AutoPostBack="True" GroupName="Select"...
Is it possible to redefine the same variable as two different "types" (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 "temp".
Thanks
--Lenard
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.