CodeVerge.Net Beta


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

ASP.NET Web Hosting – 3 Months Free!



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.web_forms Tags:
Item Type: NewsGroup Date Entered: 6/21/2005 6:16:37 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 0 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
the_lynx21
Asp.Net User
Cannot get change content in textbox6/21/2005 6:16:37 AM

0/0

Hi all,

Let me cut to the chase. I have 2 fields (I tried and neither work). I want to display the current default fontsizes and get the user to edit it if so choose.On page load I upload the current default fontsizes but if the user submit the changed info I only get the original fontsizes not the updated values. Here is my code:

//Code behind

private void Page_Load(object sender, System.EventArgs e)
{
DataTable dt = new DataTable();
Data data = new Data();
string strSql = "SELECT LargeFont, SmallFont FROM tblFont WHERE FontId = 1";
bool blHasRows = data.ExecuteSelect(strSql, ref dt);

if(blHasRows)
{
tbxLargeFont.Value = dt.Rows[0].ItemArray[0].ToString(); //













<TABLE class="general" id="Table2" cellSpacing="0" cellPadding="0">
<TR>
<TD>Please update the default font sizes :</TD>
</TR>
<TR>
<TD>Large:</TD>
<TD>

</TD>
</TR>
<TR>
<TD>Small:</TD>
<TD>

</TD>
</TR>
<TR>
<td>

</TD>
</TR>
<TR>
<TD>Status:</TD>
<TD></TD>
</TR>
</TABLE>




Thing is if I remove the preloaded values then if works fine but then the user will not know the current default fontsize. I know I can put it somewhere else but I should not have to? Whats going on here?
the_lynx21
Asp.Net User
Re: Cannot get change content in textbox6/21/2005 10:36:33 AM

0/0

Look like some of the info I posted has gone missing. Here the rest:

string str = " LargeFont = " + tbxLargeFont.Value + " SmallFont = " + tbxSmallFont.Text;

                                               

                                }

 

//ASPX

 

<%@ Page language="c#" Codebehind="Admin.aspx.cs" AutoEventWireup="false" Inherits="BlakeHallCollege.Admin" %>

<%@ Register TagPrefix="uc1" TagName="PwdReset" Src="Controls/PwdReset.ascx" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

<HTML>

                <HEAD>

                                <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">

                                <meta content="C#" name="CODE_LANGUAGE">

                                <meta content="JavaScript" name="vs_defaultClientScript">

                                <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">

                                <LINK href="Stylesheet.css" type="text/css" rel="stylesheet">

                               

                </HEAD>

                <body class="bgbody">

                                <form id="Form1" method="post" action="Admin.aspx" runat="server">

                                                <TABLE class="general" id="Table2" cellSpacing="0" cellPadding="0" width="300" border="0">

                                                                <TR>

                                                                                <TD>Please update the default font sizes :</TD>

                                                                </TR>

                                                                <TR>

                                                                                <TD>Large:</TD>

                                                                                <TD>

<input id="tbxLargeFont" type="text" name="tbxLargeFont" runat="server">

</TD>

                                </TR>

                                                                <TR>

                                                                                <TD>Small:</TD>

                                                                                <TD>

<asp:textbox id="tbxSmallFont" runat="server" textMode="SingleLine"></asp:textbox>  

                                                                        </TD>

</TR>

                                                                <TR>

                                                                                <td>

<input type="button" id="btnSave" runat="server" value="Save" NAME="btnSave">

                                                                                </TD>

                                                                </TR>

                                                                <TR>

                                                                                <TD>Status:</TD>

                                                                                <TD><asp:label id="lbStatus" runat="server"></asp:label></TD>

                                                                </TR>

                                                </TABLE>

                                </form>

                </body>

</HTML>

THank  you

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


Free Download:

Books:
How to Do Everything with Microsoft Office Word 2007 Authors: Guy Hart-Davis, Pages: 504, Published: 2007
FrontPage 2003 All-in-One Desk Reference For Dummies: all-in-one desk reference Authors: John Paul Mueller, Pages: 792, Published: 2004
J2ME in a Nutshell: A Desktop Quick Reference Authors: Kim Topley, Pages: 450, Published: 2002
Beginning ASP.NET 2.0 AJAX: Written and Tested with the Final 1.0 Release Version of ASP.NET AJAX for ASP:NET 2.0 Authors: Wallace B. McClure, Paul Glavich, Scott Cate, Steve C. Orr, Craig Shoemaker, Steven A. Smith, Jim Zimmerman, Pages: 344, Published: 2007
Pro WPF in C# 2008: Windows Presentation Foundation with .Net 3.5: Windows Presentation Foundation With . Net 3. 5 Authors: Matthew MacDonald, Pages: 1040, Published: 2008
QuarkXPress 5 for Macintosh and Windows: Visual QuickStart Guide Authors: Elaine Weinmann, Peter Lourekas, Pages: 498, Published: 2002
QuarkXPress 7 for Windows and Macintosh: Visual QuickStart Guide Authors: Elaine Weinmann, Peter Lourekas, Pages: 464, Published: 2006
ASP.NET Unleashed Authors: Stephen Walther, Pages: 1459, Published: 2003
Beginning Object-Oriented ASP.NET 2.0 with VB.NET: From Novice to Professional Authors: Brian R. Myers, Pages: 193, Published: 2005

Web:
WD97: Cannot Change Word 95 Document Text Box After Opening It Retired KB Content Disclaimer. View products that this article applies to. ... You cannot change the settings of the text box. -and-; You cannot move the text ... Get Help Now. Contact a support professional by E-mail, Online, or Phone ...
Cannot get inner content of XXX because the contents are not literal Cannot get html display · Cannot get eventhandling to work on user control · Cannot get change content in textbox · Cannot get Access to dynamically created ...
Can't Change Textbox Width | Bugs | Support Forums : Web Based ... This forum requires Javascript to be enabled for posting content ... Can’t Change Textbox Width. Add a New Topic Reply to Post ... how can i get my survey to respect the custom widths i set in the question editor? ...
Cannot put TextBox content into MS Access database - ASP.NET Forums I'm trying to put the contents of a TextBox into a MS Access database ... but I cannot get the new topic into the database. ... Change this line: objCmd = New OleDbCommand ("INSERT INTO Topics (topic_title) VALUES (title ...
Joomla! • View topic - Content items manager. Text box has gone. Change font size Change Width ... I managed to retrieve the database – thank’s God – but I CANNOT edit the entries any more in the ... Does anyone know what has happened, but more important: how to get the editors back? ...
MS ACCESS :: Get Last Record And Display In An Text Box Unfortunately, we cannot simply use the address or phone fields to verify whether the records are true ... Text Box Content Won't Display Here's a strange one. ... How can I get it to change to 2 of when I move to the 2nd record? ...
Howto bind TextBox control to a StringBuilder instance? - Stack ... So if I were to change the content of the string, all those textboxes ... private StringBuilder _myStringBuilder; public string MyText { get { return _myStringBuilder. ... does not mean that a variable of type String cannot be changed. ... thus allowing many textboxes to bind to the same property and all change on ...
display content of TextInput in dynamic text box? - ActionScript ... ... numbers typed into the TextInput boxes in a dynamic text box and I can't seem to get that part to work. ... to display the content of the TextInput boxes . I get nothin'. ... threeListener.change = function(event) { ...
Acrobat User Community Forums / Change textbox font color to BLACK You don't have to be a member to look at any content on the site. ... Register now to get discounts, attend eSeminars, ask questions and more. ... The v8.0 textbox tool creates RED font. I cannot change it to BLACK. ... Sometimes I cannot change the font, border color, etc. ...
Flash templates, website templates, web flash templates Q: I get 'unexpected file format' when I try to open a template, why? ... Q: I can't seem to find the content easily within the template to change it? ... Using the Properties window (Ctrl+F3) change it to a dynamic text box, ...

Videos:
How to Add New Users to Windows SharePoint Services Site This video shows you how to add new users to your Windows SharePoint Services site if it is configured for Active Director Automatic User Account ...
Developing JavaScript with Chickenfoot Google TechTalks July 25, 2006 Rob Miller Michael Bolin ABSTRACT Chickenfoot is a Firefox extension that embeds a JavaScript programming ...




Search This Site:










frames redirect

removing viewstate

format with comma.

treeview advice

increament on characters ??

how to build a-z quicklinks effectively?

how to use application block

web.config and <configsections>

printer tracking

same form, multiple websites

creating the pubs database problems

viewstate disabled - nothing works

asp.net 3.5

removing special characters

postbackurl created from listitem values . is this possible ?

dynamic .aspx pages

how do i set a default page id (index.aspx?id=x)

how to create a inbox mail program in asp.net and c#

create install program

application development environment question

add reference to project prob

how to unit test?

pars chars from string??

logging

unit testing a getpath

reading files with http address

problems after installation

concerning textboxes...(eq:when i write "an" or "a " in my textbox...all the possible combinations of names should appear in gridview)

how to get a user control's rendered content in code?

word mailmerge

  Privacy | Contact Us
All Times Are GMT