 |
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0  | This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|
|

June 27th, 2007, 08:58 PM
|
|
Authorized User
|
|
Join Date: Jun 2007
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hello All,
I have added Ajax ValidatorCallOut Extender to my site, see it at work here www.cspringsboard.com/Contact.aspx don't type anything on the TextBox then try to click the send button.
I have also added AJAX Accordion control to the Polls section.
Thank you
|
|

June 29th, 2007, 12:05 AM
|
|
Friend of Wrox
|
|
Join Date: Aug 2006
Posts: 131
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
how can i change the header.gif with a flash?
|
|

July 4th, 2007, 09:41 AM
|
|
Authorized User
|
|
Join Date: Jun 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
quote:Originally posted by MoSprings
Hello All,
I have added Ajax ValidatorCallOut Extender to my site, see it at work here www.cspringsboard.com/Contact.aspx don't type anything on the TextBox then try to click the send button.
I have also added AJAX Accordion control to the Polls section.
Thank you
|
I´m trying to add the Validator but I´m not achieving it.
It´s necessary to write any script?
Have you changed/added something in the webconfig? what?
Thank you.
Luis J.
http://www.cei-esas.com.pt
|
|

July 4th, 2007, 11:42 AM
|
|
Friend of Wrox
|
|
Join Date: Mar 2006
Posts: 310
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
quote:Originally posted by kherrerab
how can i change the header.gif with a flash?
|
download swfobject.js
and then replace:
Code:
<img src="header.gif" />
for
Code:
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">
<img src="header.gif" />
</div>
<script type="text/javascript">
var so = new SWFObject("movie.swf", "mymovie", "400", "200", "8", "#336699");
so.write("flashcontent");
</script>
If your visitor don't have flash player, then he will see header.gif
I use this javascript function because with that i don't see: "Click this to activate this control..."
(if you know what I mean...)
|
|

July 5th, 2007, 07:39 PM
|
|
Authorized User
|
|
Join Date: Jun 2007
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi All,
I am sorry for not replying early LuisJeronimo, if you are trying to to add Aajax ValidatorCallout control please click on the link below and watch the video. To answer your question no I did not add any script and I did not add anything to web.config file, but I have changed the standard RequiredFieldValadator Display attribute from Dynamic to None. good luck
http://asp.net/learn/videos/view.aspx?tabid=63&id=150
I made more changes to my site please check it out and let me know what you think. www.cspringsboard.com
Thank you all
|
|

July 6th, 2007, 02:43 PM
|
|
Authorized User
|
|
Join Date: Jun 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
quote:Originally posted by MoSprings
Hi All,
I am sorry for not replying early LuisJeronimo, if you are trying to to add Aajax ValidatorCallout control please click on the link below and watch the video. To answer your question no I did not add any script and I did not add anything to web.config file, but I have changed the standard RequiredFieldValadator Display attribute from Dynamic to None. good luck
http://asp.net/learn/videos/view.aspx?tabid=63&id=150
I made more changes to my site please check it out and let me know what you think. www.cspringsboard.com
Thank you all
|
I saw your site and I noticed that you used the harmonium and the calendar controls too. Is there any other novelty?
I liked very much and I´ll try to change somethings on my site with ajax too.
For now I´m still not get it, I have yet the error page when try to see in the browser.
I don´t know if it have something to do with the fact that I decompressed my Toolkit in the desktop and not in the folder where I have the project. I´ll keep trying and investigate.
If you, or someone, have any tip, I´ll appreciate.
Thank you.
All the best.
Luis J.
|
|

July 6th, 2007, 03:44 PM
|
|
Authorized User
|
|
Join Date: Jan 2007
Posts: 94
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I have begun getting my report printing feature to work. This has taken me a lot of time. I spent nearly a month getting my solution deployed onto my web hosting service. If anyone is interested in such things I will advise you. I don't think WebHost4Life has had many (any?) others using this feature.
Please go to www.boyleed.com and try the "Example Quiz" choice in the Help menu.
This generates an example quiz from the database in the SQL Server reporting System. From the Report Viewer control in the web page you can export the quiz to an Adobe PDF file.
The idea is that classroom teachers can create a quiz on-line and then send it to Kinkos for printing (from Adobe). I think some teachers will be interested in this free service. The Beerhouse framework provides the membership structure that assures condidentiality.
Next week I add the ability to pass parameters. At that point the Multiple Choice Quiz part actually works with a user defined quiz not just my little example Roman History quiz.
After that I need to create a teacher's answer quiz printout. I also need to add an explanation field in the database too.
http://weboperahouse.com
|
|

