Hi i have written bit of code for customePostback in 3.5 .net frame work using clientscript manager and postbackoption. But i now need to implement it in 1.1 and i can't get around it. Can any one of you guys will be able to help me. the code looks like this in VS 2008
If Not scripts.IsClientScriptBlockRegistered("customPostback") Then lobjPostBackoptions = New PostBackOptions(Me) With lobjPostBackoptions .AutoPostBack = True
.RequiresJavaScriptProtocol = False
.PerformValidation = True
.Argument = "CONTINUE"
End With
lstrContinueScript = Page.ClientScript.GetPostBackEventReference(lobjPostBackoptions)
lobjSB = New StringBuilder
lobjSB.Append("<script language=""javascript"" type=""text/javascript"">" & Environment.NewLine)
lobjSB.Append("function PostbackContinue() {" & Environment.NewLine)
lobjSB.Append(lstrContinueScript & Environment.NewLine)
lobjSB.Append("}" & Environment.NewLine)
lobjSB.Append("</script>" & Environment.NewLine)
scripts.RegisterClientScriptBlock(Me.GetType, "customPostback", lobjSB.ToString)
End If