.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Suggestions and Ideas are needed for doing the below

Posted By:      Posted Date: October 07, 2010    Points: 0   Category :ASP.Net

 Hi all,

I have stored the html contents in Database Table column like page content now i want to display those saved contents on the page now suggest me may i use the Div with run at server or any other control iam talking about the performance Point of view ????

Which control should i use for displaying the html contents on the aspx page ???


Suggestions are welcomed


Best Regards

View Complete Post

More Related Resource Links

Looking for suggestions or ideas how to setup to capture search criteria and present to user if they

Requirements call for the ability to save search values so that they can select them at later times to return the results without having to re-enter the values. They have the ability to search on 4 different types of data (Date, Time and Lat/Long), so they would like to capture what was entered and ONLY if they chose to save those values, it will be saved and next time they login, if they are searching, they can pick an old search and submit it again.   Im thinking that i add a checkbox next to each button, if they check it, it saves the data into a table with there values and username. Next time they login and go tothe search page, if there are any records for them in the table, i present them with a link that displays all the values stored and if they select one, it will run the search again and present them with the results.. does that sound like the right way to handle this request? 

Securing AJAX Calls from JQuery (Looking for ideas, suggestions, best practices).



I am working on web application in which all of the data I am submitting back to the server is being done on the client side using JQuery AJAX calls to my .NET web services using JSON.  This works perfectly to enhance my user experience and greatly reduces post backs, etc.

What I am looking for suggestions on is securing the web services being exposed to the client side from being used by anything but my JQuery code on my site.  The security hole that I see here is that since the client-side JQuery can access the web services, so could anything.

Any ideas?  What is the best practice here?


Secure transfer of files in a wcf Service.?help and ideas needed..!!!


hey wcf guys...!! hi all

hmmm.To start with I have developed a wcf application...where files are uploaded and th wcf service also supports resume functionality as well...That is done and now remains SECURITY!!.Fine i want the files to be uploaded in a secure manner..so that no one else on the channel can access it..I mean i requrire security,,obviously..for it(application) to go live..


Now ,i actually dont know how could i implement it??..should i attach a certificate??how do i do that?? Using BasicHttpBinding in the application .Have no idea as to how will i implement security..so could any kind person please give me a clear idea an d help me go through this..??

anyway..thanks in advance..waiting for some good ideas and responses...



Mumtaz Surani

Multi-threading in .NET: Introduction and suggestions

This article uses the C# type shorthands throughout - int for Int32 etc. I hope this makes it easier for C# developers to read, and won't impede any other developers too much. It also only talks about the C# ways of declaring variables to be volatile and locking monitors. Developers using other languages can find the equivalents in their own preferred environment, I'm sure.

Response.BinaryWrite help needed


Hi all

Im new to .NET and stuck now, so i hope anyone can help my with my problem.

I have a MS SQL database where i have stored some documents as Binary data. I cant figure out how to retrieve them and show/download them in my browser.

I found some guides online and have try to put something together.


private void Write()
 int id = 0;
 string strID = Request.QueryString["id"];
 int.TryParse(strID, out id);

 var db = new ModelDataContext();
 var doc = db.DocumentDatas.Where(x => x.ID == id).FirstOrDefault();

 byte[] byteArray = File.ReadAllBytes(doc);


How do i fill the byteArray with the data?

Thanks in advance :)


Need suggestions on Online Exam Application



I am thinking about creating an online exam application  using asp.net + C # and Server. To do this need some suggestion and help from experts.

My requirements are:-


  1. All Questions and answers will be stored in sql server database.
  2. Questions should be choose randomly for each candidate.
    • What method should I use to choose the questions randomly?
  3. If anything  happened unexpectedly and application get closed during the online exam .I need to get the same group of questions for the specific candidate
    • How can we handle these kind of situation

help needed: Ldap User authentication using userDN and password



Is it possible to authenticate a user using userDN and password? If so, then tell me the syntax.So far i have tried to authenticate using username and password from my c# code using directoryentry which takes the parameters like domainname,username and password. But i need to authenticate using Userdn and password.

helped needed: ASP LDAP authentication failed in IE 8


I use the following code to do the user authentication through Active Directory using LDAP.

entry = new DirectoryEntry("LDAP://" + server, user_name, password);
if (!string.IsNullOrEmpty(entry.Name))
EmployeeNetId = entry.Username.Substring(0, 3);

// Retrieve EmployeeId, and Employee Full Name
EmployeeId = -1;

It works for Chrome, Firefox with no problem. But with IE 8, it works sometimes, and failed on some computers. When it failed, I figured that I need to check SSL 2.0 in IE 8 Internet Options.  It's weird because in those computers that IE 8 works, SSL 2.0 is also unchecked.

Am I using some deprecated method? Or How do I specifiy the SSL version options in the LDAP connection?

{ End Bracket }: Your Innovative Ideas


Having that next great innovative idea is only half the battle-getting it heard is the real challenge.

Eric N. Bush

