ラベル working の投稿を表示しています。 すべての投稿を表示
ラベル working の投稿を表示しています。 すべての投稿を表示

2012年3月28日水曜日

Re-Setting an Object to its original position using Animation Extender

Hi

I have been working on a nice ajax menu using the Animation Extender. Basically, i have a series of GIF's. When the mouse hovers over a gif, the gif moves 6px to the right. When the mouse hovers out, the gif moves 6px to the left.

Everything works well, if you let the whole animation run through. But if you where to move your mouse off and on the gif a few times in a short period, the gif would actually lose its original position and end up either further left or further right to where it should.

I spose what I am trying to get at is, is it possible to reset an objects original position?

Here is a sample of my extender:

<cc1:AnimationExtender ID="AnimationExtender3" runat="server" TargetControlID="btnPro">
<Animations>
<OnHoverOver>
<Move duration=".03" fps="50" horizontal="6" unit="px"/>
</OnHoverOver>
<OnHoverOut>
<Move duration=".03" fps="50" horizontal="-6" unit="px"/>
</OnHoverOut>
</Animations>
</cc1:AnimationExtender>

Thanks for your help in advance.

Hugh

Would any one have an easier way of doing this?

Thanks

Hugh


HI ,

try this link :

Scripting Animations from the Ms Ajax AnimationExtender

Hope this heps


Thanks for the link.

This would be perfect for wat i am trying to do. Problem is i cant seem to get it to work on a hover over event, instead of a click event.

Any ideas?

Thanks

Hugh

Response.Redirect

I have a button on updatePanel, wich has event handler and Response.Redirect in it.

It's not working.

Haw can i resolve this problem.

Thansk

Deykin:

I have a button on updatePanel, wich has event handler and Response.Redirect in it.

It's not working.

Haw can i resolve this problem.

Thansk

Updatepanel and response.redirect don't work together and they shouldn't either. If you are going to redirect the page to some where else then why even bother to use updatepanel on it for. Updatepanel's purpose is to do partial postback on the same page. Hope that helps.


Actually, Response.Redirect() is supposed to work just fine during async postbacks.

Make sure that you have the ScriptModule registered in your application's web.config file. If it's not, check out the web.config that got installled to your Program Files ASP.NET AJAX folder to see what it should look like.

Thanks,

Eilon


As I recall, someone had the same problem a while ago. It never worked unless ajax implemented it in its lastest version.

Hi

instead of using Response.Redirect try this:

ScriptManager.RegisterClientScriptBlock( lbEditDocument,typeof(LinkButton ),"TestBlock","window.open('"+ redirectUrl +"', '_top');",true );

HTH


I'm with Luis on this one. Response.Redirect has been working fine for me with the RC, and if there's some bug, I'd love to find out before RTM gets out the door.

We could use some more info here, like what exactly is happening when the button is clicked. (I guess it's not doing the redirect, but is it refreshing the page? Is it doing an async postback? What does the traffic look like when you use Fiddler or Nikhil's Web Development Helper?)

2012年3月26日月曜日

Response.Redirect not working in RC version

I am trying to use Response.Redirect in the RC version of AJAX but it is returning an error. I have found a similar post to this issue and it discusses Beta2 vs RC references. I have ensured that all of my references are pointing to the System.Web.Extensions for the RC release yet the problem still exists.

Any ideas as to how I can fix this issue? Sorry if this is repeated, I just didn't find a clear response in the other posts.

But, what's the error? Can you post it?

The error is:

Sys.WebForms.PageRequestManagerParserException: The message received from the server could not be parsed... Error parsing near '<!DOCTYPE html PUB'

My code basically performs a Response.Redirect to another page in the site when a certain condition is met. I am using the AJAX Update Panel and various button control triggers that are all working fine.


You can't place Redirect in partial postback.

PageRequestManagerParserException waits for data from UpdatePanels (for example in JSON format, but I'm not sure), but you Redirect gives another data. In you case it like that redirect doing at server and PageRequestManagerParserException gets new page.

You must do redirect with some javascripts.

You have 2 ways:

1) use my evalscripts.js (it extends UpdatePanels, that it can evaluate javascripts, so you can put window.open('xxxyyy.aspx','_top') in some Literal in Label, and it works)

2) use ScriptManager.RegisterClientScript static method. On this forum is very many messages about it. Try to search. (and yes, you also do it throught javascript's window.open)

And of course try to read documentation. Maybe something changed in RC1 and there are some new methods for redirect. I don't know.


Something at you end is not set up well. Check this to make sure everything checks uphttp://ajax.alpascual.com/Walkthrough/AtlasToAspNetAjax.aspx

jriell:

Thanks for the feedback. Where can I obtain your evalscripts.js?

You can download all this from http://ajax.asp.net


Thanks for the feedback. Where can I obtain your evalscripts.js?

Thank You.

As a followup on the problem I had. I did omit something from the web.config of my site. After adding this element to the web.config, the Response.Redirect code that I have started working. It seems as though this functionality does work in the RC version at least.


jriell:

Thank You.

As a followup on the problem I had. I did omit something from the web.config of my site. After adding this element to the web.config, the Response.Redirect code that I have started working. It seems as though this functionality does work in the RC version at least.

Can you say what you add to web.config? Just interesting.

ps. this is work in RC1 ?


albertpascual:

jriell:

Thanks for the feedback. Where can I obtain your evalscripts.js?

You can download all this from http://ajax.asp.net

this is my own script, and there are now way to obtain it from ajax.asp.net , it can be found athttp://forums.asp.net/thread/1465522.aspx

Response.Redirect not working while inside an Update Panel

I have a link button inside an update panel. When the user clicks this button, it calls a function that performs a database update and then redirects them to another page. However, Response.Redirect isn't working with AJAX. Any suggestions how I can do this? Thanks!Can you post your code here?

Hi,

Reponse.Redirect works with UpdatePanel. Please refer to this sample:

<%@. Page Language="C#" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><script runat="server"> protected void Button1_Click(object sender, EventArgs e) { Response.Redirect("http://www.microsoft.com"); }</script><html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server"> <title>Untitled Page</title></head><body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> </div> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" /> </ContentTemplate> </asp:UpdatePanel> </form></body></html>

2012年3月24日土曜日

Returning a dataset

I am using the Atlas bits that run on the RC build. I thought that there was the capability to return a dataset. Is that working at this point? I am getting a strange error where the local WebDev.WebServer.exe is generating an error and then exiting when I attempt to call a webservice that returns a dataset. The code is pretty simple, so I have included it here just incase I am doing something stupid. I am able to step thru my code, I exit from the method, and then bang I get the error on the terminal. Thoughts? Do I need to change what I am doing? Did I just make up the thought that Datasets were working at this point?
Wally

[WebMethod]

public System.Data.DataSet ReturnDataSet()

{

DataSet ds =newDataSet();

DataTable dt =newDataTable();

DataRow dr;

dt.Columns.Add(newDataColumn("tblStateId", System.Type.GetType("System.Int32")));

dt.Columns.Add(newDataColumn("State", System.Type.GetType("System.String")));

dr = dt.NewRow();

dr["tblStateId"] = 1;

dr["State"] ="Tennessee";

dt.Rows.Add(dr);

dr = dt.NewRow();

dr["tblStateId"] = 2;

dr["State"] ="Alabama";

dt.Rows.Add(dr);

ds.Tables.Add(dt);

return (ds);

}

Interesting. This looks like a bug in Atlas. When I try your code, I get a StackOverflow exception in the serialization process.

Yes, the StackOverflow Exception is what I got also. Sorry fornot being descriptive enough last night. I was a little tired andI am getting the flu. Sad [:(]

I suspect a bug in the DataSetConverter, which is probably caused by circular references between the DataSet and its DataTables.
What you could do for now is to return a DataTable instead (and not use a DataSet at all).

publicoverridestring Serialize(object o)
{
if (!(ois DataSet))
{
thrownew ArgumentException();
}
DataSet set1= (DataSet) o;
StringBuilder builder1=new StringBuilder();
builder1.Append('[');
bool flag1=true;
IEnumerator enumerator1= set1.Tables.GetEnumerator();
try
{
while (enumerator1.MoveNext())
{
DataTable table1= (DataTable) enumerator1.Current;
if (!flag1)
{
builder1.Append(',');
}
builder1.Append(JavaScriptObjectSerializer.Serialize(set1));
flag1=false;
}
}
finally
{
IDisposable disposable1= enumerator1as IDisposable;
if (disposable1 !=null)
{
disposable1.Dispose();
}
}
builder1.Append(']');
return builder1.ToString();
}


Variable table1 wasn't used.
Serialize(set1) rises Stack Overflow exception

Returning dynamic JSON from ASP.Net

I have an ASP.Net web service that I want to return a JSON response. The method that I am working on in particular calls another web service that already gives me a JSON response. All I want to do is return that to the caller of my webservice (it will be a .htm/.js caller).

I have already found a way to make it work, but it doesn't seem optimal. If I define some local objects in my web service that look like the JSON response I get from the third party web service, I can deserialize the response into my local objects, and return the object from my web service. If I call the service from the browser with the JSON request type, I get back the correct JSON response. But in this case I have taken a JSON string, converted it to an object and back again, which seems like too much work. Plus, I'll have an extra layer of objects that have to be kept in sync with the third party response.

If I just return the JSON that I get from the third party webservice (as a string), in the browser I get a string that can't be EVAL'd into a js object. It has quotes around the whole thing and all the internal quotes are escaped, etc. It is basically just a string, not JSON.

So, the question is, how can I define a web service method that returns any JSON that can be called from a simple htm/js client and get it to return valid (ready to eval) JSON? What return type should I be using?

Backslider

ASP.NET AJAX web services only support returning objects. These objects will be serialized by the AJAX services layer. There is no returntype to hold raw JSON , and skip this serialization.

However if you return the JSON as a string, you should be able to eval the response once to get the string response from thirdparty webservice(If you use a proxy generated by ASP.NET AJAX it would returned an already eval'ed response). Once you get the string, you should be able to eval it again to get the actual js object.


Have you tried letting your server convert it into a .Net object?

RightClick Menu

Dear Team

I am using ASP.NET2.0, C#, JavaScript, AJAX

I want to make a right click menu working on GridView, with some items inside the meun, and when I press on it I can handle it from Javascript or from server side and I can fill this menu from Server side if it is possible.

So how can I do that?

Thank you.

dear Team
i did use the control found in this site:http://msdn.microsoft.com/msdnmag/issues/05/02/CuttingEdge/

i am working with ASP.NET2.0, C#, AJAX, JAVASCRIPT.

if you please i want to know the following:
1 - why dose the context menu postback, i mean if i want only to use it in the client side, is there a way for it.
2 - i am using the context menu with a gridview so i want to know the current row index, from javascript and if possible from C# too.
3 - i want to know what i clicked on the menu from Javascript.

please advise me what to do.
i am stuck in this problem for 1 week now and i didnt find any solution.
i want you to know that i download the control and i use it sand it is working for me but i want to know these point that will solve my whole problem.

thank you so much in advance.
this is my Email:
zonzone@.hotmail.com

Rollovers with update panel not working?

Hello all,

I got a master page which containsjavascript generated by imageready for the rollover effect. I have acontent page which contains textbox, image button, updatepanel (Atlas)with Partial Rendering=True and gridview. Everything works fine in thebeginning. But once I sort, filter the grid view, the grid viewchanges as it should but now my rollovers don't work. I seems that thefunction that the onmouseover is not firing. I can still mess with thegridview that works fine. Oh yea the image button also has rolloverstate, that works but that is not calling the imageready function. Ithas inline javascript onmouserover="this.src='imgOver.gif';". I'malittle confused why the functions are not firing after the callback. Any ideas will be appreciated.

Thank YouPhotoshop's generated javascript uses a global boolean variable calledpreloadFlag. It sets this value to false globally, so I guess when a call back happens this line was being executed and sset back to false from being true. So none of the rollovers worked. I set it to true and the roll overs worked.

Hi boricua,

Here's a procedure you can adapt to your needs. Just call it for each ImageButton from the Page_Load. I've only tested this on IE 6, so let me know if it gives you any trouble.

ProtectedSub Page_Load(ByVal senderAsObject,ByVal eAs System.EventArgs)HandlesMe.LoadIfNot (Page.IsPostBack)Then

rollover3State(imgArrowLeft,

"ArrowLeft")
rollover3State(imgArrowRight,"ArrowRight")EndIfEndSubProtectedSub rollover3State(ByVal btnObjectAs ImageButton,ByVal baseImageAsString)

btnObject.Attributes.Add(

"onmouseout","{this.src='" &Me.ResolveUrl("App_Themes/" &Me.StyleSheetTheme &"/images/btn_" & baseImage &"_0.gif") &"';}")

btnObject.Attributes.Add(

"onmouseover","{this.src='" &Me.ResolveUrl("App_Themes/" &Me.StyleSheetTheme &"/images/btn_" & baseImage &"_1.gif") &"';}")

btnObject.Attributes.Add(

"onmousedown","{this.src='" &Me.ResolveUrl("App_Themes/" &Me.StyleSheetTheme &"/images/btn_" & baseImage &"_2.gif") &"';}")EndSub

Yeah this works. I used this method on some pages that I manually created, but for the ones that the html was created by imageready, which creates the javascript as well I fixed with the method I described earlier thank you dbDan.

rounded corner extender not working consistantly

<formid="form1"runat="server">

<asp:PanelID="PanelTop"runat="server"BackColor="AliceBlue"Height="50px"Width="800px">

<strong><spanstyle="font-size: 16pt; color: #1e90ff">KSM Information Systems --

PC Inventory <br/>

<tablewidth="800">

<tr>

<tdstyle="width: 831px; height: 18px; text-align: center;"valign="top">

<spanstyle="font-size: 16pt; color: dodgerblue">

<asp:ButtonID="Button2"runat="server"BackColor="#507CD1"Font-Bold="True"ForeColor="White"

PostBackUrl="~/AddMultiplePCs2.aspx"Text="Enter New PC's"/></span></td>

</tr>

</table>

<br/>

</span></strong>

</asp:Panel>

<br/>

<asp:PanelID="PanelMain"runat="server"BackColor="AliceBlue"Height="12px"Width="797px">

te

<asp:ButtonID="BtnViewALLpcs"runat="server"BackColor="#507CD1"Font-Bold="True"

ForeColor="White"PostBackUrl="~/ViewAllPcs2.aspx"Text="View All PC's"BorderStyle="None"/>st<br/>

<br/>

</asp:Panel>

<br/>

<asp:PanelID="PanelMain2"runat="server"Height="50px"Width="796px"BackColor="AliceBlue">

<strong><spanstyle="font-size: 16pt; color: #1e90ff">KSM Information Systems --

PC Inventory <br/><tablewidth="800">

<tr>

<tdstyle="width: 831px; height: 18px; text-align: center;"valign="top">

<spanstyle="font-size: 16pt; color: dodgerblue">

<asp:ButtonID="Button3"runat="server"BackColor="#507CD1"Font-Bold="True"ForeColor="White"

PostBackUrl="~/AddMultiplePCs2.aspx"Text="Enter New PC's"/></span></td>

</tr>

</table><asp:ButtonID="Button1"runat="server"BackColor="#507CD1"Font-Bold="True"ForeColor="White"

PostBackUrl="~/Checkout2.aspx"Text="Checkout a PC"/></asp:Panel>

<br/>

<br/>

<br/>

<br/>

<br/>

<asp:contentplaceholderid="ContentPlaceHolder1"runat="server">

</asp:contentplaceholder>

<divstyle="font-family: 'Arial Unicode MS'; font-size: 12pt;">

<asp:ScriptManagerID="ScriptManager1"runat="server"/>

</div>

<cc1:roundedcornersextenderid="RoundedCornersExtender1"runat="server"corners="Bottom"

targetcontrolid="PanelTop"BorderColor="224, 224, 224"Radius="10"></cc1:roundedcornersextender>

<cc1:DropShadowExtenderID="DropShadowExtender1"runat="server"Radius="10"TargetControlID="BtnViewALLpcs"Opacity="6"Rounded="True">

</cc1:DropShadowExtender>

<cc1:roundedcornersextenderID="RoundedCornersExtender2"runat="server"BorderColor="224, 224, 224"Radius="10"TargetControlID="PanelMain"Corners="Bottom">

</cc1:roundedcornersextender>

<cc1:roundedcornersextenderID="RoundedCornersExtender3"runat="server"BorderColor="224, 224, 224"

Corners="Bottom"Radius="10"TargetControlID="PanelMain2">

</cc1:roundedcornersextender>

</form>

Please provide more details...What is the inconsistent behavior?

Rounded Corners - Colors for top and bottom?

I am trying to use rounded corners control, and its working fine, but I need to see if its possible to have the top of the control a differant color than the bottom?

is there a way to tell each corner to be a differant color? How about the bottom corners to be a smaller/larger size than the top?

Any advice would be helpful

Thanks

-Shane

You'd need to modify the implementation of RoundedCorners to get either of these features. If you do so and others find the changes desirable, we'd be happy to integrate them into the Toolkit!

2012年3月21日水曜日

Rounded Corners not working with a collapsible panel

Is there a trick to getting the rounded corners extender to work on a panel which is also being extended by the collapsible panel extender? I have set "Track Position" to True, but it does not seem to track the panel properly when it is expanded. The same is true of the Drop Shadow extender. If I turn off the corner rounding, the drop shadow works fine, but when I enable it, the results are unpredictable. I belive this is a bug in the rounded corners extender, but I don't know for sure. I don't really know enough about these controls to fix them - can anybody offer a suggestion?

Jon

I would agree that the ajax rounded corners extenders are at least buggy, if not down right a big waste of time. They make gridviews invisible, work inconsistantly, and if you put a gridview in a panel it is also useless.

I give up. I will format the rounded corners the old fashioned way. No


Well, apparently this wasn't fixed by v.10606, as I'm experiencing some very odd behavior with the rounded corners extender used in conjunction with the collapsible panel extender.

I have a collapsible panel extender on a content panel and the header panel has a rounded corners extender. At run time the page loads with the header corners rounded and the content panel is collapsed as it should be. When I click on the header panel to expand the content panel, it expands properly. But when I click on the header again to collapse the content panel, it (the content panel) closes and thenreopens immediately. The text set for the collapsed state of the content panel doesn't show when it closes momentarily, either.

Simply commenting out the rounded corners extender returns the collapsible panel to its normal behavior.

I'm wondering if it has anything to do with some height settings I have set for the panels - could there be a conflict with some inherent size value for the panels between the rounded corners and collapsible panels extenders?

Anyone else run into this and/or a fix?

Thanks!

RoundedCorners not working correctly in IE7.0 Beta

RoundedCorners not working correctly in IE7.0 Beta - The corners are not working as in IE6.0 - In IE7 the cormers appear in the wrong location - it seems the width is not being interpreted correctly i.e. to small

We're using IE7 internally and have tested in IE6, IE7, FireFox, and Safari. Can you post a repro of what you're seeing?
The simplist way to show you what is happening is to send you an image - the forum doesn't seem to allow images, so is there an email address I could send it to?
Yes but the image won't help us repro/debug it. The best thing is to just paste in your HTML from your ASPX page.

I think I understand the problem now it a problem if the panel has say a table inside itself and the contents get bigger than the original size of the panel - The coners get left behind and the corners do not update to suit this new expand size.

RoundedCornersExtender is NOT working!

hi, For some reason, this code is no working for me:

private showImage(ArticleImage ai) {

Image i=new Image();

i.Id="pppp";

i.ImageUrl=ai.url;

MainPanel.Controls.add(i);

RoundedCornersExtender rce=new RoundedCornersExtender();

rce.id="bleble"+ai.id;

rce.TargetId=i.Id;

rce.Radius=6;

}

what I get is the image without rounded corners. why is it happens?

naor:

what I get is the image without rounded corners. why is it happens?

Hi naor,

I believe the extender is to be used with a panel.


Hi Jason, When I put the Image in a Panel, the effect was the same.

I get the Image without rounded corners.

how can I display the image with rounded corners?

can anyone give me a working example?

tnx


Here is a sample, please try it:

<%@. Page Language="C#" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><script runat="server"> protected void Page_Load(object sender, EventArgs e) { Image i = new Image(); Panel pl = new Panel(); PlaceHolder1.Controls.Add(pl); pl.Controls.Add(i); pl.BorderColor = System.Drawing.Color.Blue; pl.BackColor = System.Drawing.Color.Blue; pl.ID = "pnl"; i.ID = "pppp"; i.ImageUrl = "images/add.gif"; AjaxControlToolkit.RoundedCornersExtender rce = new AjaxControlToolkit.RoundedCornersExtender(); PlaceHolder1.Controls.Add(rce); rce.ID = "bleble"; rce.TargetControlID = pl.ID; rce.Radius = 6; }</script><html xmlns="http://www.w3.org/1999/xhtml" ><head id="Head1" runat="server"> <title>Untitled Page</title></head><body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder> </div> </form></body></html>

Hi,

I've tried what you wrote for me. I use a but different code:

1"C#" %>23"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">45<script runat="server">67 protected void Page_Load(object sender, EventArgs e)8 {9 Image i = new Image();10 Panel pl = new Panel();11 PlaceHolder1.Controls.Add(pl);12 pl.Controls.Add(i); pl.BorderColor = System.Drawing.Color.Blue;13 pl.BackColor = System.Drawing.Color.Blue;14 pl.ID = "pnl";15 i.ID = "pppp";16 i.ImageUrl = "../images/1/1.jpg";1718 i.Height = 200;19 i.Width = 200;2021 pl.Height = 200;22 pl.Width = 200;232425 AjaxControlToolkit.RoundedCornersExtender rce = new AjaxControlToolkit.RoundedCornersExtender();26 PlaceHolder1.Controls.Add(rce);27 rce.ID = "bleble";2829 rce.TargetControlID = pl.ID;3031 rce.Radius = 6;32 }33</script>3435<html xmlns="http://www.w3.org/1999/xhtml" >36"Head1" runat="server">37383940 "form1" runat="server">41

42 "ScriptManager1" runat="server">4344 "PlaceHolder1" runat="server">45

464748

The result I got is the image inside a panel, with two blue thin rounded corners rectangles on the top of the image and on the bottom of it.

It didn't make rounded corner image. What is the problem of it?


I post my last post with errors, the changged were only on the script - and the script posted ok. the rst HTML is the same as you wrote.

RoundedCornersExtender NOT working with Login control

When the page renders the login control exists for a brief millisecond and then it's gone. Any ideas? Does this extender just not work woth the Login control?

<cc1:RoundedCornersExtender ID="RoundedCornersExtender1" BehaviorID="RoundedCornersBehaviorExtender1" runat="server" TargetControlID="CarrierLogin" Radius="6" Corners="All" />

Hi,

I think it has something to do with the login control is rendered in a table. You can put the login control in a panel and use the panel as the target control .

Hope this helps.


Post deleted.


Ummm, sort of. But what I would like is for the rounded corners to look like this: https://login.yahoo.com/config/login?.src=fpctx&.done=http://www.yahoo.com

Can this be achieved with the RoundedCornersExtender?

Robert W.


Hello,

I saw it the other day and was able to reproduce the effect after putting the Login Control in a Panel and Rouding the Panel corners. it works pretty good and cost ... only a panel .


I sense we're perhaps talking about two different things. What I want is a white or light coloured background and a thin black line as a border. Then I want the RoundedCornersExtender to round that. I cannot get this to work. Could you point me to some sample code?

Robert


well , if we are talking about the same login page on yahoo, here is my code.

<%@. Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>Untitled Page</title></head><body> <form id="form1" runat="server"> <asp:ScriptManager runat="server" ID="ScriptmanagerTest"> </asp:ScriptManager> <div style="padding: 20px; text-align: center"> <asp:Panel runat="server" ID="PanelTest" BackColor="#f5f7f7" Width="300px"> <asp:Login runat="server" ID="roundedLogIn"> </asp:Login> </asp:Panel> <cc1:RoundedCornersExtender ID="RoundedCornersExtender1" runat="server" TargetControlID="PanelTest" BorderColor="black" Radius="4"> </cc1:RoundedCornersExtender> </div> </form></body></html>

Hmmm, I'm not sure what I did wrong but your way works perfectly. Thank you!!!

Robert


Glad i could help!

RoundedCornersExtender not working

I drag an ObjectDataSource and a GridView on a page. The DataSource of my GridView is ObjectDataSource. I rhen drag a RoundedCornersExtender and configure it like such:

<cc1:RoundedCornersExtender ID="RoundedCornersExtender1" runat="server">
<cc1:RoundedCornersProperties Radius=6 TargetControlID="GridView1" />
</cc1:RoundedCornersExtender
When I run the page, the GridView briefly appears (for a split second) before disappearing.

The problem is that RoundedCorners expects to be pointed at a DIV container (asp:Panel) instead of arbitrary elements (in this case a TABLE). If you wrap the GridView with a Panel, it should work fine. Here's a sample:

<%@. Page Language="C#" %><%@. Register Assembly="AtlasControlToolkit" Namespace="AtlasControlToolkit" TagPrefix="atlasToolkit" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><script runat="server"> protected override void OnLoad(EventArgs e) { base.OnLoad(e); GridView1.DataSource = "this is a test".Split(' '); GridView1.DataBind(); }</script><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>Untitled Page</title></head><body> <form id="form1" runat="server"> <div> <atlas:ScriptManager ID="SM" runat="server"> </atlas:ScriptManager> <asp:Panel ID="P" runat="server" Style="background-color: Lime; position:absolute;"> <asp:GridView ID="GridView1" runat="server"> </asp:GridView> </asp:Panel> <atlasToolkit:RoundedCornersExtender ID="RCE" runat="server"> <atlasToolkit:RoundedCornersProperties TargetControlID="P" Radius="6" /> </atlasToolkit:RoundedCornersExtender> </div> </form></body></html>

Not working also. Here is my code:

<asp:PanelID="Panel1"runat="server"Width="1000px"CssClass="roundedPanel">

(...)

</asp:Panel>

<cc2:RoundedCornersExtenderID="RoundedCornersExtender1"runat="server"

TargetControlID="Panel1"

Corners="All"

Radius="6"/>

Here is my CSS class:

.roundedPanel

{

width:300px;

height:300px;

background-color:#ffffff;

color:black;

font-weight:bold;

}

The borders on the left am right sides doesn't render.


My issue is solve. I was missing a very important property in the extender:

BorderColor="Black"