No I just know what they are from the names that I give them in my SQL statement. They aren't used a whole lot I guess but there are more than a couple of them so I was wondering if I should be storing these values a different way rather than Session variables, is there a more efficient way to...
Right now I am using the following code to retain information from a single record from a database:
for (fieldname=0; fieldname<=SQLReader.FieldCount - 1; fieldname++)
{
Session[SQLReader.GetName(fieldname)] = SQLReader[fieldname];
}
as you can see I am setting each...
I have a datareader names SQLReader. Is it Possible to say something like this in C#:
foreach (FieldName description in SQLReader)
{
Session[description] = SQLReader[description].ToString()
}
I am returning only a single row in the datareader and want to loop through each field and set the...
I am trying to pull information from a SQL database using C#. Here is the code that I am using:
Conn = new SqlConnection( @"Server=WEBSERVERW2K; UID=sa; PWD=39x9iVu1; DataBase=Dealer Quoter Dev;" );
Conn.Open();
SQL="SELECT * From ReportGlue";
Comm = new SqlCommand( SQL, Conn )...
Is there a way to split a string using more than one character in C#? I am using this line of code:
string[] NameSplit = itmPlayer.Text.Split(new char[] { ", " });
But get an error saying there are too many characters in character literal.
yes I have seen some nice scripts on doing this but the only problem is that we don't want to restrict the user to a give format such as mm/dd/yyyy or something like that for example the default value in the text box for today would be
Dec 19 2006
but the user could also enter in 12-19-2006 or...
Hi I am validating a dates put in by a user and I am almost done, but the only problem I run into is that if the user puts in a value like 3/32/06 it gets converted to a date of April 1st. I tried to use the getMonth function to compare the before and after the conversion but it won't let me do...
I know this question is elementary but, how do i make it so a user can only select an item from the list in a combo box and not be able to type any values into the box itself. I saw some things about a drop down list but could not find that control.
I have a program that reads in a text file and writes it out as an XML file. The problem is that whenever I come across a greater than or less than sign it is being displayed as this ">" and "<" is there anyway to keep this from happening so when the XML file is opened up it uses the ">"...
I did this that way you don't have to loop through every element since I have around 200 of them
for (var LoopIndex1 = 0; LoopIndex1 < document.styleSheets [0].rules.length; LoopIndex1++)
{
if (document.styleSheets [0].rules [LoopIndex1].selectorText.toUpperCase () == '.RETENTIONAR')
{...
I have a class named RetentionAR. It is defined in the style tags on the webpage itself. When my webpage loads the display of the class is set to the default. I was wondering if there is a way in javascript to set this class to none. There are about 180 items with this class name.
I just gound the GetSetting and SaveSetting methods and am trying to use them, but cannot get them to work for this. This is what I have so far
SaveSetting "DFEditor", "CommonDialog", "Cmndialog.InitDir", "C:/Work/UPF"
GetSetting "DFEditor", "CommonDialog", "Cmndialog.InitDir"...
I am trying to add the Microsoft Common Dialog component, but everytime I click ok I get an error that says
"Name Conflicts with existing module, project, or object library"
Is there any way to fix this, or is there any other way to set the initial directory of the common dialog when it opens up?
Yeah that is what I was thinking too, and so I was just trying to figure out what this guy was talking about, I have never heard of adding High Definition color to a website, and was just trying to figure out if this is something for real or not?
Hi I have a client that is asking me if it is possible to put high definition color onto his web page. He said he saw it at this site here
www.wsbt.com
Is this possible?
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.