How To Create A Simple Forum
Jan 6, 2011Hey guys, i have some problem here. How can i create a simple forum in asp.net? using wat toolbox?
View 12 RepliesHey guys, i have some problem here. How can i create a simple forum in asp.net? using wat toolbox?
View 12 Repliesim messing around with MVC3 and Razor trying to learn what i can here. Im trying to create a very simple post and replies site while learning all this new stuff.
[Code]....
I have two tables one for messages and one for replies. @model MvcGroupie.Models.Message this starts off the page but i cant add @model MvcGroupie.Models.Reply or it wipes out the other. I tried using a partial view as you can see to do this and that fails too.
So i cant then add
@Html.EditorFor(model => model.replyBody)
I want to Create a forum like "asp.net forum" in My Application.So i want to know that easy flow of making forum list in my Application and how to store it in database.I dont want to make my page loading time is slow. .
View 6 Repliesi want to create a forum like page in ASP ,C# where user can enter some question.
Administrator reply this question,according to if user does not satisfied with the solution then in same thread he may ask for further clearance.for example the forum of asp.net ( the current page)
i wanna create a forum discussion panel for my webapplication just like ASP.Net forum....there i can apply background on each post...and that should be very user frendly....where user click on the reply button of thread than reply box should appear just bottom of that thread...and that reply box should open very stylist just like sliding.
View 2 Replieshow to create the forum database in sqlserver. what tables & columns are required in it .
View 3 RepliesI just wanted to create a forum for my personal purpose .....
It should be similar like our asp.net forum.
how to get started to create forum like this.
Steps i want to know
First user will register in my forum. He might post his / her question in the post. The question first should be verified by forum admin, and then it should be publish to everyone. For any question, any user will come and reply to the post. How to do so? The post should be marked as answer only by the user who posts the question other reply user cant able to marked as answered...?
For the above second (2) steps:
For Eg:
Category:-Buyer/Seller (This will be in dropdown list)
Username:-User A
Subject:- Required 1000 pens in best price
Message:- We are leading stationary products buyers in the world.
Hence we need good pen in best price.
For the above third (3) steps:
How to publish new post in new page dynamically.
For Eg: www.abc.com/0001.aspx this is the new post, posted by User A.
I am a fresher and I have got a project in asp.net and c#. I have to create a forum, something like stackoverflow, so I have studied asp.net, c# and sql server 2008 but now I am unsure how I should start work on this project.
What technology and what part of asp.net, c# and the database will I use more? I have 3 days to study so I want to know which parts of asp.net, database and c# I have to cover in 3 days.It's my first live project, will I have to study any other languages or are the ones listed enough?
How do i create a forum using the toolbox for interface design with connection string connection to the database using visual studio 2005 express edition
View 5 Repliesi do knot know how to make a forum, step by step , in the forum people show their picture and user name
View 3 RepliesI'm trying to create a simple xml structure using the XMLWriter in visual basic for the purpose of creating an html page based on user input.
Here's an example of what I've got so far:
[URL]
How to create a simple shopping cart in asp.net/c#
View 4 RepliesI need to create a simple blog feature for my website. I have created a form that writes to an XML File, i now need to be able to display this file in a blog style, and possible add comments.
View 5 RepliesI want to create a new module in DNN (VB) ... that;
1. does not use DAL or DAL+
2. has only one view.ascx control
3. It has to be a compiled module
I do not need DB connectivity and any bells and whistles just one view control. I thought it would be simple but googling for a day now and it seems very complicated.
I have the development environment already set up with;
1. DNN Starter kit
2. VS 2008
3. SQL server
4. DNN up and running in IIS
5. the project builds successfully
If anyone knows a way I can build a module using the DNN Dynamic Module Template in VS 2008 and then strip off the DAL and all the unnecessary layers and extra controls until I have only a working view.ascx that just prints out "Hello World!" to the screen ...
I'm looking to create a simple watermark on the fly for an image, taking one image (JPEG) and adding some text to it on the BOTTOM of the image in white, with a solid black background right across the bottom. haven't been able to find anything that does it on the bottom of the JPEG.
View 2 Repliesi need to create a simple package that will: 1. insert a data to table A2. get the identity_scope3. insert multiple rows to table B with the id from table Ai created one, but it only does bulk insert, so i want to redo it again.
View 1 RepliesI need to build up a List<object> and cache the list and be able to append to it. I also need to be able to blow it away easily and recreate it. What is a simple way to accomplish this?
View 2 RepliesVery new to ASP.NET and C# (somewhat knowledgable in PHP) I have an ASP.NET web application and need to manage access to pages based on a 'status' stored in a cookie. I would like to use the following code to create the cookie in a login method.
HttpCookie cookie = new HttpCookie("UserCookie");
cookie.Value = "status"; <-- this will be replaced with a variable once its working
cookie.Expires = DateTime.Now.AddHours(1);
Response.SetCookie(cookie);
My problem is that the only place I can put this code where it works is in the global.asax Session_Start method. It simply doesn't work anywhere else. I am checking the cookie creation in firefox options and see the ASP.NET_SessionId created but nothing else (This is all running on localhost).
Is the session status somehow interfering with the cookie creation? Do I need to configure something in Web.config? It would appear that the only time I can create a cookie is on Session_Start. Does anyone have any tips, perhaps I am missing something simple?
I want to create ASP.NET like calendar control in .NET (C#)
I want just to simulate like basic calendar control (not AJAX like )which shows dates and traverse the months.
Rather than try to reinvent the wheel, how to create a stacked/segmented bar or point me to an existing control. Here's what I need:
Horizontal bar
Standard html
Each segment needs to be color coded from css
Each segment needs to be a percentage of the total (i.e. if total value = 100, then a value of 10 for one of the segments would be smaller than a value of 50)
Should be able to fit seamlessly into an html table cell
Should not be an image
Should only create a single bar with segments (not multiple bars/segmented bars)
Server-side generated, no AJAX
This should be as simple as possible given x number of values, create x segments.
I'm looking for code examples or already-built controls.
EDIT: For completeness:
int[] segments = { 10, 5, 45, 20, 20 };
Panel horizontalBar = new Panel();
for(int segmentIndex = 0; segmentIndex < segments.Length; ++ segmentIndex)
{
horizontalBar.Controls.Add(new Panel() { ID = String.Format("segment-{0}", segmentIndex), Width = Unit.Percentage(segments[segmentIndex]), CssClass = "segment" });
}
this.Page.Form.Controls.Add(horizontalBar);
I am looking for a simple (or best practice) way of pre filling some of the fields in a create form. As an example, say the create view is loaded for a model that has a datetime field. I want the textbox for that field to be filled with DateTime.Now. I don't need a javascript watermark or anything like that, I jsut want to pre fill the text box.
The GET version of my Create method in the controller just returns the view with no model so I am not sure where to set this value.I've beel trying to figure this out for a while and I must be missing something, I expected this to be really easy.
I have a subdomain mobile.JassimRahma.com and that's referring of course to a folder on my root called mobile.I just created a simple, very simple Default.aspx file and placed in the mobile folder but I am getting thie error:
[Code]....
I am trying to create a simple menu system using repeaters. In the system I want to use a different formatting for class sub items and am trying to use an If that checks the DataBinders results and branches if its "Classes" but when I compile the code is says:
Name "Container" not declared.
On all the tutorials online and MSDN the Container.DataItem is just assumed to work so i can't find any information on it not working. Can anyone who uses databinders more than me explain this?
<asp:Repeater ID="TopNavRepeat" runat="server" DataSourceID="SqlDataSource1" >
<HeaderTemplate>
<ul id="nav">
</HeaderTemplate>
<ItemTemplate>
<li>
<asp:HiddenField ID="LinkIdField1" Value='<%# Eval("id") %>' runat="server"
OnDataBinding="LinkIdField_ValueChanged" OnValueChanged="LinkIdField_ValueChanged"/>
<asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("Title") %>' NavigateUrl='<%# Eval("Url") %>'
ToolTip='<%# Eval("Description") %>'>
</asp:HyperLink>
<ul>
<!-- -->
<% If (CStr(DataBinder.Eval(Container.DataItem, "Title")) = "Classes")THEN %>
<asp:Repeater ID="ClassDownList" runat="server" DataSourceID="ClassDS">
<HeaderTemplate></HeaderTemplate>
<ItemTemplate>
<li><asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("name") %>' NavigateUrl='<%# "/Class/" & helpers.urlSafe(CStr(Eval("name"))) %>'
ToolTip='<%# CStr(Eval("name")) & " home page" %>' /></li>
</ItemTemplate>
<FooterTemplate></FooterTemplate>
</asp:Repeater>
<% Else %>
<asp:Repeater ID="DropDownList" runat="server" OnLoad="ChildDataList_Init">
<HeaderTemplate></HeaderTemplate>
<ItemTemplate>
<li><asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("Title") %>' NavigateUrl='<%# Eval("Url") %>'
ToolTip='<%# Eval("Description") %>' /></li>
</ItemTemplate>
<FooterTemplate></FooterTemplate>
</asp:Repeater>
<%End If %>
</ul>
</li>
</ItemTemplate>
<FooterTemplate>
</ul>
</FooterTemplate>
</asp:Repeater>
I want to create a webmail like yahoo or gmail ? in which people can send email to yahoo and gmail and receive emails also ? at the same time i want that i can customize the css . I have heard of telerik webmail but the demo and the source code downloaded does not allows us send email .. .
View 7 RepliesIm about to create a very simple online event reservation application and currently have 3 tables:
User
PK_UserID
UserName
Event
PK_EventID
EventName
EventDescription
EventStartDate
EventEndDate
SeatsAvailable
BookedEvents
ID
FK_UserID
FK_EventID
Do you have any experience of how to handle SeatsAvailable? I mean if SeatsAvailable is set to 5 and there are 5 users online and want to book event. And some user has started to fill out the form then changed his mind. Then seats in database can just leak. I was thinking about sessions - like to limit every user to 5 minutes to complete the booking but i dont really know.