C
Cemal Karademir
Hello,
Please forgive my simple question, but i don't know the correct synatx.
From the masterpage i want to put a text in an textbox and then select an
item in the datagrid. I do know how to pass the items in the datagrid(e.g.
PLU, description, etc.) to an other (detail)page, but i don't know the
correct syntax of how to pass the textbox value to the detailpage.
I have the following code:
<aspataGrid id="dgrArticle" runat="server" autoGenerateColumns="False">
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<a href='ArticleDetail.aspx?debtorid=<%#textbox1.text%>&
plu=<%#DataBinder.Eval(Container.DataItem,
"PLU")%>&
description=<%#DataBinder.Eval(Container.DataItem,"DESCRIPTION")%
</a>
</ItemTemplate>
</asp:TemplateColumn
</Columns>
</aspataGrid>
The result is now:
http://localhost:8081/ArticleDetail.aspx?debtorid=&plu=2&description=SOME_DE
SCRIPTION
But must be (if textbox1.text="12345") :
http://localhost:8081/ArticleDetail.aspx?debtorid=12345&plu=2&description=SO
ME_DESCRIPTION
Thanx, Cemal
Please forgive my simple question, but i don't know the correct synatx.
From the masterpage i want to put a text in an textbox and then select an
item in the datagrid. I do know how to pass the items in the datagrid(e.g.
PLU, description, etc.) to an other (detail)page, but i don't know the
correct syntax of how to pass the textbox value to the detailpage.
I have the following code:
<aspataGrid id="dgrArticle" runat="server" autoGenerateColumns="False">
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<a href='ArticleDetail.aspx?debtorid=<%#textbox1.text%>&
plu=<%#DataBinder.Eval(Container.DataItem,
"PLU")%>&
description=<%#DataBinder.Eval(Container.DataItem,"DESCRIPTION")%
</a>
</ItemTemplate>
</asp:TemplateColumn
</Columns>
</aspataGrid>
The result is now:
http://localhost:8081/ArticleDetail.aspx?debtorid=&plu=2&description=SOME_DE
SCRIPTION
But must be (if textbox1.text="12345") :
http://localhost:8081/ArticleDetail.aspx?debtorid=12345&plu=2&description=SO
ME_DESCRIPTION
Thanx, Cemal