How to create a mobile version of an ASP.NET web site? - asp.net

I have a website created using asp and I want to make it accessible to mobile phones, such that a user can use it through his/her cell phone.
I don't have any knowledge of XML or .NET.
How can I do this?

ASP.NET Mobile Web Pages says
"The Microsoft Visual Studio integrated
development environment (IDE) enables
you to easily build ASP.NET
applications that include mobile Web
pages. You can include mobile Web
pages in any ASP.NET Web site
alongside ASP.NET Web pages. In Visual
Studio, you can work with the adaptive
rendering, customization, and
extensibility features of ASP.NET
mobile controls, using the standard
IDE design tools: the page designer,
the Toolbox, the debugger, Source
view, Design view, and more."
Getting Started with ASP.NET Mobile Pages
Some other useful tutorials:
Mobile Web Development with ASP.NET 2.0
Building Mobile Web Applications with .NET Mobile Web SDK & ASP.NET
Introduction to ASP.NET Mobile

Back in the day you would have needed XML to create WAP sites, but no more. Almost all smartphones have reasonably good built in HTML browsers, with standards compliant support for JavaScript and CSS.
I would suggest making a start here:
http://www.asp.net/mobile/

Related

Visual Studio 2022 Enable Web Live Preview

I wanted to try developing a website in VS but I'd really like a visual (WYSIWYG) editor. Apparently, this is available in VS. In that video, and lots of other videos and websites, it shows 'Design' and 'Split' buttons on the window, which should show a live view of the web page that's open. It seems this is supposed to work with both .aspx and .cshtml files.
However, nowhere can I find how to enable this, and I've done a lot of searching. I've even uninstalled and reinstalled VS. There are no options, settings or menu options to enable it. I'm using VS 2022 Community, fully up to date, in an ASP.NET Core Web App project using .NET 7.0.
Does anyone know what's wrong? I wondered if it was only available in VS Professional/Enterprise, but seemed silly to me.
that feature in the brand new vs2022 is for ONLY .net framework, and ONLY for web forms.
So, if you using MVC, then you don't have a forms designer.
And if you using .net core, then you can't use this feature either.
So, when you create a project, it MUST be .net framework (not .net core), and it MUST be a webforms project, and NOT MVC projects.
So, that would be say this (for c#).
And (best choice) would of course be this template:
And if using vb.net, then again, same thing:
So, web projects, and .net framework - NOT .net core projects.
thus:
So, out of those templates, then again, of course a asp.net web application would be the preferred choice.
so, for example, here is a gridview in "live" preview, and yes you can edit or drag + drop controls into that live preview.
it looks like this (split screen for example).
but, if I run the page, same in a chrome based browser (Edge, or chrome).
Then I see this:
Since the new designer is based on the chrome engine then as above shows, yes, it is rather cool.
Here is that web page, not split view in the designer:
(so I have NOT yet hit f5 to run, but only am in design mode)
so, in old legacy designer, I would see/get this:
So, note how do you DO NOT see say for example the bootstrap menu bar.
But, if I turn on live preview, and now I see/get this:
Note how we now even see the bootstrap menu bar in the preview - I have not yet hit f5 to run in browser. And on the bottom, you see a "bread-crumb hierarchy" as to what element you clicked on (very much like f12 debug tools in a browser, and then using "elements" selection).
You can find it by creating an asp.net web (.Net Framework) and selecting Web Form in it.
I use vs2022 17.4.2 community version
You can also view its settings in the tool.

Asp.Net MVC 4 with Blend for Visual Studio 2012?

I haven't seen so far, but can you use Blend to create (shared) layouts in asp.net mvc 4?
Unfortunately the only HTML you can do in Blend is for building Windows Store apps. Though HTML is HTML in whatever context you use it and it should be theoretically possible to design an HTML site in Blend, it's not build for that. ASP.Net can't be used.
I admit Blend would be an awesome tool for designing regular web applications. and I personally hope there will be support for that in the future.

integrate WPF with ASP.NET

Is it possible i can use WPF in ASP.NET application. if so, how can i create an ASP.NET web site with WPF.
Thisng is, i have created a website through visual studio. Then i was trying to add a web page as WPF. But i couldnt. I am very new to WPF. Please help me. Is it WPF is only for winform application? We could not add WPF in web forms?
Regards
WPF (Windows Presentation Framework) is primarily a desktop technology. It is possible to embed a WPF application inside a web page as a XBAP (XAML Based APlication) but that is different than creating pages with WPF.
Silverlight is the framework to chose if you want to build a Rich Internet Application. Is has better integration with the pages that it is embedded on as well as any Javascript on that page.
Both WPF and Silverlight use XAML and a common set of controls so Silverlight should be somewhat familiar.
WPF can be placed inside an ASP.NET page (or any other web technology) with the browser's WPF Plugin (or ActiveX for Internet Explorer), called XBAP.
But WPF is a large set of components and need the .NET Framework installed on the user machine to work. In other words, the plugin just place the WPF content on that position and calls the .NET Framework to load there.
The closest approach is to use Silverlight, wich is a small subset of WPF components, fully based on browser's plugin (like Flash does). It has less "things" than the full WPF API, but is very good for most uses.
Resuming, Silverlight needs the plugin installed on the users' browser (like Flash needs). And WPF needs both the plugin and also the .NET Framework installed on the users' machine.
Worth mentioning that silverlight RIA will run in IE and firefox (safari etc) on a Windows box and in linux with Moonlight if its compiled to Silverlight 2.0 or earlier (but not yet if its compiled to Silverlight 3 or later).
WPF XBAPS will only run in IE on Windows box.

How to develop asp.net mobile application?

how to develop asp.net mobile application? what steps I have to be follow from the beginning. Is there any template provided by Microsoft for visual studio 2008 ? I want to develop this using c# + asp.net in mobile environment.
I think you should look Mobile Web App toolkit. If you use MVC you can make 1 project. I recommend you donĀ“t use mobile controls, they are deprecated.

Drap and Drop in Eclipse for Web Projects

Is there an equivalent drag and drop style for Eclipse (or any IDE in Java) for J2EE or JSP that is similar to the IDE feel of ASP.NET in Visual Studio? ASP.NET allows you to drag and drop controls to a web form or web page.
Netbeans IDE is the answer of your question. You can design your JSP pages like you are designing Asp.NET pages in Visual Studio. Here is the link of this feature of Netbeans.
Netbeans Visual Web Design http://www.netbeans.org/images/v6/5/screenshots/visual-web-jsp.png
I don't know Visual Studio's capabilities, but Eclipse of course offers visual editors in form of a plugin. Here's an example of a JSP editor (http://www.myeclipseide.com/module-htmlpages-display-pid-12.html). There are also editors for Swing GUIs etc. Just Google for "visual editor/designer eclipse jsp".
I had this same question this morning, so I downloaded Eclipse and tried to figure it out (I typically use Visual Studio). Here it is, but it is apparently not nearly as capable as Visual Studio Design View. Create an HTML file, and then right click on the file and select Web Page Editor.
I learned about it from here, it was difficult to find. http://dev.eclipse.org/newslists/news.eclipse.webtools/msg13837.html
I would love to see a comparison between VS Design View and Eclipse Web Page Editor; seems like building UIs for the Internet still (after many many years) a mess.
Screen Shot of Eclipse Web Page Editor
Eclipse Web Page Editor http://www.petegordon.com/eclipse_web_page_editor.jpg
Visual Web Pack - http://netbeans.org/community/magazine/html/03/visualwebdev/ , which provides you with all the resources you need to create a proper page with customizable designed.
You put no restrictions on your IDE, so I can safely say that it is for NetBeans (only build 5.5, however). It is a discontinued project, but whatever is already made, is made to last a while. Strongly suggest.

Resources