Click here to Skip to main content
15,885,216 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionis java script is dependent on the borwser Pin
vijaylumar6-Jul-08 19:25
vijaylumar6-Jul-08 19:25 
AnswerRe: is java script is dependent on the borwser Pin
N a v a n e e t h6-Jul-08 19:36
N a v a n e e t h6-Jul-08 19:36 
AnswerRe: is java script is dependent on the borwser Pin
Rukshan Samanthilaka7-Jul-08 0:22
Rukshan Samanthilaka7-Jul-08 0:22 
QuestionHow to Read an character images to Readable form of character in .net Pin
lingeswararaj.s6-Jul-08 18:57
lingeswararaj.s6-Jul-08 18:57 
AnswerRe: How to Read an character images to Readable form of character in .net Pin
Christian Graus6-Jul-08 18:58
protectorChristian Graus6-Jul-08 18:58 
QuestionText insert problem in the database Pin
amistry_petlad6-Jul-08 18:08
amistry_petlad6-Jul-08 18:08 
AnswerRe: Text insert problem in the database Pin
Christian Graus6-Jul-08 18:12
protectorChristian Graus6-Jul-08 18:12 
GeneralRe: Text insert problem in the database Pin
amistry_petlad6-Jul-08 18:23
amistry_petlad6-Jul-08 18:23 
no ,here is one textbox and submit button in asp.net(vb)
when i enter any Chinese language (copy text from MSword and paste it in the textbox) and click submit button on that button i am doing the insert data in the data base but the data which is going to insert is not in the same form which i have entered. Got it ?
it insert ?????? in the table field.

show the code below
<br />
Imports System.Data<br />
Imports System.Data.SqlClient<br />
Imports System.Configuration<br />
Partial Class _Default<br />
    Inherits System.Web.UI.Page<br />
<br />
    <br />
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load<br />
        Dim MyConnection As SqlConnection<br />
        Dim cmd As SqlCommand<br />
        MyConnection = New SqlConnection()<br />
        MyConnection.ConnectionString = ConfigurationManager.ConnectionStrings("Local_DB").ConnectionString<br />
        MyConnection.Open()<br />
        cmd = New SqlCommand("Select * from empl", MyConnection)<br />
        GridView1.DataSource = cmd.ExecuteReader()<br />
        GridView1.DataBind()<br />
        MyConnection.Close()<br />
    End Sub<br />
    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
        Dim MyConnection As SqlConnection<br />
        Dim cmd As SqlCommand<br />
        MyConnection = New SqlConnection()<br />
        MyConnection.ConnectionString = ConfigurationManager.ConnectionStrings("Local_DB").ConnectionString<br />
        MyConnection.Open()<br />
        'Dim MySQL As String = "Insert into NewEmp (fname, LName, Address, City, State, Postalcode, Phone, Email) Values (@Firstname, @LastName, @Address, @City, @State, @Postalcode, @Phone, @Email)"<br />
<br />
        Dim MySQL As String = "Insert into empl (name1) Values (@name1)"<br />
        cmd = New SqlCommand(MySQL, MyConnection)<br />
        cmd.Parameters.Add(New SqlParameter("@name1", SqlDbType.VarChar, 11))<br />
        cmd.Parameters("@name1").Value = TextBox1.Text<br />
        cmd.ExecuteNonQuery()<br />
        MyConnection.Close()<br />
<br />
    End Sub<br />
<br />
End Class<br />
<br />

GeneralRe: Text insert problem in the database Pin
Christian Graus6-Jul-08 18:25
protectorChristian Graus6-Jul-08 18:25 
AnswerSuggestion Pin
Christian Graus6-Jul-08 18:23
protectorChristian Graus6-Jul-08 18:23 
GeneralRe: Suggestion Pin
amistry_petlad6-Jul-08 18:27
amistry_petlad6-Jul-08 18:27 
GeneralRe: Suggestion Pin
Christian Graus6-Jul-08 18:29
protectorChristian Graus6-Jul-08 18:29 
GeneralRe: Suggestion Pin
amistry_petlad6-Jul-08 18:37
amistry_petlad6-Jul-08 18:37 
GeneralRe: Suggestion Pin
Christian Graus6-Jul-08 18:38
protectorChristian Graus6-Jul-08 18:38 
GeneralRe: Suggestion Pin
amistry_petlad6-Jul-08 18:49
amistry_petlad6-Jul-08 18:49 
GeneralRe: Suggestion Pin
Christian Graus6-Jul-08 18:51
protectorChristian Graus6-Jul-08 18:51 
GeneralRe: Suggestion Pin
amistry_petlad6-Jul-08 18:54
amistry_petlad6-Jul-08 18:54 
QuestionCompress image Pin
jinovv6-Jul-08 17:49
jinovv6-Jul-08 17:49 
AnswerRe: Compress image Pin
Christian Graus6-Jul-08 17:50
protectorChristian Graus6-Jul-08 17:50 
AnswerRe: Compress image Pin
eyeseetee6-Jul-08 21:49
eyeseetee6-Jul-08 21:49 
QuestionRe: How to display Data from Database Visually inside HTML table Pin
Rameez Raja6-Jul-08 17:36
Rameez Raja6-Jul-08 17:36 
AnswerRe: How to display Data from Database Visually inside HTML table Pin
Christian Graus6-Jul-08 17:49
protectorChristian Graus6-Jul-08 17:49 
QuestionUser Access Pin
Murugavel Sadagopan6-Jul-08 15:42
Murugavel Sadagopan6-Jul-08 15:42 
AnswerRe: User Access Pin
Venkatesh Mookkan6-Jul-08 16:32
Venkatesh Mookkan6-Jul-08 16:32 
AnswerRe: User Access Pin
Rameez Raja6-Jul-08 17:57
Rameez Raja6-Jul-08 17:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.