Click here to Skip to main content
16,006,535 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Question<asp:calendar> and "Arithmetic overflow error converting expression to data type datetime."</asp:calendar> Pin
epp11235-Jun-08 20:22
epp11235-Jun-08 20:22 
AnswerRe: and "Arithmetic overflow error converting expression to data type datetime." Pin
eyeseetee5-Jun-08 22:05
eyeseetee5-Jun-08 22:05 
QuestionIs it possible to Get id of a row in repeater Pin
S.Aijaz5-Jun-08 20:11
S.Aijaz5-Jun-08 20:11 
AnswerRe: Is it possible to Get id of a row in repeater Pin
Gayani Devapriya5-Jun-08 21:21
Gayani Devapriya5-Jun-08 21:21 
GeneralRe: Is it possible to Get id of a row in repeater Pin
S.Aijaz5-Jun-08 21:40
S.Aijaz5-Jun-08 21:40 
GeneralRe: Is it possible to Get id of a row in repeater Pin
S.Aijaz5-Jun-08 22:08
S.Aijaz5-Jun-08 22:08 
GeneralRe: Is it possible to Get id of a row in repeater [modified] Pin
Gayani Devapriya5-Jun-08 22:18
Gayani Devapriya5-Jun-08 22:18 
GeneralRe: Is it possible to Get id of a row in repeater Pin
S.Aijaz5-Jun-08 22:53
S.Aijaz5-Jun-08 22:53 
Here is code given below


.aspx File:-
<table width="556px" cellpadding="0" cellspacing="0" rules="all" border="1" bordercolor="gray" >
<asp:Repeater ID="rpt_Details" runat="server" OnItemDataBound="rpt_Details_ItemDataBound">
<HeaderTemplate>
<tr>
<th align="center" width="67px">
ProductID</th>
<th align="center" width="190px">
ProductName</th>
<th align="center" width="70px">
SupplierID</th>
<th align="center" width="75px">
CategoryID</th>
<th align="center" width="127px">
QuantityPerUnit</th>
<th align="center" width="127px">
Get ID</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>
<%#Eval("ProductID")%>
</td>
<td>
<%#Eval("ProductName")%>
</td>
<td>
<%#Eval("SupplierID")%>
</td>
<td>
<%#Eval("CategoryID")%>
</td>
<td>
<%#Eval("QuantityPerUnit")%>
</td>
<td>
<asp:Button ID="btn_GetID" runat="server" Text="GetID" CommandName="Edit" CommandArgument='<%#Eval("ProductID") %>' />
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>


.cs File:

protected void rpt_Details_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
Button btnedt = (Button)e.Item.FindControl("btn_GetID");
if (btnedt != null)
{
int id = Convert.ToInt32(btnedt.CommandArgument);
Label2.Text = id.ToString();
}
}
GeneralRe: Is it possible to Get id of a row in repeater [modified] Pin
Gayani Devapriya6-Jun-08 1:54
Gayani Devapriya6-Jun-08 1:54 
QuestionAuto Redirect from Paypal Pin
Krazy Programmer5-Jun-08 19:52
Krazy Programmer5-Jun-08 19:52 
AnswerRe: Auto Redirect from Paypal Pin
Bhumikabarot5-Jun-08 21:18
Bhumikabarot5-Jun-08 21:18 
AnswerRe: Auto Redirect from Paypal Pin
mdpavel6-Jun-08 7:02
mdpavel6-Jun-08 7:02 
QuestionFill table by XML document Pin
harunbagwan5-Jun-08 19:39
harunbagwan5-Jun-08 19:39 
QuestionFile upload control not accepting 15 MB document file Pin
Pankaj Garg5-Jun-08 19:12
Pankaj Garg5-Jun-08 19:12 
AnswerRe: File upload control not accepting 15 MB document file Pin
eyeseetee5-Jun-08 22:04
eyeseetee5-Jun-08 22:04 
QuestionRe: File upload control not accepting 15 MB document file Pin
Pankaj Garg6-Jun-08 1:10
Pankaj Garg6-Jun-08 1:10 
AnswerRe: File upload control not accepting 15 MB document file [modified] Pin
Gayani Devapriya6-Jun-08 3:07
Gayani Devapriya6-Jun-08 3:07 
QuestionTransfer failed to connect the server ??? Pin
koolprasad20035-Jun-08 18:19
professionalkoolprasad20035-Jun-08 18:19 
AnswerRe: Transfer failed to connect the server ??? Pin
eyeseetee5-Jun-08 22:03
eyeseetee5-Jun-08 22:03 
QuestionAutoComplete Extender Textbox With AutoPostbak Pin
Member 34533315-Jun-08 18:05
Member 34533315-Jun-08 18:05 
AnswerRe: AutoComplete Extender Textbox With AutoPostbak Pin
eyeseetee5-Jun-08 22:01
eyeseetee5-Jun-08 22:01 
GeneralRe: AutoComplete Extender Textbox With AutoPostbak Pin
Member 34533318-Jun-08 18:52
Member 34533318-Jun-08 18:52 
QuestionCSS 2.1 is not applying in IE6 Pin
For_IT5-Jun-08 17:53
For_IT5-Jun-08 17:53 
AnswerRe: CSS 2.1 is not applying in IE6 Pin
Christian Graus5-Jun-08 17:56
protectorChristian Graus5-Jun-08 17:56 
AnswerRe: CSS 2.1 is not applying in IE6 Pin
RCoate5-Jun-08 18:32
RCoate5-Jun-08 18:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.