July 6th, 2007, 10:28 PM
|
|
Authorized User
|
|
Join Date: Jun 2007
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hello LuisJeronimo,
Here is my source code for the .aspx of the contact us page, please take a look and try to make the changes needed.
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" Runat="Server">
<div class="sectiontitle">
Contact Us</div>
<p></p>
If you want to contact the owner and/or administrators of this site, please fill the form below:
<p></p>
<table cellpadding="2">
<tr>
<td style="width: 80px;" class="fieldname"><asp:Label runat="server" ID="lblName" AssociatedControlID="txtName" Text="Your name:" /></td>
<td style="width: 400px;" ><asp:TextBox runat="server" ID="txtName" Width="100%" /></td>
<td>
<asp:RequiredFieldValidator runat="server" Display="None" ID="valRequireName" SetFocusOnError="true"
ControlToValidate="txtName" ErrorMessage="Your name is required" >*</asp:RequiredFieldValidator>
<cc1:ValidatorCalloutExtender ID="valRequireNameE" runat="server" TargetControlID="valRequireName">
</cc1:ValidatorCalloutExtender>
</td>
</tr>
<tr>
<td class="fieldname"><asp:Label runat="server" ID="lblEmail" AssociatedControlID="txtEmail" Text="Your e-mail:" /></td>
<td><asp:TextBox runat="server" ID="txtEmail" Width="100%" /></td>
<td>
<asp:RequiredFieldValidator runat="server" Display="None" ID="valRequireEmail" SetFocusOnError="true"
ControlToValidate="txtEmail" ErrorMessage="Your e-mail address is required">*</asp:RequiredFieldValidator>
<cc1:ValidatorCalloutExtender ID="valRequireEmailE" runat="server" TargetControlID="valRequireEmail">
</cc1:ValidatorCalloutExtender>
<asp:RegularExpressionValidator runat="server" Display="None" ID="valEmailPattern" SetFocusOnError="true"
ControlToValidate="txtEmail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
ErrorMessage="The e-mail address you specified is not well-formed">*</asp:RegularExpressionValidator>
<cc1:ValidatorCalloutExtender ID="valEmailPatternE" runat="server" TargetControlID="valEmailPattern">
</cc1:ValidatorCalloutExtender>
</td>
</tr>
<tr>
<td class="fieldname"><asp:Label runat="server" ID="lblSubject" AssociatedControlID="txtSubject" Text="Subject:" /></td>
<td><asp:TextBox runat="server" ID="txtSubject" Width="100%" /></td>
<td>
<asp:RequiredFieldValidator runat="server" Display="None" ID="valRequireSubject" SetFocusOnError="true"
ControlToValidate="txtSubject" ErrorMessage="The subject is required">*</asp:RequiredFieldValidator>
<cc1:ValidatorCalloutExtender ID="valRequireSubjectE" runat="server" TargetControlID="valRequireSubject">
</cc1:ValidatorCalloutExtender>
</td>
</tr>
<tr>
<td class="fieldname"><asp:Label runat="server" ID="lblBody" AssociatedControlID="txtBody" Text="Body:" /></td>
<td><asp:TextBox runat="server" ID="txtBody" Width="100%" TextMode="MultiLine" Rows="8" /></td>
<td>
<asp:RequiredFieldValidator runat="server" Display="None" ID="valRequireBody" SetFocusOnError="true"
ControlToValidate="txtBody" ErrorMessage="The body is required">*</asp:RequiredFieldValidator>
<cc1:ValidatorCalloutExtender ID="valRequireBodyE" runat="server" TargetControlID="valRequireBody">
</cc1:ValidatorCalloutExtender>
</td>
</tr>
<tr>
<td colspan="3" style="text-align: right;">
<asp:Label runat="server" ID="lblFeedbackOK" Text="Your message has been successfully sent." SkinID="FeedbackOK" Visible="false" />
<asp:Label runat="server" ID="lblFeedbackKO" Text="Sorry, there was a problem sending your message." SkinID="FeedbackKO" Visible="false" />
<asp:Button runat="server" ID="txtSubmit" Text="Send" OnClick="txtSubmit_Click" />
<asp:ValidationSummary runat="server" ID="valSummary" ShowSummary="false" ShowMessageBox="false" />
</td>
</tr>
</table>
</asp:Content>.
I did not make any changes to the .aspx.cs page.
Good luck.
|
|

July 7th, 2007, 08:02 AM
|
|
Authorized User
|
|
Join Date: Jun 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
quote:Originally posted by plb
I have begun getting my report printing feature to work. This has taken me a lot of time. I spent nearly a month getting my solution deployed onto my web hosting service. If anyone is interested in such things I will advise you. I don't think WebHost4Life has had many (any?) others using this feature.
|
Hello plb,
I´m really interested in add this feature to my site ( www.cei-esas.com.pt) that is an educational site too (I´m a teacher here in Portugal).
Can you explain me the steps that you follow, in order to me to try add this feature?
Thank you very much.
Luis J.
|
|

July 7th, 2007, 08:07 AM
|
|
Authorized User
|
|
Join Date: Jun 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
quote:Originally posted by MoSprings
Hello LuisJeronimo,
Here is my source code for the .aspx of the contact us page, please take a look and try to make the changes needed.
|
Thank you MoSprings.
I think my source code is exactly like yours. I have to check it again in a detailed manner.
I think my problem is another one.
I´ll keep trying and I´ll report for you and all. If I´ll need help, I´ll ask you.
If the problem subsist, I´ll show you the screen error.
All the best.
Luis J.
www.cei-esas.com.pt
|
|
 |