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
  1. Home
  2. Web Development
  3. ASP.NET
  4. Response.Redirect()...

Response.Redirect()...

Scheduled Pinned Locked Moved ASP.NET
javascripthelpquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sr Frank
    wrote on last edited by
    #1

    protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.Cells.Count > 0) { strGridValue = e.Row.Cells[0].Text; if (strGridValue != "ID") { e.Row.Attributes.Add("ondblclick", "javascript:alert('" + strGridValue + "')"); Session.Add("Value", strGridValue);//This Line of code will work here? Response.Redirect("Default.aspx");//This Line of code will work here? } } } This code is not working....Please help...

    A A K 3 Replies Last reply
    0
    • S Sr Frank

      protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.Cells.Count > 0) { strGridValue = e.Row.Cells[0].Text; if (strGridValue != "ID") { e.Row.Attributes.Add("ondblclick", "javascript:alert('" + strGridValue + "')"); Session.Add("Value", strGridValue);//This Line of code will work here? Response.Redirect("Default.aspx");//This Line of code will work here? } } } This code is not working....Please help...

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      which code is not working ... Javascript alert or Response.Redirect. I think if you redirect, why do you need to attach client attribute ?? :confused::confused:

      Abhishek Sur My Latest Articles Basics on LINQ and Lambda Expressions
      Create .NET Templates

      1 Reply Last reply
      0
      • S Sr Frank

        protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.Cells.Count > 0) { strGridValue = e.Row.Cells[0].Text; if (strGridValue != "ID") { e.Row.Attributes.Add("ondblclick", "javascript:alert('" + strGridValue + "')"); Session.Add("Value", strGridValue);//This Line of code will work here? Response.Redirect("Default.aspx");//This Line of code will work here? } } } This code is not working....Please help...

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        Sr...Frank wrote:

        protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.Cells.Count > 0) { strGridValue = e.Row.Cells[0].Text; if (strGridValue != "ID") { e.Row.Attributes.Add("ondblclick", "javascript:alert('" + strGridValue + "')"); Session.Add("Value", strGridValue);//This Line of code will work here? Response.Redirect("Default.aspx");//This Line of code will work here? } } }

        Did you tried to debug it? :~

        cheers, Abhijit CodeProject MVP

        1 Reply Last reply
        0
        • S Sr Frank

          protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.Cells.Count > 0) { strGridValue = e.Row.Cells[0].Text; if (strGridValue != "ID") { e.Row.Attributes.Add("ondblclick", "javascript:alert('" + strGridValue + "')"); Session.Add("Value", strGridValue);//This Line of code will work here? Response.Redirect("Default.aspx");//This Line of code will work here? } } } This code is not working....Please help...

          K Offline
          K Offline
          kumar_k508
          wrote on last edited by
          #4

          HI, What was error it was showing..?

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

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