Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
V

venkata saibabu

@venkata saibabu
About
Posts
5
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • popup window
    V venkata saibabu

    i am not using Ajax controls in this particular page

    ASP.NET javascript help

  • popup window
    V venkata saibabu

    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

    ASP.NET javascript help

  • popupcalender sample
    V venkata saibabu

    this is my code: protected void Page_Load(object sender, System.EventArgs e) { if (!Page.IsPostBack) { this.TextBox1.Text = System.DateTime.Now.ToShortDateString(); this.pnlCalendar.Attributes.Add("style", "DISPLAY: none; POSITION: absolute"); } else { string id = Page.Request.Form["__EVENTTARGET"].Substring(0,Page.Request.Form["__EVENTTARGET"].IndexOf(":")); if (id != this.ID) { this.pnlCalendar.Attributes.Add("style","DISPLAY: none; POSITION: absolute"); } else { this.pnlCalendar.Attributes.Add("style","POSITION: absolute"); } } Page.RegisterClientScriptBlock("Script_Panel" + this.ID, " function On"+this.ID+"Click() { if("+this.ID+"_pnlCalendar.style.display == \"none\") "+this.ID+"_pnlCalendar.style.display = \"\"; else "+this.ID+"_pnlCalendar.style.display = \"none\"; } "); this.Button1.Attributes.Add("OnClick","On"+this.ID+"Click()"); } and for changing the date: protected void Calendar1_SelectionChanged(object sender, System.EventArgs e) { this.TextBox1.Text = Calendar1.SelectedDate.ToShortDateString(); this.pnlCalendar.Attributes.Add("style", "DISPLAY: none; POSITION: absolute"); } now iam getting the error as below :please can any one help me to run properly my code: Length cannot be less than zero. Parameter name: length error is generated at this lines: Source Error: Line 23: else Line 24: { Line 25: string id = Page.Request.Form["__EVENTTARGET"].Substring(0,Page.Request.Form["__EVENTTARGET"].IndexOf(":")); Line 26: if (id != this.ID) Line 27: {

    ASP.NET help css tools

  • calling an exe file
    V venkata saibabu

    i have a iload control setup for uploading images ,how could i use that control in my application

    ASP.NET workspace

  • help me if u know answer
    V venkata saibabu

    i could not able to create a database for an online website

    ASP.NET database help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups