473,772 Members | 3,148 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1137
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

"somequesti on" <so**********@g mail.com> wrote in message
news:eH******** *****@TK2MSFTNG P10.phx.gbl...
< uc1:BoardWrite ID="BoardWrite1 " CommentId="<%# Eval("CommentId ") %>"
runat="serve r" />

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:BoardComme ntWrite ID="BoardCommen tWrite1" CommentId="<%#
Eval("CommentId ") %>" runat="server" />

</ItemTemplate>
</DataList >

my CODE is like this. datalist make a lof of BoardCommentWri te 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\Minowor ks\Board\BoardC omment.ascx 72

thanks
"Joshua Mitts" <jo****@msn.com > wrote in message
news:u6******** ********@TK2MSF TNGP10.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

"somequesti on" <so**********@g mail.com> wrote in message
news:eH******** *****@TK2MSFTNG P10.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:BoardComme ntWrite ID="BoardCommen tWrite1" CommentId='<%#
Eval("CommentId ") %>' runat="server" />

--

Joshua Mitts
jo****@msn.com

"somequesti on" <so**********@g mail.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
<DataList >
<ItemTemplate >

<uc1:BoardComme ntWrite ID="BoardCommen tWrite1" CommentId="<%#
Eval("CommentId ") %>" runat="server" />

</ItemTemplate>
</DataList >

my CODE is like this. datalist make a lof of BoardCommentWri te 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\Minowor ks\Board\BoardC omment.ascx 72

thanks
"Joshua Mitts" <jo****@msn.com > wrote in message
news:u6******** ********@TK2MSF TNGP10.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

"somequesti on" <so**********@g mail.com> wrote in message
news:eH******** *****@TK2MSFTNG P10.phx.gbl...
< uc1:BoardWrite ID="BoardWrite1 " CommentId="<%# Eval("CommentId ") %>"
runat="serve r" />

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.questio n...is like below

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

<DataList >
<ItemTemplate >

<uc1:BoardComme ntWrite ID="BoardCommen tWrite1"
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******** ******@TK2MSFTN GP09.phx.gbl...
Oh I'm sorry, your problem there is the quoting. You need your CommendId=
to use single quotes, as follows:

<uc1:BoardComme ntWrite ID="BoardCommen tWrite1" CommentId='<%#
Eval("CommentId ") %>' runat="server" />

--

Joshua Mitts
jo****@msn.com

"somequesti on" <so**********@g mail.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
<DataList >
<ItemTemplate >

<uc1:BoardComme ntWrite ID="BoardCommen tWrite1" CommentId="<%#
Eval("CommentId ") %>" runat="server" />

</ItemTemplate>
</DataList >

my CODE is like this. datalist make a lof of BoardCommentWri te
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\Minowor ks\Board\BoardC omment.ascx 72

thanks
"Joshua Mitts" <jo****@msn.com > wrote in message
news:u6******** ********@TK2MSF TNGP10.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

"somequesti on" <so**********@g mail.com> wrote in message
news:eH******** *****@TK2MSFTNG P10.phx.gbl...
< uc1:BoardWrite ID="BoardWrite1 " CommentId="<%# Eval("CommentId ") %>"
runat="serv er" />

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.Data Bind()
in your code, i.e.

<uc1:BoardComme ntWrite ID="BoardCommen tWrite1"
CommentId='<%# DataBinder.Eval (Container.Data Item, "CommentId" )
%>' runat="server" />

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

--

Joshua Mitts
jo****@msn.com

"somequesti on" <so**********@g mail.com> wrote in message
news:ue******** ******@tk2msftn gp13.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.questio n...is like below

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

<DataList >
<ItemTemplate >

<uc1:BoardComme ntWrite ID="BoardCommen tWrite1"
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******** ******@TK2MSFTN GP09.phx.gbl...
Oh I'm sorry, your problem there is the quoting. You need your CommendId=
to use single quotes, as follows:

<uc1:BoardComme ntWrite ID="BoardCommen tWrite1" CommentId='<%#
Eval("CommentId ") %>' runat="server" />

--

Joshua Mitts
jo****@msn.com

"somequesti on" <so**********@g mail.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
<DataList >
<ItemTemplate >

<uc1:BoardComme ntWrite ID="BoardCommen tWrite1" CommentId="<%#
Eval("CommentId ") %>" runat="server" />

</ItemTemplate>
</DataList >

my CODE is like this. datalist make a lof of BoardCommentWri te
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\Minowor ks\Board\BoardC omment.ascx 72

thanks
"Joshua Mitts" <jo****@msn.com > wrote in message
news:u6******** ********@TK2MSF TNGP10.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

"somequesti on" <so**********@g mail.com> wrote in message
news:eH******** *****@TK2MSFTNG P10.phx.gbl...
>< uc1:BoardWrite ID="BoardWrite1 " CommentId="<%# Eval("CommentId ") %>"
>runat="ser ver" />
>
> 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
3504
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 after the newly added row without getting bizarre results. I have added the full code for the test below. Create a project drop in the code and run. There is nothing crazy about the code. I used the designer to add the dataset and to do the...
4
5108
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 things happening will be: a new email is created and some text is placed in the body, then the email window is displayed. The user can close the window or select some recipients and send the message. I would like some info on how to do this correctly....
1
1171
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 jump from the first to the last record. this coding only displays the first record. Can anyone please help me? Private Sub frmmemberdetails_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.OpenConnection()...
8
1829
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 record in a sql Server view) .... Dim entry As Domino.NotesViewEntry Dim obj As Object str1 = entry.ColumnValues(0)
0
2314
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 consume it with a C# application, I get the following runtime error from C#: Cannot assign object of type System.Xml.XmlNode to an object of type ConsoleApplication1.com.hilton.crmdev.SummaryType. Below is the Perl code that generates the hash,...
1
960
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 the XML document, there are 5 that have defaults loaded from a different XML dataset when the new form is created. In pseudocode
1
1858
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. I'm able to use the combo box selection method multiple times with no problem However, when I try to type in a specific drawing number in the txtDrawingNum.text field and click btnLoad I get the same dataset that I previously had from the combo...
19
2231
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 applications without writing a single line of code!!!'. Personally, and I know I wasn't alone in this, I was always suspicious of this claim, because one invariably ended up writing huge amounts of code attempting to get the automagical thing to do...
2
14787
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 anyone logged into our company domain to be able to run the app. Can someone please tell me what tag I need added to which of these files to make this error go away? Thanks very much in advance, Ron
8
11520
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 file. each control has a border with another style, and each border has a unique path inside of it. I need to dynamically add these content controls using c# at runtime and am having trouble referencing the styles and adding the path into the...
0
9912
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8934
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7460
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6715
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.