473,804 Members | 2,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Input string was not in a correct format.

1 New Member
when i try to insert kind of text to my richtextbox from web (copy/paste) i can do it but after i wanted to update i can't do it . there is an errormessage appears (Input string was not in a correct format.).




Dim urun As String = Replace(TBox4.T ext, "'", """")

d.CommandText = String.Format(" update etic_urunler set etic_urun ='" & urun & "' where id=1")



TBox4.Text is a richtextbox and i am trying to update this text in to it as below ..

*************** *************** *************** *************** *************** **********







<SPAN style="FONT-SIZE: 16pt; FONT-FAMILY: Verdana"><STRON G>.:: <SPAN style="BACKGROU ND-COLOR: #ccccff"><SPAN style="COLOR: #ff3366">ÜRÜN</SPAN> <SPAN style="COLOR: #ff3399">AÇIKLA MA</SPAN></SPAN> ::.</STRONG></SPAN>
<STYLE type=text/css>

.ctl00_ContentP laceHolder1_TBo x4_OuterTable {
width: 750px;
background-color: #9EBEF5;
}
#ctl00_ContentP laceHolder1_TBo x4_toolbarArea select {
margin: 0px;
padding: 0px;
font: 11px Tahoma,Verdana, sans-serif;
}
.ctl00_ContentP laceHolder1_TBo x4_HtmlBox {
overflow: auto;
font-family: Courier New, Courier;
padding: 4px;
border-right: 1px solid #808080;
border-left: 1px solid #808080;
border-top: 1px solid #808080;
border-bottom: 1px solid #808080;
}
.ctl00_ContentP laceHolder1_TBo x4_DesignBox {
background-color: #FFFFFF;
border: 0;
border-right: 1px solid #808080;
border-left: 1px solid #808080;
border-top: 1px solid #808080;
border-bottom: 1px solid #808080;
}
.ctl00_ContentP laceHolder1_TBo x4_DesignBox body {
background-color: black;
}
.ctl00_ContentP laceHolder1_TBo x4_Toolbar {
margin-bottom: 1px;
margin-right: 2px;
float: left;

}


.ctl00_ContentP laceHolder1_TBo x4_Button_Off_O ut {
padding: 1px;
background-color: transparent;
}
.ctl00_ContentP laceHolder1_TBo x4_Button_Off_O ver {

padding: 0px;
border-top: 1px solid #000080;
border-left: 1px solid #000080;
border-right: 1px solid #000080;
border-bottom: 1px solid #000080;
background-color: #FFF4CC;

filter: progid:DXImageT ransform.Micros oft.Gradient(Gr adientType=0, StartColorStr=" #FFFFF4CC", EndColorStr="#F FFFD091");
}
.ctl00_ContentP laceHolder1_TBo x4_Button_On_Ou t {

padding: 0px;
border-top: 1px solid #000080;
border-left: 1px solid #000080;
border-right: 1px solid #000080;
border-bottom: 1px solid #000080;
background-color: #FFD58C;

filter: progid:DXImageT ransform.Micros oft.Gradient(Gr adientType=0, StartColorStr=" #FFFFD58C", EndColorStr="#F FFFAD55");
}
.ctl00_ContentP laceHolder1_TBo x4_Button_On_Ov er {

padding: 0px;
border-top: 1px solid #000080;
border-left: 1px solid #000080;
border-right: 1px solid #000080;
border-bottom: 1px solid #000080;
background-color: #FE914E;

filter: progid:DXImageT ransform.Micros oft.Gradient(Gr adientType=0, StartColorStr=" #FFFE914E", EndColorStr="#F FFFD38E");
}


.ctl00_ContentP laceHolder1_TBo x4_StartTabOn {
font: 10pt MS Sans Serif;
padding: 1px;
border-left: 1px solid #81A9E2;
border-right: 1px solid #FFFFFF;
border-top: 1px solid #808080;
border-bottom: 1px solid #81A9E2;
background-color: #81A9E2;
}
.ctl00_ContentP laceHolder1_TBo x4_StartTabOff {
font: 10pt MS Sans Serif;
padding:1px;
border-left: 1px solid #81A9E2;
border-right: 1px solid #808080;
border-top: 1px solid #808080;
border-bottom: 1px solid #81A9E2;
background-color: #81A9E2;
}
.ctl00_ContentP laceHolder1_TBo x4_TabOn {
font: 8pt MS Sans Serif;
padding:1px;
padding-left:5px;
padding-right:5px;
border-left: 1px solid #FFFFFF;
border-right: 1px solid #808080;
border-top: 1px solid #9EBEF5;
border-bottom: 1px solid #808080;
background-color: #9EBEF5;
}
.ctl00_ContentP laceHolder1_TBo x4_TabOffRight {
font: 8pt MS Sans Serif;
padding:1px;
padding-left:5px;
padding-right:5px;
border-left: 1px solid #808080;
border-right: 1px solid #808080;
border-top: 1px solid #808080;
border-bottom: 1px solid #81A9E2;
background-color: #81A9E2;
}
.ctl00_ContentP laceHolder1_TBo x4_TabOffLeft {
font: 8pt MS Sans Serif;
padding:1px;
padding-left:5px;
padding-right:5px;
border-left: 1px solid #808080;
border-right: 1px solid #FFFFFF;
border-top: 1px solid #808080;
border-bottom: 1px solid #9EBEF5;
background-color: #81A9E2;
}
.ctl00_ContentP laceHolder1_TBo x4_EndTab {
font: 10pt MS Sans Serif;
width: 100%;
padding:1px;
border-left: 1px solid #81A9E2;
border-right: 1px solid #81A9E2;
border-top: 1px solid #808080;
border-bottom: 1px solid #81A9E2;
background-color: #81A9E2;
}
.ctl00_ContentP laceHolder1_TBo x4_AncestorArea {
display:none;
margin-left: 4px;
}
.ctl00_ContentP laceHolder1_TBo x4_AncestorArea a {
padding: 1px;
margin-left: 2px;
margin-right: 2px;
border: 1px solid #808080;
color: #000;
font-family: arial;
font-size: 11px;
}
.ctl00_ContentP laceHolder1_TBo x4_AncestorArea a:link, .ctl00_ContentP laceHolder1_TBo x4_AncestorArea a:visited, .ctl00_ContentP laceHolder1_TBo x4_AncestorArea a:active {
background-color: transparent;
text-decoration: none;
}
.ctl00_ContentP laceHolder1_TBo x4_AncestorArea a:hover {
text-decoration: none;
background-color: #316AC5;
border: 1px solid #fff;
color:#fff;
}

</STYLE>




*************** *************** *************** *************** *************** **********
Feb 28 '07 #1
1 1963
dorinbogdan
839 Recognized Expert Contributor
You should also replace the double-quotes (") that appear in the HTML string, with 2 double-quotes ("").
Mar 1 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
21150
by: Jim | last post by:
im using asp.net, C# to enter data into a table in sql server...however im getting this error: Input string was not in a correct format. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.FormatException: Input string was not in a correct format.
0
768
by: lianfe_ravago | last post by:
Input string was not in a correct format. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.FormatException: Input string was not in a correct format. Source Error: Line 457: <tr>
5
2519
by: blackg | last post by:
Input string not in correct format -------------------------------------------------------------------------------- I am trying to view a picture from a table. I am getting this error Input string not in the correct format. Input string was not in a correct format. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it...
1
1855
by: amitbadgi | last post by:
Welcome back amitbadgi | Logout | Faq Knowledge Discovery Keys COMPUTER PROGRAMMING, DATA MINING, STATISTICS, ARTIFICIAL INTELLIGENCE * Settings * Photos * Lists * MVPs * Forums * Blogs
1
2859
by: amitbadgi | last post by:
I am gettign this error, while migration an app to asp.net Exception Details: System.FormatException: Input string was not in a correct format. Source Error: Line 19: Dim enddate = request.QueryString("enddate") Line 20: Line 21: if cint(eventid) = "0" then
0
2548
by: hudhuhandhu | last post by:
have got an error which says Input string was not in a correct format. as follows.. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.FormatException: Input string was not in a correct format. Source Error: Line 237: Dim validNow As Integer = 1 Line...
0
12006
by: Anonieko | last post by:
Are there any javascript codes there? Answer: Yes On the PageLoad event call InitialClientControsl as follows /// <summary> /// This will add client-side event handlers for most of the form controls so
0
3169
by: sehguh | last post by:
Hiya Folks, I am Currently using windows xp. Also using Visual Web Developer 2005 and Microsoft Sql server 2005. The main page consists of an aspx page and a master page. The page also consists of a label control(hidden when run in browser). Also an Sql data source control connected to database tables for a photo album. Also label web control ID=UserIdValue. Also a Details View control ID=dvPictureInsert Problem is how to work out...
1
4529
by: sehguh | last post by:
Hello folks I have recently been studying a book called "sams teach yourself asp.net 2.0 in24 hours by scott mitchell. I have reached page 614 but when i tried to run an asp page called Photoadmin/default.aspx i got the following message and info. Input string was not in a correct format. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information...
1
4770
by: differentsri | last post by:
THIS IS AN ASP.NET 1.1 APPLICATION IAM TRYING TO UPDATE THE FIELD BUT I AM NOT ABLE TO UPDATE IT? CAN U TELL THE REASON ? IT IS GIVING THE FOLLOWING ERROR BELOW I HAVE ALSO GIVEN THE CODE OF THE PROGRAM PLEASE HELP ME Server Error in '/WebApplication1' Application. -------------------------------------------------------------------------------- Input string was not in a correct format. Description: An unhandled exception occurred...
0
9715
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10603
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10353
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10356
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10099
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7643
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5675
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3003
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.