.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

open mysite on image click

Posted By:      Posted Date: October 20, 2010    Points: 0   Category :SharePoint

Hi all,

In my sharepoint portal i have kept a image link . I want to open the "MySite" page when i click on the image link.

Thanks in advance



View Complete Post

More Related Resource Links

How to Click image to Navigate to next image

 In Detail.aspx , I know this code will show the image <img src="Handler.ashx?PhotoID=<%# Eval("PhotoID") %>&Size=L" class="photo_198" style="border:4px solid white" alt='Photo Number <%# Eval("PhotoID") %>' /> And does any one could add a URL href to allow user navigate to next image via click current image ?   

Open PDF file on button click or hyperlink from asp.net

I want to open a .PDF file on button click or hyperlink. please help me.

Open in new window option for Image Button

I am using an Image Button with onclientclick property set.Upon clicking the button I am able to navigate to URL page. But when I am right clicking on the Image Button I am not getting "Open in new window" or "Open in new tab". These options I see when I right click on an Hyperlink control.Can we achieve the same fro Image Button. If so how?Thank you,Praveen.

Open ContextMenuStrip on left mouse click on NotifyIcon

Hi,I was working with an application and faced this problem, I have this code :public partial class Form2 : Form    {        public Form2()        {            InitializeComponent();        }        private void notifyIcon1_MouseClick(object sender, MouseEventArgs e)        {            if (e.Button == MouseButtons.Left)            {                contextMenuStrip1.Show(this, Control.MousePosition); // Or any other overload            }        }        private void Form2_Load(object sender, EventArgs e)        {            notifyIcon1.Icon = Icon;        }    }Here, in design mode, i have set contextMenuStrip1 as notifyIcon1's ContextMenuStrip. When I right click on notifyIcon1, it opens the context menu and when I click somewhere else, it closes. But with my code opens the contextmenu on left click and when I open context menu that way, it shows in taskbar and doesn't close when I click some where else.In short, I want to open contextmenustrip when user left clicks and right clicks on the notifyicon and it works well with right click by default but not with left click. And I want to avoid using SendMessage to send left click message.Is there any way I can work this out?

OpenDialog box to open file with a double-mouse click

Hi, I am having a hard time trying to find an example that opens an opendialog box and allows the users to open the file with a Double-Click. Please help.   Thanks

image button click in listview with scriptmanager

 I am using scriptmanager in masterpage and my imagebutton click event is not being found in code behind and my javascript is not working and no events are firing. In fact, the imagebutton does not change the mouse icon to a hand when hovering... help!  <asp:UpdatePanel ID="upTabControl" runat="server" UpdateMode="Conditional"> <Triggers> <asp:AsyncPostBackTrigger ControlID="tabControlScriptManagerTabStrip" /> <asp:PostBackTrigger ControlID="scriptManagerTabStripMultiPage" /> <asp:AsyncPostBackTrigger ControlID="ctrl_List_View_Images1$lv_Items_Images" /> <asp:AsyncPostBackTrigger ControlID="ContractDocumentUpload1" /> </Triggers> <ContentTemplate> <telerik:RadTabStrip ID="tabControlScriptManagerTabStrip" runat="server" SelectedIndex="0" Skin="Web20" MultiPageID="scriptManagerTabStripMultiPage" AutoPostBack="True" OnTabClick="RadTabStrip1_TabClick"> <Tabs> <telerik:RadTab Text="Blog" runat="server" MultiPageID="scriptManagerMultiPag

image onmouseover event open a div

hi, In listview i have a html image.when I mousover the image it should be open a div (or)popup.how to do this??pls reply me.Many Thanks in Advance.

Click imagebutton open window.open in class asp.net 2.0

Click imagebutton open window.open in class asp.net 2.0

Open TIF image in IE

I have written the following code to open a TIF file. FileStream fs = new FileStream(imageUrl, FileMode.Open, FileAccess.Read);   where the imageUrl is C:\images\test.tif What I need is to open up the image in IE.But at present,its opening in windows picture and fax viewer.Any idea?

Open an image in new window on clik of image icon

 Hi all,   I bind the Image to Grdview Column like below <asp:GridView ID="grdImage" runat="server" AutoGenerateColumns ="False" onrowdatabound="grdImage_RowDataBound"> <Columns> <asp:TemplateField HeaderText="Image Uploaded"> <ItemTemplate> <asp:Image ID="Image1" runat="server" imageurl='<%#Eval("ImagePath").ToString().Equals("No")? "IMAGES/not.JPG" :"IMAGES/image.gif" %>'/> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView>   Now how i add the clik event to image control and open the image in New window any Idea???   Regards

Open another Form from my Main form using a button click


Hi All


I have seen this question asked and answered several times but it doesn't seem to be the question. I have.


I have just created a new project I renamed form1 to FrmMain and then I created a new form by clicking add new form and I named it Report


I then went to my FrmMain and dropped a button on there from the toobox. I now need to open Report.cs when I click the button.


I have tried               Report Form2 = new Report();



But all that does it open a new FORM and its not my Report Form. It also just keeps opening new forms every time I click the button. My thought is that the user will enter a ID then click the button then the report form will open and I will then create a query to populate a data gride or view using the ID form the text box on FrmMain.


Please help.... I am new to this so shoot it straight as if this was your first forms application that you created.



open application in seperate browser when click on SiteMapNode


Hi All,

I want to open application in seperate browser when click on SiteMapNode.

Thanks in advance. 

>>How to open a page in seperate browser when Imagebutton click from parent page?



In parent page there is an imagebutton. What I want to when user click this image button, another page will open with width=200 and height=100 with no toolbar.

how to open window in new page on button click


hi all,

Here's my code

        If rdvalue = "Dept" And ddldeptr.SelectedValue <> "" Then
            Button1.PostBackUrl = "~\Reports\Hrmis\CrvGpDept.aspx?fromd=" & txtfrom.Text & " &tod=" & txtto.Text & "&dep=" & ddldeptr.SelectedValue & ""
        ElseIf rdvalue = "Sect" And ddlsectr.SelectedValue <> "" Then
            Button1.PostBackUrl = "~\Reports\Hrmis\CvGpSect.aspx?fromd=" & txtfrom.Text & " &tod=" & txtto.Text & "&sec=" & ddlsectr.SelectedValue & ""
        ElseIf rdvalue = "Desig" And ddldesigr.SelectedValue <> "" Then
            Button1.PostBackUrl = "~\Reports\Hrmis\CrvGpdesig.aspx?fromd=" & txtfrom.Text & " &tod=" & txtto.Text & "&desi=" & designation & ""
        ElseIf rdvalue = "Emp" And txtempidr.Text <> "" Then
            Button1.PostBackUrl = "~\Reports\Hrmis\CrvGpemp.aspx?fromd=" & txtfrom.Text & " &tod=" & txtto.Text & "&emp=" & empid & ""
            Button1.PostBackUrl = "~\Reports\Hrmis\CrvGpall.aspx

SQL file will not open in SSMS on double-click (or jump list)


Hello, all.

I am running SQL Server Management Studio 2008 on a Windows 7 Enterprise machine here at work.  I am not sure when this started happening, but now, for some reason, when I double-click on a SQL file in Explorer, or from the jump list for SSMS (which I have pinned to my Windows 7 task bar), SSMS will open, but will not load the file in question, nor will it bring up a logon screen to connect to a DB.  I tried unassociating the .SQL extension and then re-associating it using "Open With" and it worked the first time (from the Open With), but then immediately reverted back to its old behavior.  Very annoying.

For now I just open SSMS first (which pops up a logon screen and things proceed normally), but that kind of defeats the purpose of having a jump list or a file association.  Has anybody run into this before and can anybody suggest a fix or what's wrong?

Thanks in advance for any wisdom anyone can provide. 

how can i call the AsyncFileUpload's click method by a image



i want to make something like that

<cc1:AsyncFileUpload runat="server" id="upload"

<img onclick='upload.click()'/>

i tried lots of script but it doesnt work. Can anyone help?

ImageButton click -> new window open

Hi all,
I have an ImageButton with PostBackUrl="~/AnotherForm.aspx".
Whether exists or not any way to open the AnotherForm.aspx page in different window?
Tnx in advance!

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend