This is the javascript used to open a new window with the currently selected chat.
$('#dvDetach').click(function() {
window.open('/controls/livechat/detachedchatbox.aspx','_blank', 'width=422,height=422');
});
this is the vb.net code that is suppose to Set the viewstate variable on initial load and not change during client postback.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Me.EnableViewState = True
If Not Page.IsPostBack Then
If ViewState("id") Is Nothing AndAlso ViewState("guestID") Is Nothing Then
ViewState("id") = Session("id")
ViewState("guestID") = Session("guestID")
End If
End If
ClientScript.RegisterStartupScript(Me.GetType, "TestAlert", "alert('" & ViewState("id").ToString & ":" & ViewState("guestID").ToString & "');", True)
End Sub

New Topic/Question
Reply



MultiQuote


|