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.
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 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 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?
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?
Hi, I have a website, and have started to get complaints about the Page Cannot Be Displayed error. However, whenever I try to duplicate the error it works just fine for me. It only happens to people when they click a submit button. Why would this error come up on some machines and not others?
Hi I am trying to automatically send an email from one of my pages. This is the code I am using:
objMailMessage = New MailMessage
objMailMessage.From = ViewState("Email").Trim()
objMailMessage.To= EReader("Email").Trim()
objMailMessage.Subject= "CONTRACT OFFER"...
I am reading in an Integer from a file and I have to compare it to a hex bitmask to see if which values need to be checked. How would I go about comparing a hex value (i.e. 0x0001) To a numerical value such as 48? I tried this:
Property BitMask As Byte
but kept getting an error b/c it said...
I am trying to change the recordsource of the form, but I can't seem to get it to work. It tried form.recordsource="SQL statement in here" then did a form.refresh and form.requery but nothing happened. How do I dynamically change the Query that is populating the form?
Is it possible to add a field to the contacts tab in GoldMine. I'm pretty unfamiliar with the GoldMine terminology, but I want to add a field not to the main screen on top, but to the contact tab below the main screen up top.
I have a SQL connection that used to work, but the client it was working for changed his IP address and had a new router installed. I tried to just plug in the new IP address to get it working again but had no luck. I am thinking it has something to do with the router, but have no idea what or...
I am trying to connect to a SQL database and am having some trouble here is my connection string, and I am pretty sure the IP address is correct, b/c I am using it to remotely connect to the server that the SQL database resides on. Does anyone have any idea why it cannot connect?
Conn.Open...
This is a shot in the dark, but we have a product that is written in VB 6. The product then a calls some webpages that are in the local host of the user's machine through IIS. The pages will always be on the local machine of the user like this. When the ASP pages are called from the VB...
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.