Page.RegisterClientScriptBlock("SCRIPTNAME","<script
language='javascript'>compute();</script>")
Or
Page.RegisterStartUpScript("SCRIPTNAME","<script
language='javascript'>compute();</script>")
OR
Private Sub Button1_Click(ByVal
sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim cmd
As SqlCommand
Dim
objSqlConnection As SqlConnection
objSqlConnection = New SqlConnection(strConnectionString)
Dim
strsql As String
objSqlConnection.Open()
strsql = "INSERT
INTO tblCreate(sFileID) " + "VALUES
(12345) "
cmd = New
SqlCommand(strsql, objSqlConnection)
cmd.ExecuteNonQuery()
objSqlConnection.Close()
Call
asd()
End Sub
--------------------------------------------------------------------------------------
Sub asd()
Page.RegisterStartupScript("SCRIPTNAME", "<script
language='javascript'>compute();</script>")
End Sub