SQL - Pound Signs Disappearing From Strings

Jul 22, 2010

I'm usually a LAMP developer, but some .NET work has arrived. If I run the following code:
<% poundsign = "£" %>
<% Response.Write poundsign %>
<% Response.Write "£" %>

Nothing is displayed. However, outside of the <% %> tags (i.e., in the HTML) £ displays correctly. I have no trouble displaying the usual alphanumerics, it's just the £ sign that is proving problematic. The underlying file is in Windows 1252 encoding, and I need to serve it as such. If I save the file as UTF-8, I get mojibake instead of a £. What I can do to make this work, or any settings that might be preventing it from working (other than saving the file in a different format)?

Aside from the fact that my £s aren't appearing on the page, a major part of my problem is that I need to insert strings containing £ into a SQL server database, but if I form a SQL INSERT statement within the ASP, none of the £ signs end up appearing in the database. Inserting £ signs into the database from ASP isn't a problem when I save the .asp files as UTF-8 files, but I need everything to work in Windows 1252 encoding.

View 4 Replies


ADVERTISEMENT

Way To Concatenate List Of Strings Into A Comma-separated Strings, Where Strings Are Members Of An Object?

Oct 16, 2009

Say I have a List(Of Tag) with Tag being an object. One member of Tag, Tag.Description, is a string, and I want to make a comma-separated concatenation of the Description members.Is there an easier way to do this than to read the Description members into a List(Of String) and then use the Join function?

View 2 Replies

Keep A Log Of Who Signs In?

May 22, 2009

I want to create a log that shows when users sign into this program, so I can see who makes changes to it. What is the best method of doing that?

View 5 Replies

.net - Using Two Equals Signs In VB 2008

Feb 6, 2012

In code, why wouldn't this work? intMax = intTopValue = 20

View 2 Replies

Using Two Equals Signs In VB 2008?

Feb 13, 2011

In code, why wouldn't this work?

intMax = intTopValue = 20

View 1 Replies

Sign Out User If Someone Else Signs In With The Same Account

Sep 28, 2009

Sign out user if someone else signs in with the same account Anyone have code in VB that will do this?

View 3 Replies

Storing Equal Signs (=) In XML Documents?

Sep 10, 2010

I'm facing a problem that Google couldn't solve yet!I'm trying to store URLs in an XML file. Problem is that these URLs contain Equal Signs (=) in them. And that generates an error.Here is my code: (**token is a variable that contains the URL)

Dim child As String = vbCrLf & "<Link URL='" & token & "'></Link>"
Dim fragment As XmlDocumentFragment = doc.CreateDocumentFragment
fragment.InnerXml = child

[code]....

View 3 Replies

Why Does Regex Ignore Plus Or Minus Signs

Jun 21, 2012

No matter what I try, it never matches the sign. I even tried using the string as the pattern. This function should be able to take a string like 1 day -36mins + 2s -1s and parse it into a TimeSpan object. Any pointers?

[Code]...

View 1 Replies

Display Multilines And Dollar Signs In Labels?

Sep 22, 2011

I'm just starting to learn VB and I can't seem to get the label to display 4 separate lines that I wanted it to. It always seems to display Grand Total: (number)[code]...

View 7 Replies

Display Three Rows Of Percent Signs In The MsgLabel?

Nov 7, 2011

We were given this and for some reason I can't get this to work right. Here is the whole thing:The following code should display three rows of percent signs in the msgLabel. The first row should contain one percent sign, the second row should contain two percent signs, and the third row should contain three percent signs. However, the code is not working correctly.

[code]...

View 17 Replies

Display The Number With Two Decimal Places And Dollar Signs?

May 7, 2009

I need to write a program that uses constants to establish the base pay, the quota, and the commission rate. The Pay menu item calculates and displays the commission and the total pay for that person. However, if there is no commission, do not display the commission amount (do not display a zero-commission amount).Write a function procedure to calculate the commission. The function must compare sales to the quota. when the sales are equal to or greater than the quota, calculate the commission by multiplying sales by the commission rate. Format the dollar amounts to two decimal places; do not display a dollar sign.The summary menu item displays a message box that holds total sales,total commission,and total pay for all salesperson. Display the number with two decimal places and dollar signs. the Clear menu item clears the name, sales, and pay for the current employee and then resets the focus.The Color and Font menu items should change the color and font of the information displayed in the total pay text box.Use a message box to display the program name and your name as programmer for the about option on the Help menu.

