CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > starter_kits_and_source_projects.personal_site_starter_kit Tags:
Item Type: Date Entered: 9/27/2006 11:08:18 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 4 Views: 236 Favorited: 0 Favorite
5 Items, 1 Pages 1 |< << Go >> >|
"gessoo" <>
NewsGroup User
how can i manage the text in the text box using Eval statment9/27/2006 11:08:18 AM

1

how can i manage the text in the text box using Eval statment..as for example when i wrote some text and press enter the enter should reflect a space in the main area of the content in the default page??

"jwadsworth" <>
NewsGroup User
Re: how can i manage the text in the text box using Eval statment9/27/2006 4:05:25 PM

0

Can you explain a little better what your trying to do?
Jeremy

Extended Personal Site Starter kit
"whighfield" <>
NewsGroup User
Re: how can i manage the text in the text box using Eval statment9/30/2006 2:50:33 PM

0

Not sure of your code but you might want to look at Bind instead of Eval, also how are you storing and retrieving the content to be displayed?

 


- William

Give my enhanced version of the PWSK a look.

www.willyd.ca
"gessoo" <>
NewsGroup User
Re: how can i manage the text in the text box using Eval statment10/1/2006 12:23:05 PM

0

i mean how can i manage the content so when i write a statment and press enter the begining of the second line should have a seprate space

..obviously the enter space is not reflect

regard

"gessoo" <>
NewsGroup User
Re: how can i manage the text in the text box using Eval statment10/1/2006 12:25:30 PM

0

this is the code

<%@ Page Language="VB" MasterPageFile="~/Default.master" AutoEventWireup="false" CodeFile="Content.aspx.vb" Inherits="Admin_Content" title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Main" Runat="Server">

<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Personal %>

" DeleteCommand="DELETE FROM [SiteContent] WHERE [TextId] = @TextId"

InsertCommand="INSERT INTO [SiteContent] ([TextId], [Homepage_Welcome], [Homepage_WhatsNew],

[Homepage_WhatsUpLately]) VALUES (@TextId, @Homepage_Welcome, @Homepage_WhatsNew, @Homepage_WhatsUpLately)"

SelectCommand="SELECT * FROM [SiteContent]" UpdateCommand="UPDATE [SiteContent] SET [Homepage_Welcome] = @Homepage_Welcome,

[Homepage_WhatsNew] = @Homepage_WhatsNew, [Homepage_WhatsUpLately] = @Homepage_WhatsUpLately WHERE [TextId] = @TextId">

<DeleteParameters>

<asp:Parameter Name="TextId" Type="Int32" />

</DeleteParameters>

<UpdateParameters>

<asp:Parameter Name="Homepage_Welcome" Type="String" />

<asp:Parameter Name="Homepage_WhatsNew" Type="String" />

<asp:Parameter Name="Homepage_WhatsUpLately" Type="String" />

<asp:Parameter Name="TextId" Type="Int32" />

</UpdateParameters>

<InsertParameters>

<asp:Parameter Name="TextId" Type="Int32" />

<asp:Parameter Name="Homepage_Welcome" Type="String" />

<asp:Parameter Name="Homepage_WhatsNew" Type="String" />

<asp:Parameter Name="Homepage_WhatsUpLately" Type="String" />

</InsertParameters>

</asp:SqlDataSource>

<asp:FormView ID="FormView1" runat="server" DataKeyNames="TextId"

DataSourceID="SqlDataSource1" >

<EditItemTemplate>

<p><b>TextId:</b>

<asp:Label ID="TextIdLabel1" runat="server"

Text='<%# Eval("TextId") %>'></asp:Label></p>

<p><b>Homepage_Welcome:</b><br />

<asp:TextBox ID="Homepage_WelcomeTextBox" runat="server"

Text='<%# Bind("Homepage_Welcome") %>' TextMode="MultiLine">

</asp:TextBox></p>

<p><b>Homepage_WhatsNew:</b><br />

<asp:TextBox ID="Homepage_WhatsNewTextBox" runat="server"

Text='<%# Bind("Homepage_WhatsNew") %>' TextMode="MultiLine">

</asp:TextBox></p>

<p><b>Homepage_WhatsUpLately:</b><br />

<asp:TextBox ID="Homepage_WhatsUpLatelyTextBox" runat="server"

Text='<%# Bind("Homepage_WhatsUpLately") %>' TextMode="MultiLine">

</asp:TextBox></p>

<asp:LinkButton ID="UpdateButton" runat="server"

CausesValidation="True" CommandName="Update" Text="Update">

</asp:LinkButton>

<asp:LinkButton ID="UpdateCancelButton" runat="server"

CausesValidation="False" CommandName="Cancel" Text="Cancel">

</asp:LinkButton>

</EditItemTemplate>

<ItemTemplate>

<p><b>TextId:</b>

<asp:Label ID="TextIdLabel" runat="server"

Text='<%# Eval("TextId") %>'></asp:Label></p>

<p><b>Homepage_Welcome:</b><br />

<asp:Label ID="Homepage_WelcomeLabel" runat="server"

Text='<%# Bind("Homepage_Welcome") %>'>

</asp:Label></p>

<p><b>Homepage_WhatsNew:</b><br />

<asp:Label ID="Homepage_WhatsNewLabel" runat="server"

Text='<%# Bind("Homepage_WhatsNew") %>'>

</asp:Label></p>

<p><b>Homepage_WhatsUpLately:</b><br />

<asp:Label ID="Homepage_WhatsUpLatelyLabel" runat="server"

Text='<%# Bind("Homepage_WhatsUpLately") %>'>

</asp:Label></p>

<asp:LinkButton ID="EditButton" runat="server"

CausesValidation="False" CommandName="Edit" Text="Edit">

</asp:LinkButton>

</ItemTemplate>

</asp:FormView>

thanks and regard

</asp:Content>

5 Items, 1 Pages 1 |< << Go >> >|


Free Download:













is it just me, or ???

sql server 2005

set focus on username text box

cannot switch views: validation (xhtml 1.0 transitional): element 'hr' cannot be nested within element 'p'.

login possible with firefox - not with internet explorer

phase one is done!!!!

where can i find learning materials for new learner?

explination of the handler.ashx

please help me to public personal web site starter kit

ms sql database connection problem!

dropdown menu

random image performance issues

default theme for jeremy wadsworth site

aspnet_roles table not getting populated

server error in '/' application.

problem on win2003 server

it works, but...

help for adding extra form fields register page

zip file broken...no directory structure

submenus?

question about codeline

personal site starter kit, the usual hurdles to get something up and running.

can i use pws in my commerce products?

beta 2

server error in '/pers_rtm_v1_cs' application

pws - photos and albums

why i cannot use "delete" and "edit" functions ???

newbie help!!!

membership problem in live server

personal starter kit and navigation logged in as administrator

info required about database

database connections

personal site starter kit for mysql 4.x

iis error “aspnetdb.mdf is read-only” but it is not set to read only?

dropdown menu - how to change theme?

need help downloading and installing personal website starter kit!

.net 2.0 beta 2

problem with the gallery

formated text in a content area

personal website starter kit default.aspx very slow

has anyone integrated a calendar/events section (like the club starter kit)?

different versions of personal site?

moving portal to iis and sql server 2005

not found guest user

system.invalidoperationexception: the smtp host was not specified.

what is the default login and password?

creating administrative users in a personal website starter kit

anyone folded in atlas in their pws project?

can't create user ?

re:"the new administration home page" of the "extending the administration abilities"

   
  Privacy | Contact Us
All Times Are GMT