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?

Answers were Sorted based on User's Feedback



How to Open any web page by clicking any Any ASPControl like (Checkbox,radio button or Button) wit..

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

How to Open any web page by clicking any Any ASPControl like (Checkbox,radio button or Button) wit..

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

How to Open any web page by clicking any Any ASPControl like (Checkbox,radio button or Button) wit..

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

How to Open any web page by clicking any Any ASPControl like (Checkbox,radio button or Button) wit..

Answer / ratnesh

should be OnClientClick in case Of Button..

Is This Answer Correct ?    3 Yes 3 No

How to Open any web page by clicking any Any ASPControl like (Checkbox,radio button or Button) wit..

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

Post New Answer

More ASP.NET Interview Questions

What is the difference between ASP.NET Webforms and ASP.NET MVC?

0 Answers  


What is postback and autopostback in asp.net?

0 Answers  


I have a webform in asp.net.In that webform there is 2 division class(DIV).in one of the div class there is a text box for enter the id & a button for to check id with database value.My doubt is that how can i appear the 2nd Div contents only when the id is true with database value.if wrong do not display the div . i Want code in c#.

2 Answers  


Is viewstate secure?

0 Answers  


if i have 1000 records and i want to access 20 ata time from SQL server, what will be the query?

9 Answers   Mind Tree,


What is web.config. How many web.config files can be allowed to use in an application?

6 Answers   Accenture, HCL, InterGraph, iSoft,


Explain the difference between dataset and datareader.

0 Answers  


Define session in asp.net.

0 Answers  


why security trimming attribute?

1 Answers  


How many types of sessions in asp.net?

0 Answers   MaxSolPro,


How can we Maintain more than on config file in one .Net web application and how?

1 Answers   USi,


1. What is the difference between Cache and Session? 2. I cache limited to page like viewstate or it's accessible through out the application like session? 3. Which one is better when I've some data that is to be used across the application? Why is to better than the other?

2 Answers   247Customer,


Categories