What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 2093 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET > How to remove any partial html coding coming from database. ...
Modit

How to remove any partial html coding coming from database.

Replies: 0 | Posted by: Modit on 5/27/2012 | Category: ASP.NET Forums | Views: 284 | Status: [Member] | Points: 10  


I am creating a blog project , i am using ajax Editor control to enter data , which is then stored in a table. The blog post will be displayed in the index page. Only the first 250 characters will be displayed in the homepage.The problem i am facing is when i extract the first 250 characters there are chances that some partial html tag is coming as an output, by which the post is not displayed properly. I am getting the data in repeater control which is then passed to DataList control.

Is there some coding in sql thru which i can remove any partial html coding at the end.

select top 3 title , substring(post,0,250)  as post  from posts 


Follow the following steps to create a website in asp.net using visual studio 2010.<br /> <br /> 1. Click <span style="font-weight: bold;">Start &gt; Microsoft Visual Studio 2010 &gt; Microsoft Visual Studio 2010</span><br /> <br /> <img src='aI


what i want is the output to come something like this

select top 3 title , substring(post,0,250)  as post  from posts 


Follow the following steps to create a website in asp.net using visual studio 2010.<br /> <br /> 1. Click <span style="font-weight: bold;">Start &gt; Microsoft Visual Studio 2010 &gt; Microsoft Visual Studio 2010</span><br /> <br />


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

  No reply found.


Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 9:42:37 AM