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

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

Dynamically generate image on image map or image button

Posted By:      Posted Date: September 30, 2010    Points: 0   Category :ASP.Net

Here is this thing which to me looks possible, but when I searched over
the net I couldnt find anything. Any ideas about this please do let me know.

I want to create a page where I can upload an image using any upload
function and then display it.
Now after diplaying it I want to select the hotspots for an image map.
The coordinates of image map values are stored in a database.

Basically I want that to create image maps and hotspots I dont use any
offline software, this work is successfully completed and working perfectly, but i want generate one identification where i click the hot spots position in image or CSS file Generate for user identifications, So how can i solve this problem,please Help me.

I hope You are clear in that what I am looking for.

Please do reply if you have any sugestions.

Thanks In Advance:



View Complete Post

More Related Resource Links

Dynamically Generate hotspots With one identification like image or CSS in Image map


Hi One And All,

              Here I am write one query please help to me.

Query:how to Dynamically Generate Hotspots On image map with identification like image or CSS this logic for admin side ,and this image is Display in Front end side with Hotspots  using asp.net and c#.

I hope this understand one and all,

Thanks In Advance.

Gridview with Image Button


i have a gridview and i want to perform edit and delete with an image button

but unable to figure out the events and how i m gonna make my grid into edit mode ??

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                <asp:TemplateField HeaderText="S.No">
                        <asp:Label ID="Label1" runat="server" Text='<%# Container.DataItemIndex+1 %>'></asp:Label>
                <asp:TemplateField HeaderText="Edit">
                        <asp:ImageButton ID="ImageButton1" runat="server" ImageAlign="Middle" 
                            ImageUrl="~/image/ico_edit.gif" CommandName="Edit" 
                            onclick="ImageButton1_Click" />
                <asp:TemplateField HeaderText="Delete">

how to set multiple button in single image


Hi friends,

I need to make multiple button in a single image in asp.net.

and need coding also for vb.net.

thanx in advance

change image button image


i am making a web form with a VB code behind.  on the form I have a down arrow imageButton that when pressed hides certain data.  what i want to do is change the button to an up arrow and vice versa whenever pressed.  i have both images loaded onto my project already.  any suggestions.

thank you

Dynamically Get The Image in Javascript

Dear all,   I have a filePhoto control and Image control in my aspx page when I click on Filephoto control i am able to get the path in the control i need the image to be set to Image control .Thanks In advance

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.

image as a button

hi alli would like to use an image i created with web button maker as a button in my formwhere do i put the postback action for the button?thank you

play storyboard with dynamically created image

this is my storyboard:   <Storyboard x:Key="expandStoryboard"> <DoubleAnimation Storyboard.TargetProperty="RenderTransform.ScaleX" To="2" Duration="0:0:0.2" /> <DoubleAnimation Storyboard.TargetProperty="RenderTransform.ScaleY" To="2" Duration="0:0:0.2" /> </Storyboard> <!-- This storyboard will make the image revert to its original size --> <Storyboard x:Key="shrinkStoryboard"> <DoubleAnimation Storyboard.TargetProperty="RenderTransform.ScaleX" To="1" Duration="0:0:0.2" /> <DoubleAnimation Storyboard.TargetProperty="RenderTransform.ScaleY" To="1" Duration="0:0:0.2" /> </Storyboard>   and i created image dynamically:   BitmapImage bmp = new BitmapImage(); bmp.BeginInit(); bmp.UriSource = new Uri("file:///" + arrstrFileNames[0].Replace("\\", "/")); bmp.EndInit(); Image img = new Image(); img.Source = bmp; RotateTransform rt = new RotateTransform(); img.LayoutTransform = rt; ScaleTransform st = new ScaleTransform(); st.ScaleX = 1; st.ScaleY = 1; img.LayoutTransform = st; if(first==true) img.ContextMenu = mnu; first = false; assignEv

Change image button image on hover

Hoep this si simple I would like to change the image in an image button when the user hovers over it ..can anyone helpThanks  

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

adding an external image dynamically

hi Folks, i got a report with an image, the full qualified image is stored in an attribute like http://vmt-moss/Immo/NA23/NA23.jpg if I set the the property in SQL 2008 R1 RS to external and the value to imagepath (where the http link is stored) nothing doesn't been displayed. Additonally i am setting an Action to the image property, where also the imagepath value has been set, if click onto the image, image has been opened properly. Do I have to format the value to a Url Format ?   thx for your help

Dynamically generating of hot spots on image


HI all,
           I am facing problem with the dynalically generating the image at particular with coordinate points on image map through code behind (aspx.cs).
    As per my requirement i need to generate Hotspots dynamically and also displaying an image to indicate the Hot spots.
Please send me the code above that ...

thanks in advance

how to dynamically set image's imagepath (imageURL) in the datalist1



Here i am again , with a new trouble Frown

I put a detalist in my vb.net web page. And bind with datasource, how can i bind a dynamical path on......


i solved by the working on the issue :)) Please find the following answer for setting dynamically setting the imageURL

        Dim img As Image
        Dim y1 As String = DropDownList1.SelectedItem.Value.ToString
        If DropDownList1.SelectedIndex = 1 Then
            y1 = "Genel"

How to create a button with image and text


Currently I have button on a form and I need to make buttons image but maintain the click event functions that they have. For instance I have a button that says Update. Is there a way to add an image and put text in that image that says Update and maintain it's functionality. here is the code for the button:

<asp:Button ID="btnUpdate" runat="server" Text="Update" Visible="False" />


registration with generate ID card image


hi dears

i want to generate ID Card Image with first name and last name and ID number with barcode after the customer finish registration 

and send it to him/her email

how to do this ???


Adding an Image to a StackPanel dynamically


I feel silly asking this, but so far I haven't been able to solve this problem by myself, so here goes.

I'm trying to dynamically add a StackPanel to a Canvas, which works, but I also need to add an Image to the same StackPanel, which does not yet work. My code for this looks like this:

public void CreateInfo()
  StackPanel info = new StackPanel();
  TextBlock authorBlock = new TextBlock();
  TextBlock extraBlock = new TextBlock();

  info.Height = 500;
  info.Width = 500;

  authorBlock.Text = "Some text to test.";

  System.Windows.Controls.Image img = new System.Windows.Controls.Image(); // I needed to disambiguate Image.
  img.Source = new BitmapImage(new Uri("/Trex;component/Resources/icons/fire.png", UriKind.RelativeOrAbsolute)); // fire.png is something like 24 x 44 pixels.

  Canvas.SetLeft(info, 100);

image button in datalist


i have stored the image url  in the database.

i have a image button in datalist.i want that when i click that imagebutton i get its url of that particular row.


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