C# - Tags List In Stackoverflow?

May 17, 2010

am working on website in asp.net mvc. There is form where user is asked to put some information along with the Tags similar to stackoverflow. this tags information is saved in the same table in field Tags.Now I want to show them a help to select tags from the list (same as in stackoverflow).how can i extract it from the table. Wont it be too much to run the query again and againfor each letter they type, because I will be extracting unique tags from my table. Or should i have another table tagslookup where i should save unique tags.

View 1 Replies


Similar Messages:

C# - Best Pratice: How To Implement A List Similar To Stackoverflow's Users List

Apr 7, 2010

Technologies involved:

ASP.NET Web-forms
Javascript (jQuery for instance)

Case,To make it clearer let's give the Stackoverflow Users list as an example. This list can be manipulated at client-side. I can search, page and so forth. So obviously we would need to call jQuery.ajax to retrieve the HTML of each page given a search. Alright. Now this leaves me with the first question:

What is the best way to render the response for the jQuery.ajax at server-side? I can't use templates I suppose, so the most obvious solution I think is to create the HTML tags as server-controls and render them as the result of an ASHX request? Nice. That solved we have yet another problem:

When the user first enters the Authors List the first list page should already come from the server completely rendered alright? Of course we could render the first page as well as an ajax call but I don't think it's better. This time I CAN use templates to render the list but this template couldn't be reused in case 1. What do I do?

Now the final question: Now we have 2 rendering strategies: 1) Client and 2) Server. How do I reuse code for the 2 renderings?

View 2 Replies

Stackoverflow Style Data List View?

Jan 17, 2011

I use ASP.Net web form and ADO.Net.I would like to show the data list like stackoverflow because I don't want to use GridView. I've some data fields to show example.

Title
Description
Date
Keyword

what control I should use and that control will attach with Pager for the data list.

View 2 Replies

C# - Adding A List Of Tags (from UI) Into Database?

Mar 10, 2011

I have this food recipe asp.net c# application I'm working on and I would like to be able to insert a list of tags into the database for each recipe. So let's say I have three tags (southern, cajun, gumbo) that correspond to a gumbo recipe. How would I insert these three tags into the database from the UI? Would I store them in a List, run a foreach, and insert each tag individually? I'd really like to be able to somehow use a stored procedure to do this.

View 2 Replies

AJAX :: Script Tags Rendered Inside The Body Tags?

Jun 26, 2010

i have created a aspx page with the script manager, update panels and so on. Now, when i use some jquery functions which are included inside the head tags, when the page is run, i find the script tags generated inside the body instead of the head tag. i'm using visual studio 2005 only.

View 2 Replies

C# - Forum Tags: Can Regex Be Modified To Grab Nested Tags?

Feb 24, 2011

I am building a forum and I want to use forum-style tags to let the users format their posts in a limited fashion.Currently I am using Regex to do this.As per this question:How to use C# regular expressions to emulate forum tags. The problem with this,is that the regex does not distinguish between nested tags.Here is a sample of how I implemented this method:

public static string MyExtensionMethod(this string text){return TransformTags(text);}
private static string TransformTags(string input)
{string regex = @"[([^=]+)[=x22']*(S*?)['x22]*](.+?)[/(1)]";
MatchCollection matches = new Regex(regex).Matches(input);
for (int i = 0; i < matches.Count; i++)
var tag = matches[i].Groups[1].Value;
var optionalValue = matches[i].Groups[2].Value;
var content = matches[i].Groups[3].Value;
Now,if I submit something like [quote] This user posted [quote] blah [/quote] [/quote] it does not properly detect the nested quote.Instead it takes the first opening quote tag and puts it with the first closing quote tag.Do you guys recommend any solutions?Can the regex be modified to grab nested tags?Maybe I shouldn't use regex for this?

View 3 Replies

Looking For Stackoverflow-esque Source Code?

Nov 24, 2010

I am aware Stackoverflow isn't open source, but i have seen a MIX video of phil haack creating a stackoverflow-like app called 'haackOverflow" .

PS : I'm looking for a app that is developed in ASP.NET MVC(with best practices). i have found music store, nerd dinner,and MS town hall app.

View 1 Replies

C# - StackOverflow Userpic Generation (Identicons)?

Dec 22, 2010

i an creating a website in C# ASP.NEt and want to use a feature similar to StackOverflow ,Every time a new user registers on the StackOverflow.com he is assigned a default user picture until he has a gravatar, Now every picture is different from the previous one, so it is sure it is generated, i want to know how can this be done in C#.Note: (I don't think it is a meta question so please don't move it there)

View 1 Replies

Implementing Google Accounts' OpenID Like Stackoverflow?

Sep 17, 2010

Firstly, This question may be asked. But I could not get the information i am looking for.

I am creating a website which should take to [URL] where the user enters his account information and it redirect back to my website similar to how stack over flow is doing when we click on gmail image.

I am trying to implement a website in .net.

list a step by step procedure to implement it or suggest some documentation to follow.

I clearly dont want other types of openID implemention where u enter the open id and pick ur open id provider.

View 2 Replies

Display Time Padded How Stackoverflow And Facebook Do - C#?

Sep 5, 2010

I have a ASP.NET MVC 2 app I am building and users are allowed to post data in certain sections. I would like to display the "Posted At" in the same format that Stackoverflow and Facebook do. i.e. On this site when I post this question it will display "asked 3 seconds ago" then "asked 3 mins ago" and after a few day it will display the date. My app is C#,

View 2 Replies

Consuming StackOverflow API And Visual Studio 2010?

Feb 14, 2011

I have downloaded TheWorldsWorstStackOverflowClone. One of the project is called TheWorldWorsts.ApiWrapper, which basically is the core of accessing the API. There is a class called ApiProxy.cs, which has all the methods for the API call. This is good.

Now what I want to do is I am trying to collect data from this API interface and store it in a database. I know the limit to the API call is 10k per day. I.e: I want to be able to call the method in the ApiProxy class 10k times per day, done automatically. How can I do this?

The non-automatic way would be to create a dummy site where when every time I access the site it does all that process, but this not efficient. It seems that I have to write some kind of a scheduler by deploying a web service, but that is too complicated... as explained here. Any other simpler methods?

View 1 Replies

What Parts Of .net, C# And Database Should Use To Create A Forum Like Stackoverflow

Aug 26, 2010

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?

View 2 Replies

How To Apply CSS Tags To <li> Tags When Using 4.0 Menu Control

Feb 1, 2011

Is there a way to apply your own CSS tags to <li> tags when using ASP .NET 4.0 menu control? For example, say I have an external style sheet that has tags "class1", "class2", "class3", and etc. I want to apply "class1" to the first menu item. Then if menu item is selected, I want to apply "class2" and if it's not selected, "class3". I played with various 'Static' styles, but just can't get it work. I finally gave up and created my own menu control that extends ASP .NET menu control and provides my own custom rendering. This works, but I'm wondering if there is a way to get it work with built-in menu control.

View 1 Replies

How Much Work-power And Time Does It Take For Building Website Like Stackoverflow

Feb 20, 2010

I'm wondering building a website like StackOverFlow (approximately the same features using ASP.NET ) How much Work-power and time does it take in your opinion . My boss has asked me to estimate for work-power , time , cost and suitable technologies .

View 6 Replies

Security :: Wondering How Does This Website - Stackoverflow Handle The User Authentication?

Aug 17, 2010

I am wondering how does this website - stackoverflow handle the user authentication? It accept yahoo, google, facebook, myspace, openID etc to login. And most importantly with asp.net.I want to build something like this too.

View 1 Replies

Remove Style Tags,css,scripts And Html Tags From Html To Plain Text?

Mar 8, 2011

I want regex operation for removing style tags,css,scripts and html tags from html to plain text in asp.net c#...

View 1 Replies

Remove All Html Tags And Javascript Tags Using Regex In Javascript

Jan 31, 2011

How can I remove all html tags and script tags? consider also short tags like unclosed tags

<script>blah...</script>
<body> aaa<b>bbb</body>

This should return aaa bbb.

notice that all the contents inside the script tag is ignored.

View 3 Replies

AJAX :: Getting Html Tags Output Instead Of Executed Html Tags

Mar 27, 2010

i'm doing ajax website using PostWebRequest() function, when i call any .aspx page to the target html element the output is coming fine in IE but in FF(FireFox) is coming in html format(html tags) IE output : [URL] FF output : [URL]

javascript functions :
function PostWebRequest(postPage, HTMLTarget, parameter) {
displayElement = $get(HTMLTarget);
displayElement.innerHTML = "<div style='text-align:center;'><br /><br /><br /><br /><br /><img src='images/ajax-loader.gif' algin='center' /></div>";
var wRequest = new Sys.Net.WebRequest();
wRequest.set_url(postPage);
wRequest.set_httpVerb("POST");
var body = parameter;
wRequest.set_body(body);
wRequest.get_headers()["Content-Length"] = body.length;
wRequest.add_completed(onWebRequestCompleted);
wRequest.invoke();
}
function onWebRequestCompleted(executor, eventArgs) {
if (executor.get_responseAvailable()) {
if (document.all) {
displayElement.innerHTML = executor.get_responseData();
}
else {
displayElement.textContent = executor.get_responseData();
}
}
else {
if (executor.get_timeOut()) {
alert("Timed Out");
}
else {
if (executor.get_aborted())
alert("Aborted");
}
}
}

View 1 Replies

JQuery/Ajax Pager Of Mvc / What Pager Code Has Stackoverflow

Jan 30, 2011

suggest any jQuery/Ajax pager solution for asp.net mvc application.

Main requirements are:

1) source code available ( will modify a little if necessary)
2) page shifting have to be without full postbacks based on jQuery/Ajax

