.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

popup insert control -> imagebutton

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :ASP.Net


I used popup insert control in my web site.  I would like to show ImageButton with image instead of standart Button on Foreign Field template.

What should I change to achieved that?

View Complete Post

More Related Resource Links

Extended ImageButton control's OnClick not firing


I extended an ImageButton control and its image is changing as expected, but its OnClick is not firing.  

namespace ECP.ServerControls
    [ToolboxData("<{0}:ExtendedImageButton runat=server></{0}:ExtendedImageButton>")]
    public class ExtendedImageButton: ImageButton
        protected override void OnPreRender(EventArgs e)
                    if (HttpContext.Current.Request.Cookies["happy_cookie"] != null )
                        this.ImageUrl = "http://domain/apple.gif";
                        this.Click += new ImageClickEventHandler(AppleAlert);
                        this.ImageUrl = "http://domain/mango.gif";
                        this.Click += new ImageClickEventHandler(MangoAlert);


        protected AppleAlert(object sender, ImageClickEventArgs e)

        protected void MangoAlert(object sender, ImageClickEventArgs e)

Using ATLAS PopUp Control with Calendar inside the GridView Control

In this video tutorial Mohammad demonstrates how you can access the Calendar control which is displayed using the ATLAS PopUp control inside the GridView control.

Open different page using Ajax Modal PopUp Extender Control

The article Open different page using Ajax Modal PopUp Extender Control was added by Chintan Dave on Thursday, July 15, 2010.

You May use Modal Popup Extender to open some part of the page as Popup. But there we don't have any property to open other html or aspx page in Popup window.We can do it using IFrame control. What we have to do, just add IFrame control in Panel that

Datalist and Ajax control toolkit Modal Popup window

Hi friends I have created list of thumbnail images in datalist and on clicking image i want to pass image name to Ajax control toolkit Modal Popup window which display bigger image.   Please help me.

Insert and Edit Pages with Web User Control Template for another table

Hi, I have an Address template(web user control) which holds the fields of the Address table.  The Address template is embedded in the School Insert Page.  I want to insert a new school together with its address(which means I have to insert a record into the address table).  Can you let me know how I can pass the newly generated addressId to update school table?  Also, how can I associate the Address.cs in the App_Code with the Address template?  I want it to be able to scaffold columns which needs to be hidden from user in the address table.  When I click on Insert School, the Address template shows in "insert" mode, I just need to link the two together. Thanks for your help! CC  

How to insert data to Treeview control from database

I want to make a menu used treeview control.so I can get data from database,I want to see in treeview.My database: Tablename: Menu,Field: Id,ParentId,Title.How do see this table in treeviewExample:--Main menu1 -- id is 1,parent id is null        -- sub menu1 -- id is 3,parent id is 1        -- sub menu2 -- id is 4,parent id is 1--Main menu2 -- id is 2,parent id is null         -- sub menu1 -- id is 5,parent id is 2         -- sub menu2 -- id is 6,parent id is 2

Hiding radGrid Popup EditFrom after Udate/Insert Issue

Anyone work with radGrid that may be able to assist me in this I would greatly appreciate it.  I just cant seem to put my finger on why this is occurring, but...I have a radGrid that uses a template in the <editform> for insertion and update of grid records.  I am using the popup style instead of the inline (but this is occurring with all types).  When I click edit or new, the edit form displays perfectly.  When I make my changes or additions and submit them, the grid updates as it should with the new record, all changes/additions are made perfectly except one detail - the edit form will not go away!  It stays in edit mode and even shows the changes that were made no problem...  I tried to add the following to the Inserted and Updated event, but these do not seem to do a thing: Protected Sub grid_partners_ItemInserted(ByVal source As Object, ByVal e As Telerik.Web.UI.GridInsertedEventArgs) Handles grid_partners.ItemInserted grid_partners.MasterTableView.IsItemInserted = False End Sub Protected Sub grid_partners_ItemUpdated(ByVal source As Object, ByVal e As Telerik.Web.UI.GridUpdatedEventArgs) Handles grid_partners.ItemUpdated grid_partners.MasterTableView.ClearEditItems() End SubAnyone know a better way, or I should say ANY WAY to do this?

Table popup control needed

Hi i got a Html table with Database names displayed in it , now when i hover overthen the need to display images with the path is also saved in the database , so i would have to add some asp.net control in the HTML Table  ,  No Javascript , i have tried it and when i search for names in the database the pics in the table are not where they belong . Need asp.The names are displayed via int howmany=0;while(read.Read()){howmany++;ShowinTable(read["Code"].ToString(),howmany);}Thanks any for suggetions.

Update Gridvew Row inside popup extender control

I have a gridview with popup control extender to show details of the row, it works ok. But I also need to update the fields inside this popup window. How do I get the row ID and pass it to the button click event handler? Please help. 

What is the trick to using a Seadragon AJAX control with-in a AJAX hovermenu or popup control


 I have teh seadragon working, but when I try to active it with a hovermenu or popupcontrol, I don't get an error, I just get everything except for the actual image.  It has the background, the controls of enlarge, shrink etc, but no image.


Any ideas?

How to refresh page and dropdown after insert record from popup page


