Calculating Ratings/points In A Community Driven Website?
Aug 29, 2010
To learn ASP.NET MVC, I am thinking of creating a community forum like SO where people can rate posts, users etc. and the user can thereby gain points. I just can't figure out if the points should be added to the user profile whenever an action is done (post rated up/down, user created new post etc.) or if it should be calculated from the different activities the user has done.
I have a few pro's and con's for both ways of doing it:
[code]....
View 3 Replies
Similar Messages:
Dec 1, 2010
I am in the process of putting a new site together which will make use of AJAX to pull through page content should the user have javascript enabled.
So, I am in the situation whereby every Action Method requires a check to see if the request was through AJAX or not, which is straightforward. If the request was through AJAX then I can return a partialview, if not then a full view can be returned.
With this pattern though, I'll need to create a View and a PartialView for every page on the site. The only real difference between them is going to the inclusion of the masterpage.
Am I missing a trick here is is this doubling up of views the only way to go?
I had a page that could get accessed through /site/test. Somewhere in my JS I would add a hash to the url like so #/site/test. JS would then watch for any hash changes and load the partial views as needed. If JS was not available though, an entire view would need to be returned.
So for each page I would need the view, which would then include a call to RenderPartial which would load up the partial view which would actually contain the page content. So, for every page there are two files. It just seems there should be a cleaner way of doing this.
View 1 Replies
Feb 23, 2011
I am looking for an open source Thermometer that i can connect to a JSON or XML datasource and display this on my website.
The site is an asp.net site so javascript controls are not a problem. My Googling didn't reveal very much at all.
View 1 Replies
Dec 26, 2010
First, I am new to VWD 2010 and attempting to create a data driven website.
I am attempting to return a value from an sql server stored procedure and store that value in a variable. I have searched here and online and tried to follow the examples that I found. However, I have not been successful in making it work.
Here is my stored procedure:
[Code]....
Here is my VB code behind where I am attempting to get the return value:
[Code]....
I know that I have a good connection because I am using the same connection string from my WebConfig file and it is working in other instances.
Below is the error message that is being displayed.
'The formal parameter "@monRegAmt" was not declared as an OUTPUT parameter, but the actual parameter passed in requested output."
View 11 Replies
Mar 3, 2011
On my local machine I have created a database driven website. All is working well on my local machine.
Now I want to upload it to my Arvixe Hosting. How do I do that from Visual Studio 2010 Keeping in mind I have a Database too ?
Do I need to manually create a Database on the Server ? Do I then create all the tables Manually ? Do I then populate the tables manually ? Or is it a 1 button click ?
View 10 Replies
Nov 22, 2010
I'm used to developing private applications for very small amount of concurrent users (usually no more than 10) on very good servers, so I have never been pressed about stress testing my applications. That being said, this is something I want to have a better grasp on my applications.
FYI, all of my websites are based on ASP.NET 3.5 (WebForms), NHibernate (specially interested in testing it with numerous concurrent sessions) as the ORM of choice and require Active Directory authentication.
View 2 Replies
Feb 24, 2010
How to Access 2007 data driven website SELECT Article, ArticleContent, Category
View 3 Replies
Mar 26, 2010
I have a website using .Net framework 2 on a dedicated server who's display periodically corrupts - typically after heavy traffic numbers to the server. I can correct the problem simply by uploading a batch of user-controls to the server, or recycling the memory pool.
Has anyone else seen this type of effect before, where the display of data-driven elements of a website corrupt?
Corrupt image first.
View 5 Replies
Mar 28, 2011
I have been asked to take over and modify an existing dynamic web site made with vb and asp 3.5 on a shared hosting enviroment. The original programmer left and I have no access to the original documentation of the site, if any. Nevertheless, I have complete access to the web server and database server.
How can I import the existing wen site into Visual Studio and recreate the development enviroment.
I'm new to asp.net, but U have prior experience with VB and asp web development.
View 3 Replies
Jan 14, 2010
I am looking to make the jump from PHP and Flash/Flex to .net and Silverlight (maybe not a full jump, but I want to be ready when Silverlight takes the lead from Flash)I'm looking for the common/trusted mvc framework most people use/support and is potentially backed by microsoft
In PHP we have Zend Framework http://framework.zend.com/ this is backed by key contributors to the PHP languageIn Flex we have the Cairngorm framework http://opensource.adobe.com/wiki/display/cairngorm/Cairngorm (developed by Adobe consulting) backed by Adobe the creators of Flex
There of course are other frameworks for both PHP and Flex, but a much smaller population base even if they offer some nicer things individually, they lack frequent updates or community support.So my question is, what is the "accepted standard" framework that people use with .net and/or silverlight?
View 4 Replies
Feb 23, 2010
I developed a control a while ago, that I would like to share with the community. It is very similar to the ComboBox control in the toolkit, except it doesn't store the items in the page, so for long lists it doesn't create a performance hit, it also implements paging, and bolding of typed text. To do this it further extends the AutoComplete control.
What is the best way to share this, and allow other developers to improve it/use it? Maybe even have it added to the control toolkit eventually?
View 2 Replies
May 7, 2015
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div style="width: 100%; padding-top: 1em">
<img src="Abme/img/rating.png" alt="view" height="25px" width="25px" style="float: left" />
[Code] ....
My ajax rating panel
protected void OnRatingChanged(object sender, RatingEventArgs e) {
SqlConnection con = new SqlConnection(connStr);
SqlCommand cmd = new SqlCommand("Insert into rating(rating,postid) values(@rate,@pi)", con);
cmd.Parameters.AddWithValue("@rate", e.Value);
cmd.Parameters.AddWithValue("@pi", Request.QueryString["ID"]);
[Code] ....
The rating value get inserted to database async but updated rating is not displayed after update. I have to refresh page in order to display updated ratings.
View 1 Replies
Jun 9, 2014
I have to work with the Google Places API, specifically Zagat Ratings. It is "premium data" meaning I can't just be a billing user (which is what I am now), I have to be an enterprise user (which it looks like you have to buy a license or otherwise pay to become). How exactly how one becomes an enterprise user? If you happen to have used Zagat ratings, any example of data that comes back from a query so I can take a look and be sure it suits our needs?
If you want the details, this is what I've done (since beginning research on this on Friday).
1. I obtained an API key and in order to do so I created a project (by logging into my google account). My project name is the default "My Project". Then I created a new browser key. With this key, I was able to post requests as below:
[URL] ....
The reply has no Zagat ratings, though. I determined this is because I'm not an Enterprise user: To obtain Zagat data you have to become an enterprise user; just being a "billing user" is not enough.
2. So I wanted to see definitively what kind of a user am I. One hit I got said "Visit the APIs Console and log in with your Google Account", then "Select the project that was created for you when you signed up. The project name will start with Google Maps APIs for Business". I didn't quite understand this second part, and how it presumes to know what my project name is, especially since mine is just the simple default "My Project". Finally it says: "The Places API - Zagat Content service should be enabled (mine is not. Actually, I have no such thing). The Places API service should be disabled (mine is enabled).
View 9 Replies
May 7, 2015
I am usingĀ [URL] ....
And my question is the user should not vote again if he/she already voted....
View 1 Replies
May 27, 2010
I'd like some recommendations for a good open source CMS . I need it for developing a multilingual (Hebrew/Arabic/English) community site. I'm familiar with ASP.NET and would like to stay within this framework.
View 8 Replies
May 25, 2010
I am simply trying to determine age from a selection of Month, Day and Year representing birthdate, which I have captured from three drop down list boxes, by subtracting the studnetBirthDate from Today. How can I get Age? Using a calendar to select birth date seemed too clumsy because of the year navigation, age ranges from 3 to 26 yrs old. If anyone has a better idea I would be open to that as well. Instead I am using three dropdown boxes, one each for day, month and year.
Dim studentBirthDate
As
Date
Dim stMonth
As
String.........
View 4 Replies
Dec 5, 2010
I have this SP. When I run this one my calculations is only the first row in OrderDetails. I want it to calculate all rows
[Code]....
View 4 Replies
Oct 6, 2010
Assuming I have a .css file with the following linebody { background-image: url('../images/bg.png') }My build process does some CSS magic and eventuall move this file from
~/Content/styles/styles.css
To
~/temp/styles.css
This invalidates the url statement in the file and needs re-written to ../Content/images/bg.pngThis is my question - given the original file location, the new file location and the background-image url in the file is there a reusable way calculate a new relative path for the image?In case someone doesn't know css urls should be relative to the css file it is contained within.
View 2 Replies
Oct 13, 2010
I was reading this article about relative time calculationThe problem is that the results are wrong due to the time offset. My webpage is Greek.So how should i modify that function to work correctly, including the GMT+2 or GMT+3 hours offset?
View 2 Replies
Sep 25, 2010
in my application two time input will be passing to my sql stored procedures and I need to calculate the timespan between them. how can I do that? is there any way that I can do the following in t-sql?
[Code]....
View 5 Replies
Mar 11, 2011
I have a dropdownlist having values 'today','yesterday',lastweek', 'last month', 'lastyear'.
when the user select any value from this dropdown, i want to show the from date and to date in two text boxes.
e.g. if the user selects last week, 'to date' should be today's date and 'from date' should be (today's date - 7). if current date is 12, 'from date' = 6 and 'to date' = 12
How do I do this?
View 3 Replies
Nov 6, 2010
I have a datatable as below:
Type Amount
A 1
A 2
B 3
C 5
B 1
How do I calculate and group the data to become the following datatable?
Type Amount
A 3
B 4
C 5
View 2 Replies
Apr 1, 2010
want to calculate age from data of birth in following following format.27 Year 03 Months 05 Days
View 3 Replies
Mar 31, 2010
i have a button and in click event i want to take the SUM() of a one cloumn and assign it into a integer and if that integer is > 20 display "pass" or something
i've tried many ways but non worked.
View 8 Replies
Dec 21, 2010
My code is to update a record if it already exists in database else insert as a new record. My code is as follows:
protected void Button3_Click(object sender, EventArgs e)
{
OdbcConnection MyConnection = new OdbcConnection("Driver={MySQL ODBC 3.51 Driver};Server=localhost;Database=testcase;User=root;Password=root;Option=3;");
MyConnection.Open();
String MyString = "select fil_no,orderdate from temp_save where fil_no=? and orderdate=?";
OdbcCommand MyCmd = new OdbcCommand(MyString, MyConnection);
MyCmd.Parameters.AddWithValue("", HiddenField4.Value);
MyCmd.Parameters.AddWithValue("", TextBox3.Text);
using (OdbcDataReader MyReader4 = MyCmd.ExecuteReader())
{
//**
if (MyReader4.Read())
{
String MyString1 = "UPDATE temp_save SET order=? where fil_no=? AND orderdate=?";
OdbcCommand MyCmd1 = new OdbcCommand(MyString1, MyConnection);
MyCmd1.Parameters.AddWithValue("", Editor1.Content.ToString());
MyCmd1.Parameters.AddWithValue("", HiddenField1.Value);
MyCmd1.Parameters.AddWithValue("", TextBox3.Text);
MyCmd1.ExecuteNonQuery();
}
else
{
// set the SQL string
String strSQL = "INSERT INTO temp_save (fil_no,order,orderdate) " +
"VALUES (?,?,?)";
// Create the Command and set its properties
OdbcCommand objCmd = new OdbcCommand(strSQL, MyConnection);
objCmd.Parameters.AddWithValue("", HiddenField4.Value);
objCmd.Parameters.AddWithValue("", Editor1.Content.ToString());
objCmd.Parameters.AddWithValue("", TextBox3.Text);
// execute the command
objCmd.ExecuteNonQuery();
}
}
}
I am getting the error as: ERROR [42000] [MySQL][ODBC 3.51 Driver][mysqld-5.1.51-community]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order,orderdate) VALUES ('04050040272009',' &' at line 1
The datatype for fields in table temp_save are:
fil_no-->INT(15)( to store a 15 digit number)
order-->LONGTEXT(to store contents from HTMLEditor(ajax control))
orderdate-->DATE(to store date)
View 2 Replies