Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
| Search | Today's Posts | Mark Forums Read
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
  #1 (permalink)  
Old January 2nd, 2013, 04:47 PM
Authorized User
Points: 90, Level: 1
Points: 90, Level: 1 Points: 90, Level: 1 Points: 90, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2012
Posts: 19
Thanks: 8
Thanked 0 Times in 0 Posts
Default 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 ?
  #2 (permalink)  
Old January 3rd, 2013, 05:55 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!

Last edited by Imar; January 4th, 2013 at 04:10 AM..
The Following User Says Thank You to Imar For This Useful Post:
kafshdoozak (January 3rd, 2013)
  #3 (permalink)  
Old January 3rd, 2013, 06:49 AM
Authorized User
Points: 90, Level: 1
Points: 90, Level: 1 Points: 90, Level: 1 Points: 90, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2012
Posts: 19
Thanks: 8
Thanked 0 Times in 0 Posts
Default

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 ?
  #4 (permalink)  
Old January 4th, 2013, 04:11 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
  #5 (permalink)  
Old January 4th, 2013, 11:38 AM
Authorized User
Points: 90, Level: 1
Points: 90, Level: 1 Points: 90, Level: 1 Points: 90, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2012
Posts: 19
Thanks: 8
Thanked 0 Times in 0 Posts
Default

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
  #6 (permalink)  
Old January 4th, 2013, 11:41 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
  #7 (permalink)  
Old January 5th, 2013, 09:01 AM
Authorized User
Points: 90, Level: 1
Points: 90, Level: 1 Points: 90, Level: 1 Points: 90, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2012
Posts: 19
Thanks: 8
Thanked 0 Times in 0 Posts
Default

aha ok thank you

and about topic , excuse me , for future i use appropriate forum category


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to access textbox inside EditItemTemplate? Chaim BOOK: Professional jQuery 0 September 13th, 2012 12:58 PM
I have a question about using a checkbox list inside a listview. IceThatJaw ASP.NET 4 General Discussion 7 May 22nd, 2012 11:05 PM
ListBox inside listview andreas5 ASP.NET 4 General Discussion 0 September 30th, 2010 12:30 PM
ListView EditItemTemplate doesn't bind data in declarative code muybn ASP.NET 3.5 Basics 2 September 16th, 2010 10:09 PM
Binding ComboBox inside ListView problem gunnjamie Windows Presentation Foundation 1 July 17th, 2008 02:13 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.