Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

asp.net mvc

Posted on 2016-08-29
3
Medium Priority
?
73 Views
Last Modified: 2016-08-29
Hi Guys,

I"m wondering if is it possible to use element from index page to partial view:

For example:
I have index page and inside the page I have my partial view.

Now in the index page I have button <input type="button" id="btid">

I would like to use this "btid" in my partial view but it seems I can't do it as I can't use elements backwards. like if I have element in my partial view the index page can use them but not in the other way.

There is any trick that can make it work.

Thanks,
0
Comment
Question by:Moti Mashiah
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 44

Accepted Solution

by:
zephyr_hex (Megan) earned 2000 total points
ID: 41775278
Can you please elaborate on what you want to do by referencing the button in your partial view ?  Do you want it to submit ?  or what?

And please explain why you just can't use another button in your partial view.  Why does it have to be "btid" ?

We need to understand what you're attempting to do.
0
 
LVL 1

Author Comment

by:Moti Mashiah
ID: 41775375
Thank you for your answer.

Actually, I had to use the button from the index as I return the index page just one and then I return the partial, so in that case I couldn't see the button element as I had to hide it by condition.

I have solved the issue by moving the button from Index to partial view. Now both partial and index can use this button element.


Thanks.
0
 
LVL 1

Author Closing Comment

by:Moti Mashiah
ID: 41775376
Thanks.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question