to show text file inforation from database..

Posted by Gopal_nivas under ASP.NET on 7/22/2010 | Views : 1581 | Status : [Member] | Replies : 2
hi..

i was stored a text file in database..

so i want to show the text file information or details..(in literal control or some other way)

how to do this..

need ur suggestions..

regards
gopal.s




Responses

Posted by: BangaruBabu on: 7/22/2010 [Member] Starter

Up
0
Down
http://www.csharp411.com/c-read-text-file-line-by-line/

Check This Article
Assign String line variable valueto your Control

BangaruBabu Pureti
http://bangarubabupureti.spaces.live.com/

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 7/24/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
So if you say you stored it in a database table field and you want to retrieve it this should not be a Problem, you can write a Stored Procedure to do this like this

Create proc GetmyText 

(
@myText varchar(max) OUTPUT
)
as
SET @myText = (SELECT MYFIELD FROM MYTABLE)



and in your c# code you can call the sp and it will return your text

Thank you for posting at Dotnetfunda
[Administrator]

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response