Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 2nd, 2013, 03: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 ?
Reply With Quote
  #2 (permalink)  
Old January 3rd, 2013, 04:55 AM
Imar's Avatar
Wrox Author
Points: 71,632, Level: 100
Points: 71,632, Level: 100 Points: 71,632, Level: 100 Points: 71,632, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,013
Thanks: 79
Thanked 1,576 Times in 1,553 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 03:10 AM.
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
kafshdoozak (January 3rd, 2013)
  #3 (permalink)  
Old January 3rd, 2013, 05: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 ?
Reply With Quote
  #4 (permalink)  
Old January 4th, 2013, 03:11 AM
Imar's Avatar
Wrox Author
Points: 71,632, Level: 100
Points: 71,632, Level: 100 Points: 71,632, Level: 100 Points: 71,632, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,013
Thanks: 79
Thanked 1,576 Times in 1,553 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!
Reply With Quote
  #5 (permalink)  
Old January 4th, 2013, 10: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
Reply With Quote
  #6 (permalink)  
Old January 4th, 2013, 10:41 AM
Imar's Avatar
Wrox Author
Points: 71,632, Level: 100
Points: 71,632, Level: 100 Points: 71,632, Level: 100 Points: 71,632, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,013
Thanks: 79
Thanked 1,576 Times in 1,553 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!
Reply With Quote
  #7 (permalink)  
Old January 5th, 2013, 08: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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 06:23 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.