CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.portal_starter_kit Tags:
Item Type: NewsGroup Date Entered: 3/12/2003 10:56:12 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 19 Views: 50 Favorited: 0 Favorite
20 Items, 1 Pages 1 |< << Go >> >|
odraskovic
Asp.Net User
If you want XML Quiz module :)3/12/2003 10:56:12 AM

0

Hi,

here is link (http://www.sporton.de/downloadmodules/xmlquiz.zip) to XML Quiz module. In zip file you will find explanation what and how to do, so enjoy it.


Oliver
www.smarttrain.de


P.S. This is VB.NET version
odraskovic
Asp.Net User
Re: If you want XML Quiz module :)3/12/2003 11:13:49 AM

0

I forgot at : http://www.sporton.de/downloadmodules/xmlquiz.gif you can see picture with quiz fragments.

If you want check our (Smart.TRAIN) version of IBS portal => www.sporton.de
Bill2clone
Asp.Net User
Re: If you want XML Quiz module :)3/12/2003 11:28:57 AM

0

Oliver,
Schade dass... I couldn't find if you use xmlquiz in your site.
Although my German's awful (spreche nur ein bischen D) I just wanted to try an example online. Have one ?

Bill
DNN skins Forum
Tressleworks modules
DNN & webhosting
IEWCtrls
odraskovic
Asp.Net User
Re: If you want XML Quiz module :)3/12/2003 11:44:39 AM

0

Hi Bill,

German is not my native language also and that is a problem why I do not have this module yet on site. My questions are on English for now so I can not include quiz on sporton.de. I guess that tommorow somebody will be here to create real quiz with German questions and then we will have it on site.

Oliver

odraskovic
Asp.Net User
Link to test quiz3/13/2003 5:50:56 AM

0

Hi,

here is link to page where you can test quiz :

http://www.sporton.de/Desktopdefault.aspx?tabid=48


Bye,
Oliver
just1dave
Asp.Net User
Re: Link to test quiz3/13/2003 4:16:24 PM

0

I am trying to make the questions pull up randomly, any one done this yet?
Dave
mightyman
Asp.Net User
Re: Link to test quiz3/13/2003 10:02:51 PM

0

I've been playing with the same code from the code project web site. Thanks for the pie code - that was something I hadn't thought of.

Here is some code you can add to the module to make it a little friendlier:
(I'll leave it up to you to create the spacers)


1) Add a placeholder in the ascx called phProgress

2) Add this to the showquestion sub
ProgressBar(intQuestionNo, intTotalQuestion)

3) Add the progressbar sub

Sub ProgressBar(ByVal intQuestionNumber As Integer, ByVal intNumberOfQuestions As Integer)
Const BAR_LENGTH = 160
Dim strOutPut As String
If intQuestionNumber = 1 Then
' Since a 0 width is ignored by the browsers we need to remove the image altogether!
strOutPut = "<IMG SRC=""spacer_white.gif"" HEIGHT=""10"" WIDTH="""
strOutPut += CStr(BAR_LENGTH)
strOutPut += """><BR>"
Else
strOutPut = "<IMG SRC=""spacer_orange.gif"" HEIGHT=""10"" WIDTH="""
strOutPut += CStr((BAR_LENGTH / intNumberOfQuestions) * (intQuestionNumber - 1))
strOutPut += """>"
strOutPut += "<IMG SRC=""spacer_white.gif"" HEIGHT=""10"" WIDTH="""
strOutPut += CStr((BAR_LENGTH / intNumberOfQuestions) * (intNumberOfQuestions - (intQuestionNumber - 1)))
strOutPut += """><BR>"
End If
phProgress.Controls.Add(New LiteralControl(strOutPut))

End Sub
odraskovic
Asp.Net User
Re: Link to test quiz3/14/2003 6:51:50 AM

0

Hi,

thanks for code.
I also added below progress bar counter to show question. I know that we have that number next to question but here I like it more.

To add this just copy following code below End If in Sub Progressbar

strOutPut += "<font face=arial size=1 color=navy><center>" & intQuestionNumber & "/" & intNumberOfQuestions & "</center></font>"

Off course, you can add any text that you like :)
John_Mandia
Asp.Net User
Re: Link to test quiz3/15/2003 2:32:13 PM

0

Hi,

I can see many things that you could do to extend this module:

1) create multiple quizes in the xml file and then select one when you add this module to a tab.

2) Add administration pages to add quizes, questions and answers.

3) Maybe keep track of people's scores so that you could have a scoreboard.

I am currently trying to convert the VB.NET To C# (With not the greatest success but I think I am slowly getting there).

Quick question: Can you not stream the image to the browser instead of saving it?

Thanks,

John

P.S if anyone wants to help me with the c# version just give me a shout ;-)
John Mandia
http://weblogs.asp.net/jmandia
http://www.silverlightseo.net/
golanng
Asp.Net User
Re: If you want XML Quiz module :)3/19/2003 10:54:06 AM

0

Hi odraskovic,


Thx for sharing your code. I'm one of the guys who haven't seen the vision about XML yet.

1. Would not the application be more versatile if questions and answers were stored in a db in stead of files. It would be quite easy turning the XMLquix into a Survey module also.

2. As I'm still new and very excited to ASP.NET the stuff about dynamic drawning is damm smart. What about the generated .gif Pie in this apps. As I see it it could happen that 2 persons at the same were to see their result and thereby turn into the same image file ?? or did I miss something here.

Cheers

/Kenneth
/Kenneth
odraskovic
Asp.Net User
Re: If you want XML Quiz module :)3/20/2003 7:41:06 AM

0

Hi Kenneth,

one of future things that I want to develop is fully db quiz because that will give more power to this module.

Also problem is that if somebody looks in xml they can see correct answers and that is not perfect :(

In a way, this is simple module which we can use but it has a lot of limitations.

For creation of pie graph, it is true that somebody can overwrite others picture but possibility is small because they have to finish quiz in same moment. I could create unique name for every session. Off course, when picture is shown we will need to delete it so that we do not have a lot of pictures on server disc.

As you and some other members mentioned there can be done a lot of improvements and probably soon I will start to work on one better quiz solution (code will be published :) )

Regards,
Oliver
golanng
Asp.Net User
Re: If you want XML Quiz module :)3/20/2003 2:33:06 PM

0

Hi Oliver

As u can probably understand i think your module is very interesting. Deals with some existing stuff which i'm not very good at. At least not yet ;-) I'm still looking for a nice Survey/quiz module.

Maybe it would be an idea to stream the pictue as John pointed out. I think you could find an example in the Starter kit TimeTracker how this is done. I'm still trying to figure it out :( The GDI+ class is damm clever. Please let me/us know if you if do some further improvements.

By the way i tried to put in ther progressbar but couldn't find the right spot. Would you please enlighted me.

Thanks

/Kenneth

/Kenneth
golanng
Asp.Net User
Re: If you want XML Quiz module :)3/20/2003 5:00:25 PM

0

Hi Oliver,

Hmm, apparently my last entry was ditched for some reason...but what the heck I will try once again.

As u can probalby tell I'm very excited about this module. Its ontains some interesting stuff which I'm not very good at. Besides I havn't seen a Survey/Quiz module as simpel and powerfull as yours :)

Anyway as John mentioned I think you should try streaming the Pie in stead. I think u could find an example in the Starter kit TimeTracker which deals with the GDI+ class. If you do any progress please let me/us know.

By the way. I never managed to incorporate the progressbar into the apps. It only shows on the first Quiz question. Would you enlighting me where in the code this call goes.

Thanks

/kenneth

/Kenneth
odraskovic
Asp.Net User
Re: If you want XML Quiz module :)3/25/2003 6:02:53 AM

0

Hi Kenneth,

in page XMLQuizPage.aspx.vb you have Sub ProgressBar where you can change HTML of ProgressBar. You will need picture for it.
In Sub ShowQuestion last line is call of ProgressBar and that's it.

Bye,
Oliver
melidosian
Asp.Net User
Re: If you want XML Quiz module :)5/8/2003 3:01:14 AM

0

I am able to install this module and run it with the provided XML file but get a runtime error whenever I answer the last question. Anyone have a similar problem? I can't get to the quiz results page.

I suspect it has something to do with the xmlquiz folder and the generation of the pie graph but I didn't understand "XMLQuiz folder has to be open for writing" in the readme document.

Any ideas on what's preventing the results page from appearing?
dschumann
Asp.Net User
Re: If you want XML Quiz module :)5/9/2003 11:49:11 PM

0

Hello,

<Quote>

I am able to install this module and run it with the provided XML file but get a runtime error whenever I answer the last question. Anyone have a similar problem? I can't get to the quiz results page.

I suspect it has something to do with the xmlquiz folder and the generation of the pie graph but I didn't understand "XMLQuiz folder has to be open for writing" in the readme document.

Any ideas on what's preventing the results page from appearing?

</Quote>


This means you need to set the IUSR_<MachineName> with permission to write to the XMLQuiz folder.
melidosian
Asp.Net User
Re: If you want XML Quiz module :)5/10/2003 2:15:57 AM

0

Thanks. That's a good thought but still no luck. I've given the IUSR account full control...I've even given everyone full control, and I now get the error below when answering the last question:

A generic error occurred in GDI+.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ExternalException (0x80004005): A generic error occurred in GDI+.]
System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) +517
System.Drawing.Image.Save(String filename, ImageFormat format) +59
ASPNetPortal.XMLQuizPage.PieChart() +1714
ASPNetPortal.XMLQuizPage.ShowResult() +274
ASPNetPortal.XMLQuizPage.btnSubmit_Click(Object src, EventArgs e) +410
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1263




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0
ScAndal
Asp.Net User
Re: If you want XML Quiz module :)5/10/2003 2:12:22 PM

0

Oliver,
How did you get a menu on the left side of the screen on your portal?

ScAndal
.NET Web Based CRM http://www.kineticcrm.com
.NET Consulting http://www.kineticmedia.net
odraskovic
Asp.Net User
Re: If you want XML Quiz module :)6/13/2003 6:45:06 AM

0

Hi ScAndal,

can you tell me address of portal because we use it on different locations.

Oliver
melidosian
Asp.Net User
Re: If you want XML Quiz module :)10/24/2003 10:45:30 PM

0

Odraskovic,

Any ideas on why get get the above error trying to generate the chart?
20 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Sams Teach Yourself .NET XML Web Services in 24 Hours Authors: Mark Augustyniak, Chris Payne, Pages: 438, Published: 2002
DotNetNuke for Dummies Authors: Lorraine Young, Philip Beadle, Scott Willhite, Chris Paterra, Pages: 379, Published: 2007
Camtasia studio 3: the definitive guide Authors: Daniel Park, Pages: 562, Published: 2006
Access 2003 Programming by Example with VBA, XML, and ASP Authors: Julitta Korol, Pages: 682, Published: 2005
Sams Teach Yourself DB2 Universal Database in 21 Days Authors: Susan M. Visser, Bill Wong, Pages: 601, Published: 2003

Web:
If you want XML Quiz module :) - ASP.NET Forums here is link (http://www.sporton.de/downloadmodules/xmlquiz.zip) to XML Quiz module. In zip file you will find explanation what and how to ...
If you want XML Quiz module :) - ASP.NET Forums Hello, I am able to install this module and run it with the provided XML file but get a runtime error whenever I answer the last ...
Using Moodle: Moodle XML Quiz conversion to DOC (via XSLT?) I think if you can come up with a working version of XSL sheet for Moodle questions it would ... Moodle (e.g. via a separate module), whereas with a XML/ XSLT workflow you could build a standalone ... What exactly do you want to achieve? ...
This is v2.1.25 of the HotPot module for Moodle ... If you restrict use via a required Moodle login, you most likely can still ... enable import from Hot Potatoes XML files to Moodle's Quiz module [This step ... where you want to add the HotPot activity, select "Hot Potatoes Quiz" on the ...
Drupal for educational sites: quiz module | drupal.org Like the profile module (or book pages?), you might want to have labelled ...... If you have a problem, please search before posting a question. ..... a module that will hopefully provide an xml document for a quiz show ...







implementing a tabtitle...

dropdownlist with multiple field names

module within a module

edit users : error

aspx page and sql server

documents order

no puedo ver imagen desde una base de datos

title: bug: [large documents in editdocs.aspx section]

c# portal compilation

bug - tablayout.aspx.cs

desktopmodules\edithtml.aspx - the directive contains duplicate 'validaterequest' attributes.

the content disappear!!!

problems after installation

i buy spy store

a different (unrelated) error now with dundas - repost

getting rid of the portalcfg.xml file.

please help - unable to set breakpoint in desktopdefault page

how can i protect directory - uploads\*

installing on win xp pro and sql server 2000

installing asp.net portal using prtl.exe localfullinstall.bat

checkbox validation, raise error immediately?

base class 'asp.net.starterkit.portal.portalmodulecontrol' can't be loaded

ibuyspy

help files

moving to an isp

how to dynamically set record count in sproc

how do i login as admin?

shopping cart functionality

where is the portal download? missing from starter kits page...

submit button in the header control

   
  Privacy | Contact Us
All Times Are GMT