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. problem in openning window [modified]

problem in openning window [modified]

Scheduled Pinned Locked Moved ASP.NET
helphtmlsysadmindocker
9 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.
  • A Offline
    A Offline
    amaneet
    wrote on last edited by
    #1

    Sir, I want to open the page in new window for that i write the code in html file but it is occuring problem asp:LinkButton ID = "lb1" Runat =server On Click = "window.open('<%#DataBinder.Eval(Container.DataItem , "urllabel")%>')"> %#DataBinder.Eval(Container.DataItem , "titlelink")% /asp:LinkButton urllabel gives the path like http://localhost//abc.aspx and titlelink gives the text of link label. Please help me Thanks and regards Amaneet Brar -- modified at 8:43 Monday 22nd May, 2006

    K J 2 Replies Last reply
    0
    • A amaneet

      Sir, I want to open the page in new window for that i write the code in html file but it is occuring problem asp:LinkButton ID = "lb1" Runat =server On Click = "window.open('<%#DataBinder.Eval(Container.DataItem , "urllabel")%>')"> %#DataBinder.Eval(Container.DataItem , "titlelink")% /asp:LinkButton urllabel gives the path like http://localhost//abc.aspx and titlelink gives the text of link label. Please help me Thanks and regards Amaneet Brar -- modified at 8:43 Monday 22nd May, 2006

      K Offline
      K Offline
      KrIstOfK
      wrote on last edited by
      #2

      you need to open a new window with javascript function "window.open('http://www.google.com')"

      A 1 Reply Last reply
      0
      • K KrIstOfK

        you need to open a new window with javascript function "window.open('http://www.google.com')"

        A Offline
        A Offline
        amaneet
        wrote on last edited by
        #3

        Sir, Problem is still occuring please review my question. Thanks and Regards Amaneet Brar

        1 Reply Last reply
        0
        • A amaneet

          Sir, I want to open the page in new window for that i write the code in html file but it is occuring problem asp:LinkButton ID = "lb1" Runat =server On Click = "window.open('<%#DataBinder.Eval(Container.DataItem , "urllabel")%>')"> %#DataBinder.Eval(Container.DataItem , "titlelink")% /asp:LinkButton urllabel gives the path like http://localhost//abc.aspx and titlelink gives the text of link label. Please help me Thanks and regards Amaneet Brar -- modified at 8:43 Monday 22nd May, 2006

          J Offline
          J Offline
          Jax_qqq
          wrote on last edited by
          #4

          Is page opening in the same browser only... because i m using the same code what u have writen and it's working fine from my side. Here is code what i have written... window.open(url,"Page","resizable=yes, location=no,directories=no left=80, top=100 height=450, width=500, status=yes, scrollbars=yes, titlebar=No" ); i hope this will help u. ;) Thanx & regards Anuj Kamthan Software Developer Solversa Technologies, Pune - 411007, India. http://www.solversa.com

          A 1 Reply Last reply
          0
          • J Jax_qqq

            Is page opening in the same browser only... because i m using the same code what u have writen and it's working fine from my side. Here is code what i have written... window.open(url,"Page","resizable=yes, location=no,directories=no left=80, top=100 height=450, width=500, status=yes, scrollbars=yes, titlebar=No" ); i hope this will help u. ;) Thanx & regards Anuj Kamthan Software Developer Solversa Technologies, Pune - 411007, India. http://www.solversa.com

            A Offline
            A Offline
            amaneet
            wrote on last edited by
            #5

            Sir, can u send me a link to clarify more for openning in new window by onclick function oof linkbutton? Thanks and regards Amaneet Brar -- modified at 9:19 Monday 22nd May, 2006

            _ J 2 Replies Last reply
            0
            • A amaneet

              Sir, can u send me a link to clarify more for openning in new window by onclick function oof linkbutton? Thanks and regards Amaneet Brar -- modified at 9:19 Monday 22nd May, 2006

              _ Offline
              _ Offline
              _AK_
              wrote on last edited by
              #6

              Hi, Go through these links. They might help you. http://www.codersource.net/asp\_net\_client\_script\_interaction.aspx http://www.javascript-coder.com/window-popup/javascript-window-open.phtml Best Regards, Apurva Kaushal

              1 Reply Last reply
              0
              • A amaneet

                Sir, can u send me a link to clarify more for openning in new window by onclick function oof linkbutton? Thanks and regards Amaneet Brar -- modified at 9:19 Monday 22nd May, 2006

                J Offline
                J Offline
                Jax_qqq
                wrote on last edited by
                #7

                http://www.gymcompare.com/GymCompare/ProductInfo.aspx?pid=29367 Follow the link and click on "Click image to Zoom" this is what i have done by the given code... Thanx Anuj

                K 1 Reply Last reply
                0
                • J Jax_qqq

                  http://www.gymcompare.com/GymCompare/ProductInfo.aspx?pid=29367 Follow the link and click on "Click image to Zoom" this is what i have done by the given code... Thanx Anuj

                  K Offline
                  K Offline
                  KrIstOfK
                  wrote on last edited by
                  #8

                  I followed the link Server Error in '/' Application. Implicit conversion from data type datetime to int is not allowed. Use the CONVERT function to run this query. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Implicit conversion from data type datetime to int is not allowed. Use the CONVERT function to run this query. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [SqlException: Implicit conversion from data type datetime to int is not allowed. Use the CONVERT function to run this query.] System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) +742 System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +195 Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) PriceEngine.Logic.Referer.Add(String url) PriceEngine.GymCompare.PageBase.TrackReferer() PriceEngine.GymCompare.PageBase.OnInit(EventArgs e) PriceEngine.GymCompare.ProductInfo.OnInit(EventArgs e) System.Web.UI.Control.InitRecursive(Control namingContainer) +241 System.Web.UI.Page.ProcessRequestMain() +195 Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300

                  J 1 Reply Last reply
                  0
                  • K KrIstOfK

                    I followed the link Server Error in '/' Application. Implicit conversion from data type datetime to int is not allowed. Use the CONVERT function to run this query. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Implicit conversion from data type datetime to int is not allowed. Use the CONVERT function to run this query. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [SqlException: Implicit conversion from data type datetime to int is not allowed. Use the CONVERT function to run this query.] System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) +742 System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +195 Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) PriceEngine.Logic.Referer.Add(String url) PriceEngine.GymCompare.PageBase.TrackReferer() PriceEngine.GymCompare.PageBase.OnInit(EventArgs e) PriceEngine.GymCompare.ProductInfo.OnInit(EventArgs e) System.Web.UI.Control.InitRecursive(Control namingContainer) +241 System.Web.UI.Page.ProcessRequestMain() +195 Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300

                    J Offline
                    J Offline
                    Jax_qqq
                    wrote on last edited by
                    #9

                    Just cut and paste link in browser... Anuj

                    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