MSChart inside a usercontrol - asp.net

Can you use the new Microsoft Chart Control for .NET Framework inside a usercontrol? Bacause when i take a working chart from my page and then copy it to a usercontrol the picture is blank very weird. Is there something wrong in my chart settings?

Yes. I am currently using the MS Chart Control within user controls (.ascx) in my application.
I suspect you will need to debug your page + control to see exactly why it is not working as expected.
But i would assure you that there are no inherent issues with having a chart control within a user control.

Related

DotNetNuke 7 - Edit page menu not working when adding ajax control to module

I am creating a simple DotNetNuke module and every time I add a control that contains ajax it somehow interferes with the edit page menu. The control in question is one from Syncfusion and it is the numeric textbox.
The page and the menu functionality works well as long as I use the standard Microsoft user controls. For example if I change the ajax numeric textbox for the asp.net or the html one then it works well. As soon as I add the ajax textbox then the edit page menu does not work.
Has anyone else experienced this issue?
Additional information: The Syncfusion control does not require any specific jQuery version.
There is no error logged on the DNN event viewer. I have been trying with FireBug to follow the tracks but it reveals nothing.
I have attached the screenshot to help visualize the issue.
This happens because of jQuery conflicts. The syncfusion controls load their own jQuery library. To avoid issues within your module add a key to the appSettings section of the DNN web config file:
"SFjQueryLoad" value="false"
This will cause the control to use only the jQuery library provided by your DNN website.

Dynamically loading asp.net controls with javascript

I am developing a series of ASP.NET controls that allow for a dynamically created sites where the layout gets generated from a class.cs file, the controls then get Loaded into an Placeholder in an update panel.
what I am hoping to achieve is using stuff like ajax to build the screen with javascript.
can you guys maybe point me in the right direction,
my google is not helping today.
I want to use stuff like ajax, json
thanks in advance
Javascript is a client-side scripting language and cannot be used to trigger loading of server-side controls.
You can use ASP.NET elements like etc., which have runat=server to trigger server side code, though.
Through AJAX? Not possible without page reload.

Update data in a WebForm

I'm new in developing ASP.NET WebForms application. I have an application that works on WinForms.
My main WinForm contains a control that after establishing a connection to a remote server, it receives values to visualise in the property Text of some labels in the Form. This control works in the same way in Running Mode and in Design mode as well (I'm using VS2010).
I need to have the same control that works in WebForms. I re-writed the control for working in WebForms. I obtained the same behaviour that I had in WinForms but I'm not able to update/refresh the labels with new data on display. Where am I doing wrong? Why can't I see the changes on the display in both cases?
Any help will be welcome, thank you in advance.
im not clear, which control you bind with, for example if you bind it with gridview you need to call DataBind() method after add/edit, or redirect page to load with fresh data

How do I build a popup dialog in asp.net

I am building a Web Application using asp.net (C#). I come from windows forms development and find myself in a hard spot. Im making an application where the user should edit some simple information about himself, and thus i need to create a new dialog. How do I do that in asp.net? I have a button which event is handled serverside, and when i click lthis button i want to popup a dialog where i can show my custom web control (or any web control, lets make it generic from the start). How do I go about with doing so?
I got some part of the way by looking at the internet, that i need to make a section and set the z-index to 1000, but how do i make it visible (block)? Please help here as i am completely lost...
/H4mm3rHead
If you're not concerned about using a library, try Microsoft ASP.NET AJAX Control Toolkit, they have several controls that can create something you want (the ModalPopup control).
The AJAX Control Toolkit has a ConfirmButton extender which will do exactly what you are looking for.
I used to do the following:
1. my new pop up is just a new aspx page like any other page
2. add a button (or just a link) that fires a client side java script function
3. in the function I use window.open and put params to open my popup page with no toolbars or scrollbars and proper size to its content
check this for more info on #3

How do you graph with Silverlight inside a ASP.NET v3.5 application?

I have the need to do some graphing (bar, chart, pie, trend) and instead of using Infragistics or manually drawing the graphs I want to use Silverlight.
My current ASP.NET application was upgraded to 3.5 and I have added a Silverlight Application project. Consuming the output inside of the existing master.page layout or inside of user controls does not seem to be as intuitive as I was hoping for.
Nor is the ability to create a graph from a generics listing of data even a control (like I have seen in several demonstrations at PDC08).
Any ideas?
I would suggest starting with the Silverligt toolkit (released at PDC) which includes a Silverlight chart control. There is an overview of how to use this control post here.
The important difference between Silverlight charting and ASP.Net forum based charting (using a third party control) is that the Silverlight chart will execute on the client while the asp.net chart would execute on the server. So if you want to use this type of control you will need to expose your chart data as a service.
Another option to do Silverlight charting but have your code execute on the client side is to build your Xaml using ASP.Net. In this case you would create your chart Xaml using ASP.Net which instead of generating HTML output would generate Xaml output.
If you want an example let me know...

Resources