473,408 Members | 2,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

using binding tag in Userconrol....

< uc1:BoardWrite ID="BoardWrite1" CommentId="<%# Eval("CommentId") %>"
runat="server" />

this is visual studio 2005 asp.net tag.
first it's nor working..but i need this
because i will use this usercontrol lots of place in just 1page.
so i have to give commentId to BoardWirte control
how can i solve this?
Bind() method also doesn't work.
thankx.
Nov 19 '05 #1
5 1117
I'm not clear on what you want to accomplish with the Eval() command? Can
you describe exactly what you want to do?

If you want to bind data, you need to use DataBinder.Eval("<data column goes
here>"), and then use DataBind() on your control or page.

--

Joshua Mitts
jo****@msn.com

"somequestion" <so**********@gmail.com> wrote in message
news:eH*************@TK2MSFTNGP10.phx.gbl...
< uc1:BoardWrite ID="BoardWrite1" CommentId="<%# Eval("CommentId") %>"
runat="server" />

this is visual studio 2005 asp.net tag.
first it's nor working..but i need this
because i will use this usercontrol lots of place in just 1page.
so i have to give commentId to BoardWirte control
how can i solve this?
Bind() method also doesn't work.
thankx.

Nov 19 '05 #2
<DataList >
<ItemTemplate>

<uc1:BoardCommentWrite ID="BoardCommentWrite1" CommentId="<%#
Eval("CommentId") %>" runat="server" />

</ItemTemplate>
</DataList >

my CODE is like this. datalist make a lof of BoardCommentWrite usercontrol
that' why i have to distinguish between controls but it's nor working
complier say

Error 1 The server tag is not well formed.
C:\Project2005\WebSite\Minoworks\Board\BoardCommen t.ascx 72

thanks
"Joshua Mitts" <jo****@msn.com> wrote in message
news:u6****************@TK2MSFTNGP10.phx.gbl...
I'm not clear on what you want to accomplish with the Eval() command? Can
you describe exactly what you want to do?

If you want to bind data, you need to use DataBinder.Eval("<data column
goes here>"), and then use DataBind() on your control or page.

--

Joshua Mitts
jo****@msn.com

"somequestion" <so**********@gmail.com> wrote in message
news:eH*************@TK2MSFTNGP10.phx.gbl...
< uc1:BoardWrite ID="BoardWrite1" CommentId="<%# Eval("CommentId") %>"
runat="server" />

this is visual studio 2005 asp.net tag.
first it's nor working..but i need this
because i will use this usercontrol lots of place in just 1page.
so i have to give commentId to BoardWirte control
how can i solve this?
Bind() method also doesn't work.
thankx.


Nov 19 '05 #3
Oh I'm sorry, your problem there is the quoting. You need your CommendId= to
use single quotes, as follows:

<uc1:BoardCommentWrite ID="BoardCommentWrite1" CommentId='<%#
Eval("CommentId") %>' runat="server" />

--

Joshua Mitts
jo****@msn.com

"somequestion" <so**********@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
<DataList >
<ItemTemplate>

<uc1:BoardCommentWrite ID="BoardCommentWrite1" CommentId="<%#
Eval("CommentId") %>" runat="server" />

</ItemTemplate>
</DataList >

my CODE is like this. datalist make a lof of BoardCommentWrite usercontrol
that' why i have to distinguish between controls but it's nor working
complier say

Error 1 The server tag is not well formed.
C:\Project2005\WebSite\Minoworks\Board\BoardCommen t.ascx 72

thanks
"Joshua Mitts" <jo****@msn.com> wrote in message
news:u6****************@TK2MSFTNGP10.phx.gbl...
I'm not clear on what you want to accomplish with the Eval() command? Can
you describe exactly what you want to do?

If you want to bind data, you need to use DataBinder.Eval("<data column
goes here>"), and then use DataBind() on your control or page.

--

Joshua Mitts
jo****@msn.com

"somequestion" <so**********@gmail.com> wrote in message
news:eH*************@TK2MSFTNGP10.phx.gbl...
< uc1:BoardWrite ID="BoardWrite1" CommentId="<%# Eval("CommentId") %>"
runat="server" />

this is visual studio 2005 asp.net tag.
first it's nor working..but i need this
because i will use this usercontrol lots of place in just 1page.
so i have to give commentId to BoardWirte control
how can i solve this?
Bind() method also doesn't work.
thankx.



Nov 19 '05 #4
there's no error message now but it still doesn't work.
i used Bind Method but it also not work
wow....it driving me crazy...
help..me..

Yesterday....i've posted another.question...is like below

================================================== ============
in asp.net 2.0
i want to get [ CommentId ] value from database.
BoardCommentWrite have a CommentId property as public
so when i attach BoardCommentWrite usercontrol i want to get CommentId value
from DataList so i write my code like below..

<DataList >
<ItemTemplate>

<uc1:BoardCommentWrite ID="BoardCommentWrite1"
CommentId='<%# Bind("CommentId") %>' runat="server" />

</ItemTemplate>
</DataList >

that' why i have to distinguish between controls but it's not working

it give me " null value "

is there any way to solve this problem?

thanks



"Joshua Mitts" <jo****@msn.com> wrote in message
news:uV**************@TK2MSFTNGP09.phx.gbl...
Oh I'm sorry, your problem there is the quoting. You need your CommendId=
to use single quotes, as follows:

<uc1:BoardCommentWrite ID="BoardCommentWrite1" CommentId='<%#
Eval("CommentId") %>' runat="server" />

--

Joshua Mitts
jo****@msn.com

"somequestion" <so**********@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
<DataList >
<ItemTemplate>

<uc1:BoardCommentWrite ID="BoardCommentWrite1" CommentId="<%#
Eval("CommentId") %>" runat="server" />

</ItemTemplate>
</DataList >

my CODE is like this. datalist make a lof of BoardCommentWrite
usercontrol that' why i have to distinguish between controls but it's nor
working
complier say

Error 1 The server tag is not well formed.
C:\Project2005\WebSite\Minoworks\Board\BoardCommen t.ascx 72

thanks
"Joshua Mitts" <jo****@msn.com> wrote in message
news:u6****************@TK2MSFTNGP10.phx.gbl...
I'm not clear on what you want to accomplish with the Eval() command?
Can you describe exactly what you want to do?

If you want to bind data, you need to use DataBinder.Eval("<data column
goes here>"), and then use DataBind() on your control or page.

--

Joshua Mitts
jo****@msn.com

"somequestion" <so**********@gmail.com> wrote in message
news:eH*************@TK2MSFTNGP10.phx.gbl...
< uc1:BoardWrite ID="BoardWrite1" CommentId="<%# Eval("CommentId") %>"
runat="server" />

this is visual studio 2005 asp.net tag.
first it's nor working..but i need this
because i will use this usercontrol lots of place in just 1page.
so i have to give commentId to BoardWirte control
how can i solve this?
Bind() method also doesn't work.
thankx.



Nov 19 '05 #5
You want to use DataBinder.Eval() in the control, and MyDataList.DataBind()
in your code, i.e.

<uc1:BoardCommentWrite ID="BoardCommentWrite1"
CommentId='<%# DataBinder.Eval(Container.DataItem, "CommentId")
%>' runat="server" />

Then in your code, call .DataBind() on your DataList control.

--

Joshua Mitts
jo****@msn.com

"somequestion" <so**********@gmail.com> wrote in message
news:ue**************@tk2msftngp13.phx.gbl...
there's no error message now but it still doesn't work.
i used Bind Method but it also not work
wow....it driving me crazy...
help..me..

Yesterday....i've posted another.question...is like below

================================================== ============
in asp.net 2.0
i want to get [ CommentId ] value from database.
BoardCommentWrite have a CommentId property as public
so when i attach BoardCommentWrite usercontrol i want to get CommentId
value
from DataList so i write my code like below..

<DataList >
<ItemTemplate>

<uc1:BoardCommentWrite ID="BoardCommentWrite1"
CommentId='<%# Bind("CommentId") %>' runat="server" />

</ItemTemplate>
</DataList >

that' why i have to distinguish between controls but it's not working

it give me " null value "

is there any way to solve this problem?

thanks



"Joshua Mitts" <jo****@msn.com> wrote in message
news:uV**************@TK2MSFTNGP09.phx.gbl...
Oh I'm sorry, your problem there is the quoting. You need your CommendId=
to use single quotes, as follows:

<uc1:BoardCommentWrite ID="BoardCommentWrite1" CommentId='<%#
Eval("CommentId") %>' runat="server" />

--

Joshua Mitts
jo****@msn.com

"somequestion" <so**********@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
<DataList >
<ItemTemplate>

<uc1:BoardCommentWrite ID="BoardCommentWrite1" CommentId="<%#
Eval("CommentId") %>" runat="server" />

</ItemTemplate>
</DataList >

my CODE is like this. datalist make a lof of BoardCommentWrite
usercontrol that' why i have to distinguish between controls but it's
nor working
complier say

Error 1 The server tag is not well formed.
C:\Project2005\WebSite\Minoworks\Board\BoardCommen t.ascx 72

thanks
"Joshua Mitts" <jo****@msn.com> wrote in message
news:u6****************@TK2MSFTNGP10.phx.gbl...
I'm not clear on what you want to accomplish with the Eval() command?
Can you describe exactly what you want to do?

If you want to bind data, you need to use DataBinder.Eval("<data column
goes here>"), and then use DataBind() on your control or page.

--

Joshua Mitts
jo****@msn.com

"somequestion" <so**********@gmail.com> wrote in message
news:eH*************@TK2MSFTNGP10.phx.gbl...
>< uc1:BoardWrite ID="BoardWrite1" CommentId="<%# Eval("CommentId") %>"
>runat="server" />
>
> this is visual studio 2005 asp.net tag.
> first it's nor working..but i need this
> because i will use this usercontrol lots of place in just 1page.
> so i have to give commentId to BoardWirte control
> how can i solve this?
> Bind() method also doesn't work.
> thankx.
>



Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dave | last post by:
Tried posting in the Winform Forum without much luck, so posting here... After inserting a new data row to a DataTable that is bound to a datagrid, I am unable to change data in a row that is...
4
by: Max | last post by:
Hi, I would like to have a button and a combo box with options to select various versions of Microsoft Outlook: 2002, 2003. The user selects the email client and clicks the button. The only...
1
by: InBigTrouble | last post by:
I’ve used the following code to bind the data from an access database to text boxes in Windows Form in VB.Net. Now I want to be able to scroll through the records using a adhoc bar and be able to...
8
by: Rich | last post by:
Hello, If I leave Option Strict Off I can use the following syntax to read data from a Lotus Notes application (a NotesViewEntry object represents a row of data from a Lotus Notes View - like a...
0
by: Peter Conrey | last post by:
I have a perl web service (using SOAP::Lite) with a method called "Detail" that returns a strucure (hash reference to be exact). It works fine when consumed by a Perl client, but when I try to...
1
by: bparr | last post by:
All, I am using Windows Forms and have multiple XML datasets feeding various controls. Here is the situation. I have a master dataset that saves a document to the drive. Out of 50 fields in...
1
by: Frustrated Developer via DotNetMonster.com | last post by:
I have developed a form that would allow the user to load and search a database several ways, by data range using two combo boxes, by specific number entered in a text box or all database entries....
19
by: Larry Lard | last post by:
In the old days (VB3 era), there was a thing called the Data Control, and you could use it to databind controls on forms to datasources, and so (as the marketing speak goes), 'create database...
2
by: Ronald S. Cook | last post by:
Hi, Some users on our domain can run our WCF application no problem. Some get an unhandled exception error re: SOAP security negotiation. I'm wanting the service to not be secure.. I just want...
8
by: moondaddy | last post by:
I'm posting code for a user control ( FunctionConnectorSelector) below which has 3 content controls in it. each content control uses a style from a resource dictionary merged into the app.xaml...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.