 |
BOOK: Beginning ASP.NET 4 : in C# and VB
 | This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

January 2nd, 2013, 04:47 PM
|
Authorized User
|
|
Join Date: Aug 2012
Posts: 19
Thanks: 8
Thanked 0 Times in 0 Posts
|
|
AsyncFileUpload Or AjaxFileUpload Inside Listview EditItemtemplate won't work
Hello
I don't know why AsyncFileUpload and AjaxFileUpload inside Listview won't work but in the other place they work fine .
could anyone help me ?
|

January 3rd, 2013, 05:55 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
Since this is not related to my book, may I suggest you post this in a more general ASP.NET category from this list: http://p2p.wrox.com/asp-net-4-539/
If you post there, be sure to provide your code and a more detailed description of the problem.
Cheers,
Imar
Last edited by Imar; January 4th, 2013 at 04:10 AM..
|
The Following User Says Thank You to Imar For This Useful Post:
|
|

January 3rd, 2013, 06:49 AM
|
Authorized User
|
|
Join Date: Aug 2012
Posts: 19
Thanks: 8
Thanked 0 Times in 0 Posts
|
|
Ok imar , you are right
i have problem whit fileupload in listview that is wrapped by updatepannel
i tried to get id of upload button by javascript and set the id of control to PostbackTrigger and make it has a full post back but
if i use javascript to take the id of upload button in list view , it will return Null value.
can u help me ?
|

January 4th, 2013, 04:11 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Quote:
If you post there, be sure to provide your code and a more detailed description of the problem.
|
I don't see any post in the other forum and I don't see any code, so I don't understand how you think I can help...
Imar
|

January 4th, 2013, 11:38 AM
|
Authorized User
|
|
Join Date: Aug 2012
Posts: 19
Thanks: 8
Thanked 0 Times in 0 Posts
|
|
Ok sir , i'm sorry
please look this code :
i want to get one of elements id, for example : button whit id 'UpadetButton' in client side by java script ??
Code:
<EditItemTemplate>
<li style="">نام :
<br />
<br />
<asp:TextBox ID="FNameTextBox" runat="server" Text='<%# Bind("FName") %>' />
<asp:CustomValidator ID="ENameCusVal" runat="server" ErrorMessage="نام هنرجو را وارد"
Text="*" CssClass="ErrMsg"></asp:CustomValidator>
<br />
<br />
نام خانوادگی :
<br />
<br />
<asp:TextBox ID="LNameTextBox" runat="server" Text='<%# Bind("LName") %>' />
<asp:CustomValidator ID="EFamilyCusVal" runat="server" ErrorMessage="نام خانوادگی هنرجو را وارد کنید"
CssClass="ErrMsg"></asp:CustomValidator>
<br />
<br />
کمربند :
<br />
<br />
<asp:TextBox ID="BeltTextBox" runat="server" Text='<%# Bind("Belt") %>' />
<asp:CustomValidator ID="EBeltCusVal" runat="server" ErrorMessage="کمربند هنرجو را وارد کنید"
Text="*" CssClass="ErrMsg"></asp:CustomValidator>
<br />
<br />
دان :
<br />
<br />
<asp:TextBox ID="DanTextBox" runat="server" Text='<%# Bind("Dan") %>' />
<br />
<br />
کیو :
<br />
<br />
<asp:TextBox ID="KiuoTextBox" runat="server" Text='<%# Bind("Kiuo") %>' />
<br />
<br />
آپلود عکس
<br />
<br />
<asp:CustomValidator ID="EFileUploadCusVal" runat="server" ErrorMessage="یک عکس با پسوند مناسب انتخاب کنید"
Text="*" CssClass="ErrMsg"></asp:CustomValidator>
<br />
<asp:Button ID="UpdateButton" runat="server" CommandName="Update" Text="به روز رسانی"
CssClass="ManagmentBtt" />
<asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="انصراف" CssClass="ManagmentBtt" />
</li>
</EditItemTemplate>
When i write this script at the end of page as you said in Book, it returns null value :
Code:
<script type="text/javascript">
var Id = document.getElementById("<%=UpdateButton %>");
</script>
thank you for response and your wonderful book
|

January 4th, 2013, 11:41 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
As asked before, since this is not related to my book, may I suggest you post this in a more general ASP.NET category from this list?
That said, you need to use access the ClientID property on the control, not just the control (UpadetButton)
If it keeps failing, look at the final HTML for the and then take the id of the control directly.
For future posts on this question, please use the appropriate forum category.
Cheers,
Imar
|

January 5th, 2013, 09:01 AM
|
Authorized User
|
|
Join Date: Aug 2012
Posts: 19
Thanks: 8
Thanked 0 Times in 0 Posts
|
|
aha ok thank you
and about topic , excuse me , for future i use appropriate forum category
|
|
 |
|