Click here to Skip to main content
15,878,871 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionUsing asp.net website and its associated class library through visual source safe. Pin
hozsam13-Mar-09 2:46
hozsam13-Mar-09 2:46 
AnswerRe: Using asp.net website and its associated class library through visual source safe. Pin
hemant.kaushal13-Mar-09 4:41
hemant.kaushal13-Mar-09 4:41 
GeneralRe: Using asp.net website and its associated class library through visual source safe. Pin
hozsam13-Mar-09 17:49
hozsam13-Mar-09 17:49 
QuestionSharePoint And Calendar Control: cannot select anything Pin
Denis Sabic13-Mar-09 2:27
Denis Sabic13-Mar-09 2:27 
Questionhow to add sms gateway and its webservices to an asp.net application Pin
premprakashbhati13-Mar-09 2:05
premprakashbhati13-Mar-09 2:05 
AnswerRe: how to add sms gateway and its webservices to an asp.net application Pin
Rutvik Dave13-Mar-09 7:01
professionalRutvik Dave13-Mar-09 7:01 
AnswerRe: how to add sms gateway and its webservices to an asp.net application Pin
Vasudevan Deepak Kumar13-Mar-09 22:26
Vasudevan Deepak Kumar13-Mar-09 22:26 
Questionpopup window Pin
venkata saibabu13-Mar-09 1:51
venkata saibabu13-Mar-09 1:51 
public void OpenNewWindow(string url)
{


string winFeatures = "toolbar=no,status=no,menubar=no,location=center,scrollbars=no,resizable=no,height=300,width=400";
ClientScript.RegisterStartupScript(this.GetType(),"newWindow", string.Format("window.open('{0}', 'yourWin', '{1}');", url, winFeatures));

}

protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{

if (Session["Admin_Id"] != null)
{
//Lbladminname.Text = "Hi" + Session["username"].ToString();
// Response.Write(Session["username"].ToString());
//Lbladminname.Text = "Dear" + Session["username"].ToString();
//showlastlogindata();
showlastlogindata();


Label lbl = (Label)Master.FindControl("Lbladminname");

Label lblt = (Label)Master.FindControl("Lbltime");
if(lbl !=null)
{
lbl.Text =" Welcome " + Session["username"].ToString().Trim();
}
if (lblt != null)
{
lblt.Text = DateTime.UtcNow.ToLongDateString().ToString();
}

//HttpCookie mycookie = Request.Cookies["link"];
if (Session["link"] != null)
{
//Response.Write(Session["link"].ToString());
Response.Redirect("PropertyViews.aspx");
}
else
{
OpenNewWindow("Remainder.aspx");
}


//Lbllastlogin.Text = Session["username"].ToString();
}
else
{
Response.Redirect("Adminlogin.aspx");
}
//addlogs();
}
}


iam calling the javascript function in Page_load ,its working properly ,but the pop window is not displayed.so please some one help me i have specified my total code above
thanks in advance
AnswerRe: popup window Pin
Abhijit Jana13-Mar-09 2:34
professionalAbhijit Jana13-Mar-09 2:34 
GeneralRe: popup window Pin
venkata saibabu13-Mar-09 22:30
venkata saibabu13-Mar-09 22:30 
AnswerRe: popup window Pin
Chetan.visodiya13-Mar-09 2:44
Chetan.visodiya13-Mar-09 2:44 
AnswerRe: popup window Pin
Denis Sabic13-Mar-09 2:47
Denis Sabic13-Mar-09 2:47 
Questionget gridview row values on rowcommand event Pin
foryou13-Mar-09 1:16
foryou13-Mar-09 1:16 
QuestionHow to pass parameters to a stored procedure using 'in' keyword Pin
Nekkantidivya13-Mar-09 1:04
Nekkantidivya13-Mar-09 1:04 
AnswerRe: How to pass parameters to a stored procedure using 'in' keyword [modified] Pin
Spunky Coder13-Mar-09 1:35
Spunky Coder13-Mar-09 1:35 
QuestionDatetime? Pin
Karthick_gc13-Mar-09 0:04
Karthick_gc13-Mar-09 0:04 
AnswerRe: Datetime? Pin
Spunky Coder13-Mar-09 0:35
Spunky Coder13-Mar-09 0:35 
GeneralRe: Datetime? Pin
Karthick_gc13-Mar-09 0:43
Karthick_gc13-Mar-09 0:43 
GeneralRe: Datetime? Pin
Spunky Coder13-Mar-09 1:07
Spunky Coder13-Mar-09 1:07 
AnswerRe: Datetime? Pin
Ashfield13-Mar-09 2:21
Ashfield13-Mar-09 2:21 
QuestionLogout Problem in forms authentication Pin
SreejithAchutan12-Mar-09 22:35
SreejithAchutan12-Mar-09 22:35 
AnswerRe: Logout Problem in forms authentication Pin
kumar_k50812-Mar-09 22:55
kumar_k50812-Mar-09 22:55 
GeneralRe: Logout Problem in forms authentication Pin
SreejithAchutan12-Mar-09 23:22
SreejithAchutan12-Mar-09 23:22 
AnswerRe: Logout Problem in forms authentication Pin
kumar_k50812-Mar-09 23:31
kumar_k50812-Mar-09 23:31 
GeneralRe: Logout Problem in forms authentication Pin
SreejithAchutan12-Mar-09 23:40
SreejithAchutan12-Mar-09 23:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.