i hav made an control which is submiting a form and data into database,
dis control is used in an myform.aspx page and dat page is working fine in mozila
Private Sub submit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles submit.Click
If Page.IsValid Then
Dim strConn As String = Application("dbStrConn")
Dim MyConn_member As New SqlConnection(strConn)
Dim MyTrans As SqlTransaction = MyConn_member.BeginTransaction
'Specify the first statement to run...
Dim MySql_member As String = "insert into test ([name],[email])values(@name,@email)"
'Create the SqlCommand object, specifying the transaction through
Dim cmd_member As New SqlCommand(MySql_member, MyConn_member, MyTrans)
cmd_member.Parameters.Add(New SqlParameter("@name", TextBox1.Text))
cmd_member.Parameters.Add(New SqlParameter("@email", TextBox2.Text))
Catch ex As Exception
'Something went wrong, so rollback the transaction
Throw 'Bubble up the exception
'Finally, close the connection
this click event is working in mozila but not working in Internet Explorer.
I publish one of windows application using VS 2005. But I can not install this application in another PC. I tried several times but it cames following error message. "This file is not trusted....." like this.
how to handle this problem.Please help me to sort out this prob....
That depends on the type of the file, for example if u uploaded an image and u wantto display it u add an image tag to your webform and fill the ImageUrl property with the path of the image u saved on ur web server and so on
Hi my friends , i am doing my senior project on developing a dinamic web site which comprises chat and forum program.And i am doing it using ASP.net. Now i have to know about socket program to develop the chat room.So,anyone who has an idea about the"socket programming" and where to find a brief description about it will let me know please.
CAn any one tell this problem's solution???
Here i have panel probelm,that i am using 3 panels belongs to 3 different forms and the data should be inserted into 3 different tables in the database.
Here my problem is,is it possible to insert the data at a time in three tables like in VB.
I have single add,edit and save buttons for these panels.CAn we move automatically to the next panel???
thanks in advance