[code]...

So the issue is when I push the pay/calculate button everything is calculating correctly the first time, but then when I push clear to input another workers name and weekly sales and push calculate, my label is blank and does not display any info about the second worker. Then when I push summary after inputting the second worker, it's only displaying the total calculations of the first worker. I can't seem to figure out this problem on my own (After countless hours staring at my code I might add!), so I am hoping somebody can pinpoint what I have done wrong? EVerything else is seeming to work just fine.[code]...

View 1 Replies

Redirect Console Output To Look For Signs Of Command Failure?

May 27, 2011

I am running a command on all computers from a list. I am trying to get back a text file that says PASS or FAIL for each computer. I am using the below StreamWriter and function process. The process runs correctly and it rights to both a data file and an error log. The error log however always says PASS for everything. do I know what to set the if consoleOutput = "????" to?

Using swrr As New StreamWriter(ErrorLog, True)
For Each strUserName As String In strLines
Dim ConsoleOutput As String = GetCMDOutput(strUserName, saveFileDialog3.FileName & ".txt",

[code].....

View 1 Replies

VS 2010 - How To Use Mathematical Signs As Label Text Randomly

Oct 29, 2011

How to use the signs "+", "-", "*", "/" as label text randomly. I am trying to create a math game for my kids. There I need a random sign to display every time they get new question to solve. I am able to display values [random numbers] but could not able to use this signs randomly as a single label text.

View 8 Replies

Saving Information So Program Remembers Next Time User Signs In

Feb 25, 2010

i want the user to login, and the first thing is, having the text document for that(if theres a safer way to do it, let me know) then it goes to the weekly sales page, but theres also the goals for the sales, which rarely change, but if they do i would like them to be able to change them, then next page is the list of the workers, and if they need to i would like them to be able to add workers. so my question is: is there anyway that maybe i could save both the goals, and the workers in the text document, and when they need to change it/add workers it will save it in the text document and the next time they sign in the changes will be permanent? also is there a way to delete the user once they have been created, other than going into the txt document and deleting it.

View 2 Replies

Code Total Cost To Give Pound Sign With Total Cost At Moment When Total Comes Up

Jun 7, 2010

How do I code the total cost to give me a pound sign with the total cost at the moment when the total comes up for an example it gives me 3.6 when I need it to show £3.60 here is the code I have so far. [code]

View 2 Replies

IDE :: Comboboxes In The IDE Disappearing?

Oct 27, 2010

I have a project in which the comboboxes above the code window, below the tabs have disappeared. If I open and close the project, they do not appear. If I open another project, they do appear. As soon as a open the project where they do not appear, they disappear.

View 5 Replies

Keep Scroll Bar From Disappearing?

Sep 15, 2011

When my full-screen sized Form is reduced in size by clicking on the "restore down" [i.e.] not to the minimized size but to in-between max and min, the scroll bar disappears. Is there a way to keep it automatically from disappearing [i.e.] to keep the scroll bar in view and available for use without having to make an adjustment to bring it back into view?

View 12 Replies

.net - Why Is Cookie Expiry Disappearing

Apr 7, 2011

I create a cookie and it has the proper expiry set, but when I go to update the cookie and check it with the debugger the expiry is gone.

' Cookie Helper: Updates cookie with the selected source ids
Protected Sub UpdateCookieFor(ByVal cookieName As String, ByVal sourceIds As String)
' Update cookie if it exists

[code]....

View 1 Replies

A Label From Form Keeps Disappearing?

Feb 14, 2010

I can't understand what I am doing wrong ... I have a form on which there is a label . This label is actually part of a control array of labels (it was created by the migration wizard trough the upgrading process) . Each time I run the program and call my form , a message appears saying :Control array element 12 doesn't existAnd this is what I don't understand .I can see it during design time , how come it disappears during run time ? I have even checked its Index property , it's 12

View 3 Replies

Disappearing Menu Strip ?

Feb 27, 2008

I have a vb.net 2005 windows form with a menu strip that keeps disappearing both in design mode and when the program runs. I noticed that on other forms there are more properties listed for the menu than this one has. Anybody familiar with this problem?

I am using a split container with docking set to full below the menu but several other programs are set that way without any problems.

View 8 Replies

Panel With RadioButtons Disappearing From GUI?

Nov 29, 2010

I have a panel on my GUI with radio buttons. When I run the code to determine which is the checked radio button from that panel, the code runs fine, but the panel disappears from the GUI after that. Here is the code I have to determine the checked radio button:

Dim rbName = (From r As RadioButton In Panel1.Controls.OfType(Of RadioButton)() Where r.Checked Select r.Name)
System.Console.WriteLine(rbName.First)

I have tried using:

Panel1.Visible = True
and also
Panel1.Show()
Panel1.Refresh()

but it doesn't show the panel again. I tried the same thing for individual radio buttons such as RadioButton1.Visible = True and it doesn't work.

View 2 Replies

Program ADO Disappearing Data

Apr 12, 2012

I have a bound datagridview and a dataset with tables.

I have two sets of comboboxes bound to the same field "Restaurant" in the tables (mirroring each other).

In the "NewEmployeeRestaurant" combobox I change the value and it reflects in the datagridview. I can shoot around clicking all over the datagridview on other employees, but when I return to the employee I changed, the value remains what I changed it to. All is good in the world.

However, when I go to the "EmployeeRestaurant" combobox with the same settings, I change the value and it is reflected in the datagridview. So far so good. But when I go to another employee then click back on that employee I changed, the datagridview still shows the new value but the combobox is empty! NOT COOL!

View 1 Replies

VS 2008 Application Disappearing?

Jul 20, 2010

Me.Show()
Me.WindowState = FormWindowState.Normal
nfi.Visible = False

[code].....

View 3 Replies

VS 2008 Comboboxes In The IDE Disappearing?

Oct 18, 2010

I have a project where the dropdowns for the Form and controls (left side) and the events (right side) aren't available. I can re-boot, open and close the project or solution and still they do not show. They do show for other projects.how to make them come back?

View 3 Replies

VS 2008 Forms Disappearing?

Jul 29, 2011

When one of my students opened his project yesterday, the Form he designed for it was no longer available. He could run the program but he couldn't edit the form as it had disappeared. Later he couldn't run the program at all as the error said that the form name wasn't part of the WindowsApplication. What's going on?

View 4 Replies

VS 2010 Code Disappearing?

Apr 25, 2012

Ok, getting a little frustrated. I'm a new VB programmer (just a few months). Let me show you the start of my code so you can see what I'm trying to do:

Public Class Form1
Dim crude1 As Double = 0
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs)

