Textbox Binding

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



[I posted this previously as part of a thread to a related topic, but
did not receive a response so I thought of starting a new thread..]

I am using a FormView, Insert Template. I have 3 textboxes which are
bound. I would like to use a default (static) value in one of the
textboxes.

Here's the (relevant) sample code:

<InsertItemTemplate>


Stamp: <asp:TextBox ID="StampTextBox" runat="server"
Text='<%#Bind("fldStamp") %>'></asp:TextBox><br />


Again, what I would like to do is assign a default/static text "Canada"
to this textbox and bind it to fldStamp


I am fairly new at this and would appreciate your assistance and some
sample code.


Thanks
Shiraz

.



Relevant Pages

  • Re: Textbox Binding
    ... What do you mean by binding if it is already set to a static value? ... I have 3 textboxes which are ... > Here's the sample code: ... > to this textbox and bind it to fldStamp ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: DataGrid and combobox
    ... Curt Christianson ... Blog: http://blog.Darkfalz.com ... > clicks on link it turns the fields into textboxes and stores the string ... Does anyone have any sample code or any articles to show me how ...
    (microsoft.public.dotnet.framework.aspnet)
  • DataGrid and combobox
    ... I have a datagrid that I specify the columns and update them when user ... clicks on link it turns the fields into textboxes and stores the string for ... Does anyone have any sample code or any articles to show me how ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Putting value in asp:TextBox
    ... I am using a FormView, Insert Template. ... I have 3 textboxes which are ... Here's the sample code: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: add multiple controls
    ... Did you want to remove the existing textboxes or come up with unique names? ... Private Sub CommandButton1_Click ... Response = MsgBox ... MsgBox "Please re-enter number of cashiers" ...
    (microsoft.public.excel.programming)