List Info

Thread: Re: Newline characters in detailsview form




Re: Newline characters in detailsview form
user name
2007-01-31 10:23:00
How and where to use this code?.

Please pardon me if its a silly question. I am just a
beginner.

Thanks for your help.


--- Abdulla Abd Al Haq <abdulla_ah2001yahoo.com>
wrote:

> Try This
>    
>   Replace(YouText, Chr(13), "<br>")
>    
>   
> 
> Ahmed <iahmed9060yahoo.com> wrote:
>           No I have not,
> How do I use it and where do I use it?.
> 
> --- Brett Stinson <brett.stinsongmail.com> wrote:
> 
> > iahmed:
> > Have you tried:
> > 
> >
Replace(<text>,vbcrlf,"<br>")
> > 
> > -- 
> > Brett.Stinsongmail.com
> > 
> > 
> > On 1/30/07, iahmed9060 <iahmed9060yahoo.com>
> wrote:
> > >
> > > Hi,
> > >
> > > Is there anyway to show newline characters
in
> > detailsview form?
> > >
> > > Here is what I am trying to do. I am
retrieving
> > some value from
> > > database, but when it displays in the
> detailsview
> > form all the newline
> > > characters are stripped out.
> > >
> > > I want to know as how can I display those
> > characters in the form.
> > >
> > > Can anyone help!!
> > >
> > > I am using asp.net 2.0 and Sql server 2000.
> > >
> > > Thanks
> > >
> > > 
> > >
> > 
> > 
> > [Non-text portions of this message have been
> > removed]
> > 
> > 
> 
>
__________________________________________________________
> Any questions? Get answers on any topic at
> www.Answers.yahoo.com. Try it now.
> 
> 
>          
> 
>  
> ---------------------------------
> Don't be flakey. Get Yahoo! Mail for Mobile and 
> always stay connected to friends.
> 
> [Non-text portions of this message have been
> removed]
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection
around 
http://mail.yahoo.com 


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/join

    (Yahoo! ID required)

<*> To change settings via email:
    mailto:AspNetAnyQuestionIsOk-digest@yahoogroups.com 
   
mailto:AspNetAnyQuestionIsOk-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 

Re: Newline characters in detailsview form
user name
2007-01-31 11:14:09
  <asp:TemplateField >
  <ItemTemplate>
  <asp:Label id="lbl1"  Text='<%#
Replace(Container.DataItem("st_name") , Chr(13),
"<br>") %>'  runat="server"
></asp:label>
  </ItemTemplate>
  </asp:TemplateField>


Ahmed <iahmed9060yahoo.com> wrote:          How and
where to use this code?.

Please pardon me if its a silly question. I am just a
beginner.

Thanks for your help.

--- Abdulla Abd Al Haq <abdulla_ah2001yahoo.com>
wrote:

> Try This
> 
> Replace(YouText, Chr(13), "<br>")
> 
> 
> 
> Ahmed <iahmed9060yahoo.com> wrote:
> No I have not,
> How do I use it and where do I use it?.
> 
> --- Brett Stinson <brett.stinsongmail.com> wrote:
> 
> > iahmed:
> > Have you tried:
> > 
> >
Replace(<text>,vbcrlf,"<br>")
> > 
> > -- 
> > Brett.Stinsongmail.com
> > 
> > 
> > On 1/30/07, iahmed9060 <iahmed9060yahoo.com>
> wrote:
> > >
> > > Hi,
> > >
> > > Is there anyway to show newline characters
in
> > detailsview form?
> > >
> > > Here is what I am trying to do. I am
retrieving
> > some value from
> > > database, but when it displays in the
> detailsview
> > form all the newline
> > > characters are stripped out.
> > >
> > > I want to know as how can I display those
> > characters in the form.
> > >
> > > Can anyone help!!
> > >
> > > I am using asp.net 2.0 and Sql server 2000.
> > >
> > > Thanks
> > >
> > > 
> > >
> > 
> > 
> > [Non-text portions of this message have been
> > removed]
> > 
> > 
> 
>
__________________________________________________________
> Any questions? Get answers on any topic at
> www.Answers.yahoo.com. Try it now.
> 
> 
> 
> 
> 
> ---------------------------------
> Don't be flakey. Get Yahoo! Mail for Mobile and 
> always stay connected to friends.
> 
> [Non-text portions of this message have been
> removed]
> 
> 

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection
around 
http://mail.yahoo.com 


         

 
---------------------------------
Access over 1 million songs - Yahoo! Music Unlimited.

[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/join

    (Yahoo! ID required)

<*> To change settings via email:
    mailto:AspNetAnyQuestionIsOk-digest@yahoogroups.com 
   
mailto:AspNetAnyQuestionIsOk-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )