how to open a new window with no toolbar after loginhttp://forums.asp.net/t/386493.aspx/1?how+to+open+a+new+window+with+no+toolbar+after+loginMon, 10 Nov 2003 17:21:55 -0500386493386493http://forums.asp.net/p/386493/386493.aspx/1?how+to+open+a+new+window+with+no+toolbar+after+loginhow to open a new window with no toolbar after login I have a one single login page with two textbox of Username(txtUsername) and password (txtPassword) and two buttons with one Login(cmdLogin) and Cancel(cmdCancel). Now in the code behind I have code like Private Sub cmdLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdLogin.Click Dim CAPSsystem As CAPS.WebUserDB = New CAPS.WebUserDB() Dim webUserID As String = CAPSsystem.Login(txtUserName.Text, txtPassword.Text) If Not (webUserID Is Nothing) And webUserID <> "" Then Dim userDetails As CAPS.WebUserDetails = CAPSsystem.GetWebUserDetails(webUserID) Session("ssnUserName") = txtUserName.Text FormsAuthentication.RedirectFromLoginPage(txtUserName.Text, 0) Response.Clear() Response.Redirect("CAPSFrameset.htm") Else lblMsg.Text = "Incorrect Username or Pasword" End If End Sub which is checking credentials from Database. Now instead of Response.Redirect("CAPSFrameset.htm"), I want to open CAPSFrameset.htm in new window which I need to be without Toolbar and hide the orignal Login window. I tried using Javascript code function CallScript(){ window.open ('CAPSFrameset.htm','test','top=0,left=0,scrollbar=0,toolbar=0'); } in HEAD and cmdLogin.Attributes.Add("onClick", "CallScript()") in page-load of the form but it isn't working for me i think because I already have serverside code for that button. 2003-11-06T07:30:31-05:00386697http://forums.asp.net/p/386493/386697.aspx/1?Re+how+to+open+a+new+window+with+no+toolbar+after+loginRe: how to open a new window with no toolbar after login Try putting this after you've done your work in the Login method: this.RegisterClientScriptBlock("CallScript", "<script type=""text/javascript"">CallScript();</script>") that way when your page returns from the PostBack, it will launch your new window. 2003-11-06T13:31:55-05:00388408http://forums.asp.net/p/386493/388408.aspx/1?Re+how+to+open+a+new+window+with+no+toolbar+after+loginRe: how to open a new window with no toolbar after login Thanks for your answer but I am getting build error because of keyword 'this' and if I remove it I am getting Page not found error. Can you help me out? 2003-11-08T00:40:12-05:00389903http://forums.asp.net/p/386493/389903.aspx/1?Re+how+to+open+a+new+window+with+no+toolbar+after+loginRe: how to open a new window with no toolbar after login Sorry, "this" is a C# keyword.... try "Me".... Craig 2003-11-10T17:13:47-05:00