Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How should I destroy my objects in asp.net?

1028


What are the differnt types of handler in ASP.NET?

941


What is application Object?

995


Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?

1034


What is application and session in asp.net?

909


What is the use of placeholder control? Can we see it at runtime?

1026


What is the difference between trace and debug in asp.net?

1093


How will you load dynamic assembly? How will create assesblies at run time?

892


What is mvc in asp.net tutorial? : Asp.Net MVC

1119


How to prevent client side validation from the ASP.NET validation controls?

1033


What are client activated objects?

982


What is difference between asp state management and asp.net state management?

1033


Explain exception handling in .net.

1018


Explain what the contents of cookie?

1017


What is asp.net web application?

1000