Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Cant get data from template column into database

Reply
Thread Tools

Cant get data from template column into database

 
 
=?Utf-8?B?Sk1B?=
Guest
Posts: n/a
 
      08-31-2005
I have a detail view that i use for database updates. The regular fields work
fine. I created a few drop down list templates and they dont seem to update
the database for some reason. I have tried to name the sql variables after
the dropdown list ID and it still doesnt work. Any ideas would help.
 
Reply With Quote
 
 
 
 
Brock Allen
Guest
Posts: n/a
 
      09-01-2005
If you're using ASP.NET v1.1 then you have to write the code to read the
data from the control on postback and do the DB access manually. In 2.0 this
is built in with two-way databinding using the new <%# Bind() %> syntax.

-Brock
DevelopMentor
http://staff.develop.com/ballen



> I have a detail view that i use for database updates. The regular
> fields work fine. I created a few drop down list templates and they
> dont seem to update the database for some reason. I have tried to name
> the sql variables after the dropdown list ID and it still doesnt work.
> Any ideas would help.
>




 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sk1B?=
Guest
Posts: n/a
 
      09-01-2005
I found the issue. It is because of the "bind" selected value. My other issue
is how do you handle this when the database has a null value for that field.
There is no seleceted value. I am using 2.0

"Brock Allen" wrote:

> If you're using ASP.NET v1.1 then you have to write the code to read the
> data from the control on postback and do the DB access manually. In 2.0 this
> is built in with two-way databinding using the new <%# Bind() %> syntax.
>
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
>
>
> > I have a detail view that i use for database updates. The regular
> > fields work fine. I created a few drop down list templates and they
> > dont seem to update the database for some reason. I have tried to name
> > the sql variables after the dropdown list ID and it still doesnt work.
> > Any ideas would help.
> >

>
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataBase DataBase DataBase DataBase scott93727@gmail.com Computer Information 0 09-26-2012 09:40 AM
cant get dropdown list bound to data in template column of gridvie Paul ASP .Net 3 05-20-2008 10:08 PM
1 Gridview. Dropdown A is column from database, Dropdown B is column from database, Data in A and B must be from same row. anonymoushamster@gmail.com ASP .Net 2 11-07-2007 12:40 PM
cant compile on linux system.cant compile on cant compile onlinux system. Nagaraj C++ 1 03-01-2007 11:18 AM
Tools to extract data from SQL database and convert it into XML & insert XML data into SQL databases Harry Zoroc XML 1 07-12-2004 10:10 PM



Advertisments