I am switching from 1.1 to 2.0 and facing some problems with code, Getting a message on senderpage.Is startupScriptregisted has become obsolete instead use clientscript.
But when i replaced this:senderpage.RegisterStartupScript(alertKey, strScript)
to Clientscript.RegisterStartupScript(alertKey, strScript) getting another error message saying overloaded.
Public Function CreateMessageAlert(ByVal senderpage As System.Web.UI.Page, ByVal alertMsg As String, ByVal alertKey As String)
Dim strScript As String
strScript = " <script language=JavaScript>"
strScript += "alert ('" + alertMsg + "');</script>"
If (Not senderpage.IsStartupScriptRegistered(alertKey)) Then
senderpage.RegisterStartupScript(alertKey, strScript)
End If
End Function
Also does'nt know what to put as return line at the end of function.
thankyou very much for the helpful info.