Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

listview Insertitemtemplate

listview Insertitemtemplate

listview Insertitemtemplate

I have a listview where users can add, edit or delete records. I want to add multiple email addresses to a single sales person. So let's say I find sales person 3 and want to add an email address for her.

I want the
UserName to be the Windows Authenticate, i.e. LoginName
SalesID to be the parameter # I just found
HistEffDate to be today's date
HistEndDate to be 12/31/9999

That way, all I need to type in is the email address. Everything else is already populated.

How do I fix the vb script below. Any help is appreciated. Thanks

<li style="">
<asp:TextBox ID="UserNameText" runat="server" Text='<%# Bind("SenderName") %>' />
<br />
<asp:TextBox ID="SalesIDTextBox" runat="server" Text='<%# Bind("ProducerID") %>' />
<br />
<asp:TextBox ID="EmailAddressTextBox" runat="server" Text='<%# Bind("EmailAddress") %>' />
<br />
<asp:TextBox ID="HistEffDateTextBox" runat="server" Text='<%# Bind(#getdate()#) %>' />
<br />
<asp:TextBox ID="HistEndDateTextBox" runat="server" Text='<%# Bind("HistEndDate") %>' />
<br />
<asp:Button ID="InsertButton" runat="server" CommandName="Insert" Text="Insert" />
<asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="Clear" />

RE: listview Insertitemtemplate

Not sure what your question is. You want more than one email address field? If so, is there a set amount, can it be any number of emails?

RE: listview Insertitemtemplate

Happy New Year.

Thank you for replying. Sorry to be confusing. There are two tables.

sales office.
Sales Office ID: 1
Sales Office Name: ABC Enterprises
Address: 123 Main Street
City: San Diego
State: CA
Zip: 90808

Email Address
Sales Office ID: 1
Email ID: 25
First Name: John
Last Name: Jones
email address: John.Jones@gmail.com
date entered: 1/1/2015
user: k_Smith

I want the sales office ID, date entered and user name to be populated in the InsertItemTemplate. The sales office ID is the search parameter. Date entered is today's date and user is Windows authentication,

UserName: (Windows Authentication)
<asp:TextBox ID="UserNameText" runat="server" Text='<%# Bind("SenderName") %>' />
<br />
Sales Office ID: (search parameter)
<asp:TextBox ID="SalesIDTextBox" runat="server" Text='<%# Bind("ProducerID") %>' />
<br />
HistEffDate: (today's date)
<asp:TextBox ID="HistEffDateTextBox" runat="server" Text='<%# Bind(#getdate()#) %>' />
<br />

Any help is appreciated.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close