How to Open any web page by clicking any Any ASPControl
like (Checkbox,radio button or Button) without calling its
event and without going to Siverside code?
Answers were Sorted based on User's Feedback
Answer / om sambosankara
In Asp.net for most of the Controls have OnClick property
will be available in (.net 2.0/VSS 2005) by using the
Onclick property at the ClientSide we can open the Webpage
without going to Sever
OnClick Event: This is a property is available for Dropdown
list ,TextBox,CheckBox,RadioButton,Button,LinkButton etc..)
by using this property when ever the user click the Control
this property will be called.This all operations are done at
the Client Side
only
<asp:button id="btn"
onclick="window.open('Default.aspx?bck=1','cal','width=250,height=150,left=225,top=125')"
text="CLICK" runat="server" CssClass="href"
"></asp:button>
(or)
<script language="javascript">
function fnopenpage()
{
window.open('Default.aspx?bck=1');
return true
}
</script>
<asp:button id="btn" onclick="return fnopenpage();"
text="CLICK" runat="server" CssClass="href"
"></asp:button>
bck=1 after the page is not mandatory its a qury string if
requried we can pass any qurystrings like that....
| Is This Answer Correct ? | 11 Yes | 3 No |
Answer / ramkumar
using postbackurl property we can easily redirect to a page
eg:
<asp:button ID="btnRedirect" PostBackUrl="newuser.aspx"
Text="CLICK" runat="server"></asp:button>
| Is This Answer Correct ? | 4 Yes | 3 No |
Answer / jayashri
All code is correct only for buttons not for radio
button...Then what is yhe coding for radio button for go to
the next page???????????
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / vikas kant
<script type="text/javascript" language="javascript">
function fnopenpage()
{
window.open('Default2.aspx?bck=1');
return true
}
</script>
<asp:button ID="btn" OnClientClick="fnopenpage()"
Text="CLICK" runat="server"></asp:button>
| Is This Answer Correct ? | 3 Yes | 3 No |
How you can stop the validation of ASP.NET controls from client side?
0 Answers Sans Pareil IT Services,
Define state managenent?Descibe state managenent technique which maintain the information at server site focusing it IDS features and limitations?
How do you register the .Net Component or Assembly?
What is the caspol.exe tool used for?
difference between caching objects in session objects?
wt is repeater control and wt is datalist control and wt defferences these two? i want some code in datalist?
What is a global postback url?
Differentiate between globalization and localization.
What is in a session cookie?
How asp.net mvc differs from asp.net web forms? : asp.net mvc
What is the difference between a thread and a process?
What are demand-paging and pre-paging?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)