I have a page that is opened in a popup window from the main page. Once i click insert it pops up a message that says you have successfully added blah blah. Then once you click ok it closes the popup page and goes back to the main page. I want to be able to refresh the main page back to how it was when you first land on the page. Here is the code for my insert button:


 <asp:button id="insertButton" 
                    style="background-image:url('Images/Button.gif'); text-align:center;background-color:Transparent; cursor:hand; background-repeat:no-repeat; background-position:left; padding-left:15px; font-family: 'Arial Unicode MS'; font-size: small; font-weight: bold;" 
                    Runat="server" Height="25px" BorderStyle=None ForeColor=White    Text="Insert" 
                    Width="99px" CssClass="style13" CommandName="Insert" OnClientClick="javascript: alert('You have successfully added a New Donor!!');window.open('','_self','');window.close();" />


Insert value from one table to another in SQL using CreateUserWizard control



I am using CreateUserWizard Control to register clients in my SQL Database. I have two tables: Customers and Categories. Customers CustomerID is a foreign key in Categoris. It is also automatically generated when values are inserted into Customers table.

Categories tables receives values from CheckBoxList control as CatCodes.

Everything works fine but one. When values are inserted into Customers and Categories table during registration, CustomerID is not inserted into the Categories table using the following sql code:

<asp:SqlDataSource ID="InsertDealerId" runat="server" ConnectionString="<%$ ConnectionStrings:myconnection %>"
  InsertCommand="INSERT INTO [Categories] ([CustomerID]) 
 SELECT Customers.CustomerID FROM Customers WHERE Customers.CustomerID = @CustomerID"
  ProviderName="<%$ ConnectionStrings:myconnection.ProviderName %>">
  <asp:Parameter Name="DealerID" />

I have tested is in SQL management studio and it gives no error, which means code is correct. Also, following is my full code with code behind to better understand what is going on. It's been a week now I am struggling with this and can't und

How do I control using ListView when to show the Update/Delete/Insert buttons and when not?


It should be simple, but I didn't found yet how to do it.

There is only one user (Admin with user name and passowrd, he has a cookie so I know when he is watching the page) I would like to show him the Update/Delete/Insert button options in my ListView, but to the other users I don't want them to be able doing this kind of things, So it should be hidden from them.

How I am doing it in C# code?

Showing/Hiding these buttons?


The data source control failed to execute the insert command


Hi All,

I have create table in SQL 2005 and retrive its data in to sharepoint  with the help of Database connection option through Sharepoint Designer. When configuring the connection i have selected a custom quer with stored procedure option and from the dropdown option selected the insert stored procedure everything is ok.

Stored Procedure
CREATE PROCEDURE ChangeTable_insert

 @PROJECT varchar(50) ,

INSERT INTO [dbo].[ChangeTable]





i have created new aspx page in Sharepoint Designer from the datasource details-->Insert selected fields as-->selected new item form and saved this page.
When i opened this page in to browser and try to save data it gives an below error
Go back to site 
Error: "The data source control failed to execute the insert command.
 Troubleshoot issues with Windows SharePoint Services."

please help me. i have to save data to sql database through sharepoint

thanks in advance

Can I use a DetailsView control to insert and update with RIA services?



I'm struggling with trying to use RIA services from an ASP.NET web site.

I created a new web site, added an entity framework model, then added a RIA service that uses that model. I used the DomainDataSource control to bind the ASP.NET controls to the RIA service.

I have a GridView that shows items from the database (via RIA and the entity framework model underneath it), and can see the items fine. I added a DetailsView as a pop-up, as shown in http://mattberseth.com/blog/2007/07/modalpopupextender_example_for.html and http://mattberseth.com/blog/2008/04/masterdetail_with_the_gridview.html. When I click the "edit" link in a row in the GridView, the DetailsView shows with the right data, but clicking the "save" link doesn't actually update the database.

Furthermore, I can't work out how to add new items this way, as when I try and use the DetailsView to add a new item, nothing is sent to the database.

Anyone any ideas how this can be done?


HELP *#&$ing piece of #@% Popup control placment


I'm making a custom control that is a numeric keypad. You can hook it to a text box and when the text box gets focus it will pop up the keypad window for data entry, additionaly it checks the validation errors for the host control and if any, it will display them in a popup. The keypad window work fine, it's the validation error popup that killing me. My problem is this: First in order to get the Popup to display in the corect Zorder(to be top most) I had to set an event handler on the popup's Opened event and in that event I had to toggle it's parent window's TopMost property from true to false.(I'm totaly baffled by this). This all works if I bring the keypad window to life with it's Show() method, this is not what I want because of the modless behaviour. Instead I want to bring the keypad to life with it's ShowDialog() method, but if I do the popup for the validation error info stops calling the CustomPopupPlacment delegate assigned to it, and no longer positions correctly. Can any one help? I don't see a way to attach the source code so I'll post it here: http://www.griffinautomation.com/GriffinWeb/Portals/0/datasheets/KeyPadTest.zip 

This is a test app for the keypad eventually I will use it for a program that controls a machine we build tha

Open Popup using Hyperlink Control

How to open a pop up window by clicking Hyperlink control in asp.net?
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