[code]....

View 4 Replies

BindingNavigator And Disappearing Combobox Text

Mar 16, 2011

I am using VS2008 on Windows XP SP3. I have a form with two pairs of dependant comboboxes which are bound to a SQL database table. In each pair, the second combobox's choices are dependant upon the selection of the first combobox.

Both pairs of comboboxes behave as expected. However, when I use the binding navigator to look through other existing records, the text in the second pair of comboboxes disappears on records that already have selections.

The database table still holds the information, but it just doesn't display in the combobox. Again, this only happens on the second pair of comboboxes, not the first pair and both sets of comboboxes are set up exactly the same (albeit on different tables).

View 7 Replies

Controls Disappearing On Timer Event

Feb 6, 2010

We have a question regarding VB.Net 2008. We are used control array in vb.net and third party timer controls. When handle received from external application to timer control event procedure, after this form becomes blank and controls disappear. What we have to do to persist the controls.

View 1 Replies

Data Disappearing In 2008 Project

Jul 8, 2009

I am using Visual Studio 2008.

I have my project set to "Copy if New"

I created a form with variuos fields from a table.

I hit F5 to run the application and enter in test data and save.

I exit the project and then go back in and the new data is there.

I exit the visual studio 2008 completely and then go back in and the new data is there.

I did the above last night several time and the new data was always there.

This morning all of the new data I entered is gone... I have NOT changed the data base schema at all.

View 4 Replies

How To Program Disappearing Label Into ASP Textbox

May 19, 2011

I am developing a VB.NET program. I currently have an ASP Textbox with a label showing inside it. But now the customer has to manually delete this label before entering their own text. How do I get this label to vanish as soon as they begin typing? My script is nearly working now for txtFind. But in this case, it shows a different textbox to display watermark image. How can I reset this watermark to only activate the txtFind textbox instead? And to remove the textbox on left-hand side?

Here is my new ASPX file code:
<script type="text/javascript" language="javascript" >
function GetChart(thepart, thepartdesc, thecolor, row) {
Form1.part_transfer.value = thepart;
Form1.part_desc_transfer.value = thepartdesc;
Form1.submit();
[Code] ......

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved