Community-Credit.com | NonProfitWays.com | SOAPitstop.com   Skin:   
      User: Not logged in 
Home
Newsletter Signup
XSLT Library
Latest XML Blogs
Featured Examples
Presentations
Featured Articles
Book Chapters
Training Courses
Events
NewsGroups
 
Discussions
Examples
Tutorials
Tools
Articles
Resources
Websites
 
Sign In
My Profile
My Articles
My Examples
My Favorites
My Resources
Add a Resource
Logout
 
About Me
My Blog
HeadGeek Articles
Talking Portfolio
Resume
Pictures
World Trip Pics

Poll Control for maatechsources
Author: Malinda Ng
Published: 11/28/2006 9:53 PM
Category: ADO.NET, ASP.NET, C#, Caching, Datagrid, Datalist, Localization, Namespace, Validation Controls, VB.NET, WS-Security, Authentication, Database, Debugging, SQL
Summary: I've written a Poll extention for the maatechsources. As an administrator you can
add Poll's and provide some answers for the Poll.
Check it out: http://m.aatechsources.com

 

_ changed the AvatarImageFetch.ashx. It shows the nophoto.gif in case of there's no

photo associated with the member. (code in C#)

- The database tables have cascading delete relations in them, thus if you drop (delete)

an Answer, you will also drop all its votes. If you drop a question, all answers will be

deleted too.

- Are there bugs or do you have any remarks or think the code is crap, just let me know

- Bugfixing in general

- Changed the answer linkbuttons into radiobuttons and added a submitbutton to submit your

vote.

poll.css

Poll_View.aspx.cs

Poll_View.aspx

Poll_Manage.aspx.cs

Poll_Manage.aspx

Poll_List.aspx.cs

Poll_List.aspx

Poll_Answers.aspx.cs

Poll_Answers.aspx

Poll_AddReaction.aspx.cs

Poll_AddReaction.aspx

AvatarImageFetch.ashx

- VB.NET:

Poll.vb

PollControl.vb

PollData.xsd

PollData.xss

N.B. the aspx inline code is in C# however this will run fine in a VB.NET site. Isn't the CLR fun?

Why pick one language when you can use and learn both! But because of the way assemblies compile,

The code in the App_Code folder needs to be all in one language.

3. Copy these images to the Images folder:

pixel.png

4. Add these 3 access controls to web.config:

<location path="Poll_Manage.aspx">

<system.web>

<authorization>

<allow roles="Administrators"/>

<deny users="*"/>

</authorization>

</system.web>

</location>

<location path="Poll_Answers.aspx">

<system.web>

<authorization>

<allow roles="Administrators"/>

<deny users="*"/>

</authorization>

</system.web>

</location>

<location path="Poll_AddReaction.aspx">

<system.web>

<authorization>

<deny users="?"/>

</authorization>

</system.web>

</location>

 

5. In default.master, add this to the head section right under the other CSS link:

<link href="poll.css" rel="Stylesheet" type="text/css" />

6. Run the sql script

clubPoll.sql

7. Add the PollControl to the page you want

<Club:PollControl ID="PollControl1" runat="server" />

 

 

Enjoy and I look forward for your feedback.

Malinda


 

 
Fans of "The Office"
Dwight Bobbleheads are here!
  “It's me! I'm the bobblehead! Yes!”



Advertise on XMLPitstop

Advertise on XMLPitstop


EggHead Cafe
Web Servicee development
DotNetSlackers
Buy text ads here!
online storage
Color Laser Printer
Chanel sunglasses
Skype vs. sipcall
VoIP Internettelefonie
Buy text ads here!

Interested in Text ads?
2,222 Total Members
35 members(last 30 days)
7 members(last 7 days)
1 members(today)

1,609 Total Discussions
12 Posts(last 30 days)
0 Posts(last 7 days)
0 Posts(today)

17,169 Total Blog Posts
1,748 Blogs(last 30 days)
251 Blogs(last 7 days)
0 Blogs(today)

8,699 Newsgroup Posts
0 Posts(last 30 days)
0 Posts(last 7 days)
0 Posts(today)

13,786 Total Resources
5 Resources(last 30 days)
1 Resources(last 7 days)
0 Resources(today)


 

David Silverlight's XMLPitstop.com| 2801 Florida Ave #225|Miami, FL 33133|Ph:305-447-1139