MSDN Magazine February 2009

Making auto suggestions more appropriate for your textbox

To round out my coverage of Input Contexts we need to cover the concept of Input Classes. Put simply an input class is a hint to the Windows Mobile OS as to what kind of information should be entered into a text box (for example an email address, phone number, or person's name).

Selecting an Input Class for a textbox will change the source of data used for the auto suggestions provided by the OS as the user starts typing. For example in the screenshot above you can see the user is typing in a person's name yet the operating system is suggesting matching cellphone numbers.

GridView Code Suggestions



I have a gridview which displays data from a database.

Everything works fine, the thing is that I haven't come with a method to do the next thing:

The gridview displays something like this:

Client - Total - Percentage

Ex1      1000    20%

Ex2      2000    40%

Ex3      1000    20%

Ex4      500      10%

Ex5      500      10%

This data might vary depending on the month selected etc etc....

What I want to do is that the gridview kind of check its rows and start summing the percentaje, when it sums 80% I want to color the rows that sum the 80% to one specific color then the rest of the rows  leave them with the default color or change it too.

I'm thinking that I might be able to do that with the row data bound event, but I just can't find the answer to do it, I know how to iterate through the rows to sum the values but then how I can tell it to stop if it reaches 80% and color the rows that completed that 80%.

Another thing, the rows that complete this 80% of course have to be the ones with the greatest percentages. In the example above it would be Ex1, Ex2, Ex3. That 80% percent can

Autocomplete with multiple word suggestions, How can we do in Asp.Net with Ajax?


Hi All,

Could you please let me know the process to get multiple word suggesions for a text box in asp.net using Ajax.  

Actually I got a solution for that,


But it used Atlas. When I am running with this code in my application, it is conflicting with Script Manager that is already there in Masterpage.

How can I overcome that problem. Is there any built-in solution in latest versions of Ajax?


Thanks in Advance,

Sateesh Nagalla,



Help needed in selecting coulmns from 2 tables using entity framework


Hi all,

I have two tabels as mentioned below. I am using entity framework and vs2010.I am not able to write linq query to get data from both the tables. there is one to many relationship(for one category ther can be multiple articles). Please help me out as this is very urgent. Thanks in advance.

1) Article

ArticleID bigint Unchecked
CategoryID int Unchecked
ArticleName varchar(500) Unchecked
ArticleDesc nchar(1024) Unchecked

36 ideas over the weekend for improving Visual Studio


We released WoVS last friday around mid-day. Since then, that is, only two days later, its Community section has received 36 different ideas for new VS features and improvements to existing ones. THIS IS JUST AMAZING!

Some of the more popular submissions so far are VS RoamingStack Overflow integration, and a built-in Chat!.


Is the REST Starter Kit still needed with WCF 4?


The REST Starter Kit was targeted at WCF 3.5. I am wondering if it is still needed with WCF 4?

Need Suggestions for my Custom Web part


Hi All,

This may be a little longwinded to give you all the details so please bare with me. I'm hoping someone has some creative suggestions regarding how to approach a problem I'm having.

I've created a web part which reads list items from an announcement list. I then display the "title" field as a link on the web part for the most recent 5 items. When the title link is clicked, it uses jQuery UI to pop open a window and display the body. Currently, when a list item is displayed, I programmatically give that table row a class name.

Example: If there are 3 list items, item 1 would have a class name class="item1", item 2 is class="item2" etc.. Currently I have a hard stop at 5 items. This is because the jQuery looks for the class names in order to know which body to display. So in my js file I have those class names hard coded up to 5 items.

Finally! The problem I'm having is that I can't have multiple instances of this custom web part on the page due to the class names. If I have 2 instances of this web part on the same page and I click the first item from one of the web parts, the body of the first item on both web parts opens. Because both have the class name "item1". I am looking for suggestions regarding how I can implement this in a way that will allow the class names to be auto generated (proba

WCF over mobile modem link - performance help needed

I am looking for ways to improve the performance of my WCF communications over a mobile modem. I have a system where the clients are connected to the internet via a mobile (GPRS/3G/HSDPA) connection. This is NOT a windows mobile client, it is a full XP Professional system running .Net4.0. The clients basically use a USB mobile modem (SIM card etc) to get their internet connection. The server is connected directly to the internet via broadband. My WCF interface has 2 main methods, one sends 2 int values from the client to the server and the other sends 3 images (JPGs) to the server. As you can see one is going to take less than a second and the other is going to take maybe 30-60 seconds depending on the images size and connection speed. If we have a good mobile modem connection to the internet then everything works perfectly. The problem I have is a lot of the time I do not have a good connection. The timeout on the WCF binding is set to 120 seconds. This gives the images enough time to get across even if the connection is a bit slow.  The problem comes when the connection stops - this is a network (mobile network) problem, something like the signal drops etc. Communications never recovers. At this point after about 10 seconds of inactivity (no communications) I know that the connection will never recover. At this point the best thing I have found to do it res
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend