How To Create Cross Browser Asp.net Custom Control - c#

I'm goingto create an asp.net control which should be cross browser. and support some skin - multilanguage and rtl & ltr support.
I want to know what should I consider and also looking for a good article

Write valid xhtml.
Read this article on How to make Cross Browser Websites. It doesn't really have to do with if you use asp.net or php to create re-usable web-controls / sites. You just need to follow the standards and maybe apply some hacks if you want to support older versions of web-browsers.

Have a look at this series: Building ASP.NET User and Server Controls

Cross browser designs generally depends on what kinda design features you want to support, best thing to get started with is learning asp.net control adapters, It's basically bunch of ready made samples that shows how to detect browser early in the execution of the request and reflect to the design using in-built actions provided by asp.net technology, or write your own!
Hope this helps

Related

How to create a Custom Form in CRM without HTML5, Silverlight or the built-in form editor

I've been searching for this answer for a while, and it lead me to Silverlight , but Microsoft says it's there for backwards compatibility, and recommends using the Web technologies as a resource you can use in the built-in form editor that comes within the Dynamics CRM Web Application.
Is it possible to embed a custom form of some kind into the CRM for more complex bussiness logic other than creating a HTML5 /Javascript page with calls to the REST services.... or programming a XAP file with C# in Silverlight which is going on the path of deprecation ?
I'm using MS Dynamics CRM 2013 on-premises.
Has anyone achieved this by using any other tools or frameworks ?
Is there a Solution (like the Ribbon Workbench) that will allow us to do this ?
One thing that I've seen is the use of iframes or url links that point to ASP.NET MVC, Web Forms, or any other server-side web technology. The drawbacks of this approach are that you have to maintain that set of code outside of CRM, and you cannot include that functionality in a CRM solution directly.
I agree with not using Silverlight due to the fact it doesn't work in all browsers, but I have had a lot of success doing HTML5/JavaScript pages using JavaScript frameworks like AngularJS with help from CSS frameworks like Bootstrap. This way, you can bundle up all your functionality into a CRM solution, and properly manage deployment to other environments with relative ease.
Hopefully this helps.

How do I build a mobile(tablet) friendly version of my website?

I created website and it uses fluid layout CSS for most of the parts. I now want to make a tablet friendly look of this website.
This website should be viewable properly on Ipad. That's my only requirement.
How can I do this? Which are the development tools to speed me up for this?
Edit: Many people are give suggestion to use Jquery Mobile. Can I use that with my existing Asp.Net website? Do I need to change my whole existing CSS and also am I restricted to use those Jquery UI buttons only?
2nd and most important question is will this work with Asp.Net Vanilla. Say if I have a gridview on my page. Will Jquery mobile work?
For device friendly website, you should use Asp.net MVC4 and jQuery Mobile. It has great mobile features
First you should read Using HTML5 to Create Mobile Experiences and 50 Responsive web examples
Use the CSS Media Queries. And here is a useful article about ASP.NET MVC4 mobile features.
You can also look into responsive CSS. It uses device width and image scaling and good CSS definitions to scale the site to the device.
You can also use a framework for your responsive design.
e.g. framelessgrid

Best way to implement a multilingual application in silverlight and WPF

I have always been interested in how should I implement a multilingual applications and what or which way I should go to deal with this and also what's the best way to control the layouts in application scope? I've read many articles but the more read, the more confused I get. I want to know Is there any standard pattern to implement application such as this.
Any advice will be helpful.
I have found Location using MarkupExtension the best way to do localization in WPF and I also have successfully used it in one of my WPF projects.
It allows you to change the language of whole application at run-time. You can allow user to select and change language at run-time without requiring user to restart the app.
I'm currently developing a multilingual application, these links helped me a lot:
WPF Globalization and Localization Overview
WPF Localization Guidance
IMO working with BAML is very painful instead I'm using WPF localization extension now, It's very good library and very easy to use.

Can i use javascript in C#.Net Windows Form?

I want to know if I can use JavaScript in C#.Net Windows Form. If it can be used, how can I use that JavaScript.
You might want to check out Javascript.NET.
However, please make sure you are not trying to use javascript to solve a task much more easily solved with a more mainstream parts of the framework/c# language.
No, javascript is a client scripting engine based on the Document Object Model (DOM) elements within a browser.
You list c# against this post, I'd suggest that you should invest some time learning LINQ for .net as this provides a DOM like query syntax for your windows forms. In fact, you can then query any .Net classes / objects.
Here's a link to the LINQ 101 examples;
http://msdn.microsoft.com/en-us/vcsharp/aa336746
No. JavaScript needs a runtime environment. Such a runtime environment is present in browser, but not in Windows Forms.
In Windows Forms, you can use all the features of C# or any other programming language on the .NET platform. Hence, there is no need for a cross-browser, cross-platform language like JavaScript.
If you have an existing web application which have some functionality you would like to reuse, you could show it in browser frame within your Windows Forms application.
Not directly, but you can write/use an existing framework that handles this for you, and write some bindings to your UI or something. I've used http://jurassic.codeplex.com/ in the past, and its proven very efficient.
I found this helpful:
object result = this.Browser.InvokeScript("showOverlay", false);
For the full example:
https://weblog.west-wind.com/posts/2008/sep/27/calling-javascript-functions-in-the-web-browser-control

How to develop website for mobiles using asp.net(C#)

Is there any tool available for developing mobile websites using asp.net (C#)...
or else any other tool???
The same tools as you develop any other websites in C#: typically, Visual Studio. A mobile website only differs in presentation and in some capabilities (eg: javascript/css may be limited), but functionally it's the same as a "non-mobile" site.
There's no fundamental difference between regular cross-browser development and mobile development. You're still writing the same code, the same markup, etc. You probably need to be more aware of the limitations of the browser than usual, but that doesn't change the tooling or process.
Is there a particular problem you're having that you can't solve?
If you are going to develop a website for mobiles (as opposed to a native app), then the server side language does not matter that much. It's more a matter of the css and client-side framework (if any) you are using.
One option would be to use asp.net mvc on the server side and jQuery Mobile or http://jQtouch.com for the client side. There are also other options, but these are the best I have found for my own use.
As other people have said, if it's a website you're developing then the tools are the same as any non-mobile website.
Another option for the client side is Sencha Touch.
Take a look at Mobile Device Browser File (http://mdbf.codeplex.com/). Actually that particular project is no longer supported, but it used to work quite well. It basically automates a lot of the leg work of identifying the mobile client and rendering the right styles and script. You may be able to find something similar with a bit of searching.

Categories

Resources