Click here to Skip to main content
15,904,023 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
My website having link button in master page, i want to popup that link button using jquery. my popup window having username,password,emailid and a submit button.
when i click the link-button that popup window will be open.how can i get it using jquery.

Regards,
P.Maruthi
Posted
Updated 19-Sep-17 23:51pm

If you want to popup a new window, you can use the following:

JavaScript
$(document.ready(function () {
$('#myLinkButton').click(function () { 
window.open(myUrl, WindowNameWithNoSpaces, 'toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=yes,resizable=yes,width=800,height=640');
});
}


The last parameter is a string of options.

There you go. I hope that helps,

-Dom
 
Share this answer
 
Comments
Jaydeep Shah 20-Sep-17 5:48am    
how can i click linkbuttion using jqeury.

like

$(".myclass").click(function()
{
my link buttion click perform.
});




<%#Eval("status").ToString()



<asp:LinkButton runat="server"
ID='room'
CssClass='<%# Eval("IsGroup").ToString()=="False"?"user":"group" %>'
Text='<%#Eval("Name").ToString().Length > 15 ? Eval("Name").ToString().PadRight(12).Substring(0,12).TrimEnd()+"..." : Eval("Name").ToString().PadRight(15).Substring(0,15).TrimEnd() %>'
CommandName='<%# Eval("IsGroup").ToString()=="False"?"User":"Group" %>'
CommandArgument='<%# Eval("RC_ID")+","+Eval("Username") %>' />
i have question not solution but in comment code not properly append so do this

how can i click linkbuttion using jqeury.

like 

$(".myclass").click(function()
{
my link buttion click perform.
});



<div class="myclass">
<div>
<span><%#Eval("status").ToString()</span>
</div>
 
<span class="name-meta"> 
<asp:LinkButton runat="server"
ID='room'
CssClass='<%# Eval("IsGroup").ToString()=="False"?"user":"group" %>' 
Text='<%#Eval("Name").ToString().Length > 15 ? Eval("Name").ToString().PadRight(12).Substring(0,12).TrimEnd()+"..." : Eval("Name").ToString().PadRight(15).Substring(0,15).TrimEnd() %>'
CommandName='<%# Eval("IsGroup").ToString()=="False"?"User":"Group" %>'
CommandArgument='<%# Eval("RC_ID")+","+Eval("Username") %>' /> 
</span>
 
</div>
 
Share this answer
 
Comments
Jochen Arndt 20-Sep-17 6:13am    
If you have a new question please post it as such and don't use old threads.

If you have a question to a specific solution, you might use a comment but should be aware that the poster is not active anymore.
Jaydeep Shah 20-Sep-17 6:17am    
i already post this is new question before 5 hr but i not get working solution.

How to click linkbutton using jquery.(my question title)

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