Data Base format in dotnet

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2007
Posts: 14
Reputation: virus220 is an unknown quantity at this point 
Solved Threads: 0
virus220 virus220 is offline Offline
Newbie Poster

Data Base format in dotnet

 
0
  #1
Aug 9th, 2007
Hi.
I have retrieve my data from excel files to a vb richtextbox but the text with boldness,italics or sup/sub-scripts format are not proper is their any
way i can retrieve richtext(text having boldness,italics or sup/sub-scripts) on vb form ???
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 24
Reputation: atal is an unknown quantity at this point 
Solved Threads: 0
atal atal is offline Offline
Newbie Poster

Re: Data Base format in dotnet

 
0
  #2
Aug 11th, 2007
Originally Posted by virus220 View Post
Hi.
I have retrieve my data from excel files to a vb richtextbox but the text with boldness,italics or sup/sub-scripts format are not proper is their any
way i can retrieve richtext(text having boldness,italics or sup/sub-scripts) on vb form ???
are you using webform, or windows forms?
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 14
Reputation: virus220 is an unknown quantity at this point 
Solved Threads: 0
virus220 virus220 is offline Offline
Newbie Poster

Re: Data Base format in dotnet

 
0
  #3
Aug 11th, 2007
actually right now i ready to work with any of the forms i just want it to work pls reply??
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 24
Reputation: atal is an unknown quantity at this point 
Solved Threads: 0
atal atal is offline Offline
Newbie Poster

Re: Data Base format in dotnet

 
0
  #4
Aug 12th, 2007
Originally Posted by virus220 View Post
actually right now i ready to work with any of the forms i just want it to work pls reply??
you should add HTML tags to your text in order to display the formatted text in a Webform:

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class InsertRecord : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string strVar = "<b>Hello <sup>World</sup></b>";
Label1.Text = strVar.ToString();
Response.Write(strVar.ToString());
}
}

Regards,
Khaled
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,580
Reputation: Infarction has a spectacular aura about Infarction has a spectacular aura about Infarction has a spectacular aura about 
Solved Threads: 52
Infarction's Avatar
Infarction Infarction is offline Offline
Battle Programmer

Re: Data Base format in dotnet

 
0
  #5
Aug 12th, 2007
You mean from a RichTextbox control (or whatever the name is)? There should be a RichText (or similar) property, which will give you the contents with formatting codes still included (as opposed to the Text property, which is just the plaintext). Converting that to HTML will probably require another function, which someone might have put on the Internet somewhere...
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 14
Reputation: virus220 is an unknown quantity at this point 
Solved Threads: 0
virus220 virus220 is offline Offline
Newbie Poster

Re: Data Base format in dotnet

 
0
  #6
Aug 12th, 2007
Can someone give me that code to convert excel to HTML plz
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC