?
Solved

ajax tool kit

Posted on 2007-07-23
15
Medium Priority
?
1,473 Views
Last Modified: 2010-05-18
I have installed ajax tool kit and I am trying to use modelpopup, where I need to put this sample code? When I put it it says Unrecognized tag prefix or device filter 'ajaxToolkit'.      I did created a new tab called ajax toolkit on my toolbox. Also, if I tried to drag and drop this modekpopup it does give me code like that starts with cc1

<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server"  TargetControlID="LinkButton1" PopupControlID="Panel1" backgroundcssclass="modalBackground" dropshadow="true" okcontrolid="OkButton" onokscript="onOk" cancelcontrolid="CancelButton" PopupDragHandleControlID="Panel3">
    </cc1:ModalPopupExtender>--%>


<ajaxToolkit:ModalPopupExtender ID="MPE" runat="server">
        TargetControlID="LinkButton1"
    PopupControlID="Panel1"
    BackgroundCssClass="modalBackground"
    DropShadow="true"
    OkControlID="OkButton"
    OnOkScript="onOk()"
    CancelControlID="CancelButton"
    PopupDragHandleControlID="Panel3" />
0
Comment
Question by:jaws1021
  • 9
  • 6
15 Comments
 
LVL 14

Expert Comment

by:chinu1310
ID: 19551904
Did you put Ajax.dll into bin folder and add reference ?
0
 

Author Comment

by:jaws1021
ID: 19551941
I did put this ajax.dll to bin but I guess i didn't add the reference, what I need to do for reference?
0
 
LVL 14

Expert Comment

by:chinu1310
ID: 19552052
In  the solution explorer  
right click on the porject name >
Add Reference

click on browse and browse the BIN directory of your project
Select Ajax.dll and you are ready to go.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:jaws1021
ID: 19552103
I did still same error
0
 
LVL 14

Expert Comment

by:chinu1310
ID: 19552125
0
 
LVL 14

Accepted Solution

by:
chinu1310 earned 2000 total points
ID: 19552139
One more thing.

<%@ Register
Assembly="AjaxControlToolkit"
Namespace="AjaxControlToolkit"
TagPrefix="ajaxToolkit" %> add this on the aspx page with page directives.

And make sure you have also put AjaxTollkit.dll file in the BIN folder and added reference
0
 

Author Comment

by:jaws1021
ID: 19552228
Thank you so much it worked now.. I had to change prefx to cc1 to ajaxtoolkit that's why it was complaining.
One more thing if you don't mind, I have my linkbutton inside the datagrid and I want to put modelpopextender somewhere put where so I can target to linkbutton. It doesn't like it when I put inside the datagrid, it doesn't recognize it  if I put outside the datagrid either..

Thanks
0
 
LVL 14

Expert Comment

by:chinu1310
ID: 19552260
When you put control inside another control.
You have to use the FIndControl Method.

Say if the textbox is inside the Gridview than

GridView.FindContrl("textboxcontrol id");

Hope it helps.
0
 

Author Comment

by:jaws1021
ID: 19552276
I am familiar with Findcontrol but you do that on server side right, plus I have this code should be in clientside aspx page is in it?

<ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="LinkButton1" PopupControlID="Panel1" BackgroundCssClass="modalBackground" DropShadow="true"  OkControlID="OkButton"  OnOkScript="onOk()" CancelControlID="CancelButton" PopupDragHandleControlID="Panel3">
    </ajaxToolkit:ModalPopupExtender>
0
 
LVL 14

Expert Comment

by:chinu1310
ID: 19552368
I dnt understand what you are looking for. Can you be little more specific ?
0
 

Author Comment

by:jaws1021
ID: 19552398
I have a link button inside the datagrid, when it is clicks this modelpopup will be showing it will have only one dropdown and ok button cancel button. How can I do? I thought I need to use this code above, but I don't know where to put the code inside the datagrid or outside? If it  is long thing I 'll be glad to create a new question?
0
 
LVL 14

Expert Comment

by:chinu1310
ID: 19552428
Ya.  It would be better if you open new question.
You can get various idea.
0
 
LVL 14

Expert Comment

by:chinu1310
ID: 19552441
I think you need t create dynamic object of this control.
0
 

Author Comment

by:jaws1021
ID: 19552488
Okay thanks, I will call my question name linkbutton and modelpopup if you are interested in looking into..
0
 
LVL 14

Expert Comment

by:chinu1310
ID: 19552509
Sure. Glad to help you.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses
Course of the Month15 days, 14 hours left to enroll

850 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