Click here to Skip to main content
15,880,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to open a new web page on textbox double click, with data from data base in asp.net csharp
Posted

1 solution

XML
dblclick is a clientside event you will have to do this way to open a new window you will have to use javascript



<head runat="server">
    <title>Untitled Page</title>
    <script type ="text/javascript">
        function test(value)
        {
             window.open('Newwindow.aspx?value=' + value,'_self',true);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <input name="TextBox1" type="text" id="Text1" ondblclick="test(this.value);" />
    </div>
    </form>
</body>
</html>
 
Share this answer
 
v2
Comments
Salman Farooqui 11-Dec-12 12:17pm    
The window is opening on new tab it should open on same tab but small
Surendra0x2 11-Dec-12 13:17pm    
window.open('Newwindow.aspx?value=' + value,'_self',true);

Add this

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900