Yes when you click button then it exectues ShowPicture action methods which is in your controler and load your view with name as "ShowPicture" by pasing actual model with your data like image name path and that will load all those data with image in your
view.
My Tech Blogs MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
dragular
Member
118 Points
144 Posts
Button in MVC2
Aug 04, 2011 06:14 AM|LINK
Hi All,
Now I have one problem. My problem is
<td>
<img src="<%: Url.Content("./../Content/Images/myimage.gif"%>" /></a>
</td>
when I clikc this myimage.gif that show another page with user's related picture. Pls help me qucik.
dragular
amitpatel.it
Star
7918 Points
1861 Posts
Re: Button in MVC2
Aug 04, 2011 06:21 AM|LINK
<td> <a href="@Url.Action("ShowPicture")" onFocus="if(this.blur)this.blur()"> <img src='@Url.Content("/image/mypicture.gif")' alt="Show" border="0" /></a> </td>In above code ShowPicture is your action methods and as well view is available with same nane.
MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
dragular
Member
118 Points
144 Posts
Re: Button in MVC2
Aug 04, 2011 06:40 AM|LINK
Hi amitpate
I mean I click mypicture.gif it's show related information.
e.g I click mypicture.gif (button) show u photo.
dragular
amitpatel.it
Star
7918 Points
1861 Posts
Re: Button in MVC2
Aug 04, 2011 07:00 AM|LINK
Yes when you click button then it exectues ShowPicture action methods which is in your controler and load your view with name as "ShowPicture" by pasing actual model with your data like image name path and that will load all those data with image in your view.
MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application