BTW, what pager code has Stackoverflow?

View 1 Replies

Web Parts - Contain Tags?

Feb 16, 2011

My aspx page contains a region which is populated trough ajax. The pupulated content is that of the page MyWebpart.aspx. But MyWebpart.aspx contains not only a grid(which is what I need to get trough ajax), it also contains , , , tags because this are required for any aspx file.code to replace inner html with that received from webpart

displayElement.innerHTML += executor.get_responseData();

View 1 Replies

Firefox Won't Display All Tags?

Mar 5, 2011

I have an issue with Firefox. After creating a new template for my website using <div> tags, i noticed that not all tags are displayed when i preview the site in firefox.

I put the sample template in the following location:

[URL]

I was able to verify my CSS with the following link: [URL] and it passed without any problems. The html part is correct as well.

My question is how come two div tags: <div class="header9"></div> and <div id="sidebar"></div> are not displayed in firefox. It works fine with explorer but firefox has issues.

Also the background-color for <body> takes over in the middle, even though i've created a <div id="wrapper"> with all divs inside and background color assigned to white.

I've tried developer extension for firefox but still was not able to find the problem.

It's very annoying that simple (basic) tags such <div> could have isssues being displayed. Does anyone know what am i doing wrong and how to fix that issue?

View 7 Replies

How To Use Basic Html Tags

Jun 27, 2010

how can i use basic html tags(h1,h2 and <p>) in code behind.

View 4 Replies

Dynamic Meta Tags Using SQL And VB?

Jul 27, 2010

I am new to ASP.NET and I am trying to dynamically bind the Meta Keywords, Title and Description from a SQL database to a MasterPage / Code Behind file using VB. I need to know what goes into the Master Page and what goes in the Code Behind file. My database is named "Products" and the columns I need to bind are Keywords, WebTitle, and Description.

View 2 Replies

How To Get Rid Of HTML-tags In A Message

Mar 8, 2011

For the last time I've been using EWS MAPI to connect to Exchange Server. After this is done I access my mails and firstly display their body (which contains a LOT HTML-tags) in a gridview. After you select a record of that gridview the body is shown in a freetextbox.

View 3 Replies

SQL Server :: Get The Last 3 Tags That Added To The Db

Oct 11, 2010

I want get the last 3 tags that added to the db. My Tag table schema is:

TBL TAG:
CREATE TABLE [dbo].[tblTag](
[TagId] [int] IDENTITY(1,1) NOT NULL,
[Header] [nvarchar](200) NULL,
[IsActive] [tinyint] NULL DEFAULT ((0)),
[Ordered] [int] NOT NULL DEFAULT ((1)),
[Language] [nvarchar](5) NULL,
[DateTime] [smalldatetime] NULL,
[Official] [nvarchar](max) NULL,
[LastUpdate] [datetime] NULL,
[Locked] [tinyint] NULL,
[LastUpdateUser] [nvarchar](256) NULL,
[NumViews] [bigint] NULL,
[AllUserModified] [nvarchar](max) NULL,
CONSTRAINT [PK_tblTag] PRIMARY KEY CLUSTERED
(
[TagId] ASC
)

My TagtoMoudule table:

CREATE TABLE [dbo].[tbl_Module_Tag](
[AutoId] [int] IDENTITY(1,1) NOT NULL,
[ModuleId] [int] NOT NULL,
[ItemId] [int] NOT NULL,
[TagId] [int] NOT NULL
) ON [PRIMARY]

I want get the last 3 items in the tbl_Module_Tag but with no duplicate value, get uniq tags For exemple If the data the query "select tagid from tbl_Module_Tag order by autoid desc" return this values..........

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved