473,378 Members | 1,122 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

checkbox and button in XSLT

117 100+
how can i use the CheckBox and button controls inside XSLT and then to handle them from .aspx pages or html pages. is it possible
Mar 27 '07 #1
6 6432
dorinbogdan
839 Expert 512MB
Hi sani,

I know that they are compiled controls, and only recognized by ASP engine.
The xsl should output an html code able to be run by the client's web browser.

It seems like trying to generate ASP code using XSL.

However, other members might give you better suggestions to help more.
Mar 27 '07 #2
sani723
117 100+
dorinbogdan,
what if i put the runat="server" then it will also be available on server. [tell me if i am wrong]
Mar 27 '07 #3
dorinbogdan
839 Expert 512MB
Yes, runat=server is always required for asp controls, but I'm not sure how to generate the aspx page using XSL.
Or, I would research if runat=server can be used in client pages.

I'm looking further for the solution.
Thanks.
Mar 27 '07 #4
dorinbogdan
839 Expert 512MB
I just tested an aspx page with asp controls.
[html]<html>
<head><title>This is a Simple ASPX Page</title></head>
<body>
<form runat="Server">
<b>Your Name:</b>
<br><input id="username" type="text" size="25" runat="Server">
<p>
<b>Your Comments:</b>
<br><textarea id="comments" cols=60 rows=10 runat="Server"></textarea>
<p>
<input type="submit" value="Send Comment" runat="Server">
</form>
</body>
</html>
[/html]

If run this aspx page in a browser, and check the Source Code of page, you will see this:
[html]<html>
<head><title>This is a Simple ASPX Page</title></head>
<body>
<form name="_ctl0" method="post" action="SimpleAspxPage.aspx" id="_ctl0">
<input type="hidden" name="__VIEWSTATE" value="dDwxNzA4ODg4NjAxOzs+z10kcgqYbLJCZKPMgggESs6 0ZDo=" />
<b>Your Name:</b>
<br><input name="username" id="username" type="text" size="25" />
<p>
<b>Your Comments:</b>
<br><textarea name="comments" id="comments" cols="60" rows="10"></textarea>
<p>
<input name="_ctl1" type="submit" value="Send Comment" />
</form>
</body>
</html>
[/html]

So, it's clear that the asp controls are converted to valid html tags.
and runat=server will not appear on html source code.

Even if the .Net Framework is not installed on client, he must still be able to view the aspx pages (so they are converted to simple html when rendered).

I hope this helps to understand better the behavior.
Mar 27 '07 #5
sani723
117 100+
dorinbogdan

thanks alot
Mar 27 '07 #6
dorinbogdan
839 Expert 512MB
You're welcome.
God bless you.
Mar 27 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Fabri | last post by:
How can I, on button click, to select ONLY the following 4 checkbox? I would like to do this without a for loop through form.lenght because this is only an example and I have to apply this script...
5
by: DotNetJunkies User | last post by:
1. i want to populate checkboxlist using javascript only at client side ....how can i do this..by populate word i mean that checkboxes should be checked or unchecked on some condition basis.......
0
by: Keith | last post by:
I have a repeater control that contains a HeaderTemplate and an ItemTemplate. Each item contains a checkbox with an ID of chkReconciled, and the header contains a single checkbox with an ID of...
0
by: Keith | last post by:
I have a repeater control that contains a HeaderTemplate and an ItemTemplate. Each item contains a checkbox with an ID of chkReconciled, and the header contains a single checkbox with an ID of...
6
by: Chuck Anderson | last post by:
My knowledge of JavaScript is limited. I learn from example and then adapt those examples to suit my needs. I have stumped myself on this one. I have a form with checkboxes that I want to...
0
by: sani723 | last post by:
how can i use the CheckBox and button controls inside XSLT and then to handle them from .aspx pages or html pages. is it possible
0
by: cyberdawg999 | last post by:
Greetings all in ASP land I have overcome one obstacle that took me 2 weeks to overcome and I did it!!!!! I am so elated!! thank you to all who invested their time and energy towards helping me...
0
by: yogarajan | last post by:
Hi all, I need to display two sets of records. The second one should come under the first set of records and also second one uses the first one's unique id. for example, First table values id ...
0
by: remya1000 | last post by:
I have a field called Departments in my database. and I have 3 monitors. So when Page_Load, I need to check number of departments I have in database. And depends upon that number of departments I...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.