Show message after entering data


Posted on 16th Feb 2014 07:03 pm by admin

Hello Colleagues

I would like to display messages after entering the data example: "
data were successfully " or " Error send data" in advance
thanks. Dim Coneccion As SqlConnection
Dim Comando As SqlCommand

Coneccion = New
SqlConnection(ConfigurationManager.ConnectionStrings("id").ConnectionString)
Comando = New SqlCommand("insertpbs", Coneccion)
Comando.CommandType = CommandType.StoredProcedure

Comando.Parameters.AddWithValue("@nombre", txtnombre.Text)

Try

Comando.Connection.Open()
Comando.ExecuteNonQuery()

Catch ex As Exception
ex.Message.ToString()

Finally
Comando.Connection.Close()
Response.Redirect("default.aspx")
End Try

No comments posted yet

Your Answer:

Login to answer
247 Like 6 Dislike
Previous forums Next forums
Other forums

How can you detect variable string in a massive string?
Ok guys, i need some help with this one.

I am going to be getting a large string, like 10-20

Could Someone Please Debug This?
I was wondering if someone could debug this script for me. I realize it's not the tidest script (and

use an array from 1 class in a second class
I have a class that adds data to an array

Then I have a second class and I need to check if t

Internal class functions don't seem to get executed.
Hi. Can someone please put me out of my misery on this. I don't write much PHP and this has me baffl

How to store checkbox array in a session, and then be able to add to it?
I'm trying to store an array of checkbox values into a session array, sort of like a shopping cart,

Firewall / visited websites logger
Hi. I have a firewall implementation and I want to log all the websites visited on the machine. S

Session is not saving
I am not trying to do anything too fancy, I am just trying to get some $_SESSION data to save and us

Download Image from URL and Upload it
Ok, I have been googling for the last 1/2 hour trying to figure this out, Most likely I'm just not s

Update data to upper case in parent/child tables
Hi Gurus!

In production we have a product table and which is being reference by many tabl

How to implement HTTP connection timeout
Hi All,I would like to implement an HTTP connection timeout.

I am working on a application wh

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash