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

strtotime issue
Hey all,

I'm playing around with some code, and basically the idea is:

Person changes

PEAR Email Attachment w/ $gpg
I have no issues with this code if I take out the attachement section and include the info in the em

Last character removed
I have created a string from an array. I have inserted commas from my form values. I am trying to re

Help with search.php
Hello All

I need the search engine on a site I am building at the moment to display the searc

Map.php
I am a complete beginner to PHP and am looking for some help with a program I am messing around with

empty() error
Why does

Code: empty($USER_ID = $_SESSION["USER_ID"])
create this error...

Ajax Issues - Update Panel / Timer. Intellisense doesn't know about them
Type 'System.Web.UI.ScriptManager' does not have a public property named 'UpdatePanel'. That is wha

Google Wave
So... has anyone used it yet? Is it any good?

http://wave.google.com/help/wave/about.html#vid

pageination not working right... coping images over 4 pages
Code: <?php //This code will obtain the required page number from the $_GET array. Note that

Populate drop down list from table??
Lets say for arguments sake that i have a table which contains the numbers 1 to 10.
How can i get

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