p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 24th, 2009, 11:27 PM
Registered User
Points: 23, Level: 1
Points: 23, Level: 1 Points: 23, Level: 1 Points: 23, Level: 1
Activity: 12%
Activity: 12% Activity: 12% Activity: 12%
 
Join Date: Aug 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Update one text field from another source

Hi,

I have a form called "formStudentDemographics". Is is bound to datasource "sqlStudentDemographics". There is a textbox on the insert section of the form call "studentNameID". The format for the field in the DB is int. This textbox has the following code for binding it to the database:


StudentNameID:

<asp:TextBox ID="StudentNameIDTextBox" runat="server" Text='<%# Bind("StudentNameID") %>'></a

When the form loads to the insert section, I need the "studentNameID" to automatically be filled in with or equal to "IDStudentName" which is in the dropdownlist "ddlStudentNamefilter". I've provided the code for that dropdownlist below:

asp:DropDownList ID="ddlStudentNameFilter" runat="server" AutoPostBack="True" DataSourceID="sqlStudentNameFilter"

DataTextField="Student_Name" DataValueField="IDStudentName" Width="208px" Enabled="False" Font-Bold="True">

_______________________

I'm assuming there needs to be code in the codebehind bu am not sure how to do this or how to code it.

Any help would be greatly appreciated.

Thanks,

Leesha
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old October 28th, 2009, 03:14 PM
Registered User
Points: 9, Level: 1
Points: 9, Level: 1 Points: 9, Level: 1 Points: 9, Level: 1
Activity: 5%
Activity: 5% Activity: 5% Activity: 5%
 
Join Date: Apr 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Sorry,

I don;t have enough knowledge about this matter.

But, You can take help of professional and internet.

BY the way, I also have some confusion this matter, So if you got satisfying answer. than please inform me about this matter.

Thanks in advance

____________________
Web conference system
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Text(Sql Server Text Field) to Image(JPG) srinivas72 ADO.NET 2 February 13th, 2009 06:31 PM
Update Many Destination while using One Source jase2007 SQL Server DTS 0 September 20th, 2007 06:08 AM
Table field update ibelta Access 4 February 12th, 2005 08:22 PM
Update Source Record After Insert Duncan Allen SQL Server DTS 1 October 25th, 2004 11:44 AM
Update city field based on zip field nganb SQL Server ASP 0 April 22nd, 2004 11:30 PM



All times are GMT -4. The time now is 11:32 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc