.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

iPhone Safari and the Viewport Tag

Posted By:      Posted Date: September 28, 2010    Points: 0   Category :ASP.Net

I'm putting this tag at the header of my HTML pages, trying to get the page to stop vertical scrolling on mobile browsers like iPhone Safari:
 <meta name="viewport" content="width=device-width, height=device-height" />
 But as shown here, it doesn't work: http://wesspace.net/viewport.aspx
 Note that there is no content to see when scrolling down, so no scrolling is necessary. But if a user pushes the page up with a finger (in other words, scrolling down), a blank area is revealed. This bug only occurs on mobile browsers, except Fennec, which does a great job. So does anyone know how to prevent the user from scrolling down into the void?

I'm putting this tag at the header of my HTML pages, trying to get the page to stop vertical scrolling on mobile browsers like iPhone Safari:


View Complete Post

More Related Resource Links

AJAX DragPanelExtender and Safari/iPhone

Is DragPanelExtender not working in Safari/iPhone? Same page works just fine in other browsers but not on iPhone. Thanks

View binary image with Safari in IPad/IPhone


Hi All,

Not sure if this issue should be posed here, but i try anyway:

I have a webpage with a button, button click the webpage will write an image (in binary) to the response object, resulting the user can open or save an image.



            response.AddHeader("Content-Disposition", "attachment; filename=abc.jpg");
            response.AddHeader("Content-Length", binaryImageFile.Length.ToString());


Everything is fine in IE in Windows, but in Safari in IPad/IPhone, it is viewed in a seperate browser tab, with the binary image file written as a very long string.

In Windows, i know you have to select a program to use to open a new file type for the first time, is this the c

mobile web page is displaying with small font in safari on ipod touch and in iphone.


Hi guys,

I had developed mobile web page in asp.net 2.0.

This page is displaying with small font in safari on ipod touch and in iphone.

for this i had copied iphone.browser definition file in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\Browsers

folder and run the command aspnet_regbrowsers.exe -i in command prompt.

Then 2 files with ASP.BrowserCapsFactory.dll and BrowserCapsFactory.cs were created.

But there is  no result

can any one can solve my problem.

it's urgent


chadra sekhar

iPhone and mobile apps


Hi Guys,


I would like to develop a mobile application such as the one you find in iPhones but I don't know from where to start!!? I'm not looking for something complicated, just an a static application of an eBook that users can read an flip the pages, I don't think that you can do such animation easily in ASP.net so does anyone knows what tool that I can use to develop such application?






Iphone subscribe to a sharepoint calendar

If I create a calendar on my sharepoint site. How can I subscribe to it with an Iphone.  

Background image of Anchor not working with Safari/Firefox

Hi, I have following Css where i have used back-ground image. Then i am generating Anchor and assigning css class which has image. It works fine with IE but does not work with Safari,Firefox and Chrome. Can anyone help me on how to fix it. I have given details below. Thanks, Chandan Css .HOME { BACKGROUND-IMAGE: url(../images/home.jpg); WIDTH: 56px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 20px } .HOME A { WIDTH: 56px; HEIGHT: 20px } .HOME A:hover { BACKGROUND-IMAGE: url(../images/home1.jpg); WIDTH: 56px; HEIGHT: 20px } Html Code<td class="home"> <A href="#" class="home" onclick="showpage('abc.html')"/></td>

Browse SSAS Cube Data From Your iPhone

Does the world want an iPhone app that allows you to connect, browse and pivot SSAS cube data?  What features would that app have?  Is there existing apps that are close?  Looking for others thoughts on this concept.  Thanks in advance!

Website for Windows Mobile or iPhone

I want to develop the website completely dedicated to Windows Mobile and iPhone. so can i use normal asp.net website controls or Mobile web controls... thing is i want rich user interface which is not possible when we use Mobile web controls ... pls guide me 

Mac Video Converter for Sony Bloggie Touch:1080p to iPhone 720p

Mac Video Converter for Sony Bloggie Touch:1080p to iPhone 720p Months ago I wrote the article about iPhone 4 vs Sony Bloggie ultra-compact camcorder, on September 1, 2010 Sony announced Bloggie Touch MHS-TS20 as slim as a phone with 3.0" touch screen. With the 12.8 megapixles Exmor CMOS sensor and F2.8 wide angle lens, Sony Bloggie Touch MHS-TS20 can capture videos and pictures in high quality. According to the specifications announced by Sony, the Bloggie Touch MHS-TS20, as pocket MP4 camcera, will record video in 1920x1080 (29.97p) at 12M, 1280x720 (59.94p) at 6M, and 1280x720 (29.97p) at 4M. While you have already taken videos with 1920x1080 to enjoy the HD quality, you may find the 1080p MP4 is not supported by iPhone 4, as iPhone 4 only supports H.264 MP4 with up to 720p resolution. A quick Sony Bloggie Touch video converter will make it possible to enjoy Bloggie Touch 1080p video on iPhone 4. Aunsoft Video Converter for Mac would help you downscale 1080p video to 720p. No matter you are using Bloggie MHS-CM5, or will use Bloggie Touch MHS-TS20 to shoot 1920x1080 videos, you can follow the steps below on Mac Snow Leopard. Step 1. Transfer Sony videos from camera to computer. There is supplied PMB Portable for Bloggie MHS-CM5 to work with Mac OS X, and there will be Bloggie software embedded on camera, making the camera Mac compatible. It is easy to transfer

Loading into xml not working in Safari

I have a xml http object which is getting me data on a dropdown refresh. This is working perfectly fine in IE but as issues in Safari and mozilla. Please go through my code which returns the contents and iam trying to load values into dropdown and let me know where i am missing it. function AddContents(httpRequest) { if(httpRequest.readyState == 4)   if (window.XMLHttpRequest) { var parser = new DOMParser(); doc = parser.parseFromString(httpRequest.responseText, "text/xml"); } else if (window.ActiveXObject) { doc = new ActiveXObject("Microsoft.XMLDOM"); doc.async = "false"; doc.loadXML(httpRequest.responseText); } alert(doc); var XMLRS = doc.documentElement.getElementsByTagName("Class"); for (i = 0; i < XMLRS.length; i++) { AddItem(document.getElementById("ddl"), XMLRS.item(i).getElementsByTagName("Value").item(0).text , XMLRS.item(i).getElementsByTagName("Id").item(0).text); } }

log in blocked in IE at high privcay settings and in safari

Hi,A bit of a strange problem, two separate ones actually. Safari and chrome log ins used to work fine, until I put the log in into an update panel. Once that was done, log in worked, but the panel did not update, so you had to reload the site to see you were actually logged in.There is a work around, a fix, to this issue:http://forums.asp.net/t/1252014.aspx?PageIndex=1I used the solution in the second post. This solved the problem and in chrome (which apparently is similar to safari in this way) login now works very nice. However, in safari, log in does not work at all now. It recognizes wrong passwords, hence is obviously querying the database. But it is not allowing a log in.This is similar to what I have seen with high privacy settings in IE. They do the exact same thing (and we still have this problem, like other sites i have seen do too). Somehow the js script patch for the update panels must mess with safaris privacy settings perhaps?Has anyone had a similar problem? How can it be solved? Is there a better way to solve the update panel problem in safari? Can the log in problem be overcome? Surely many people put their log ins into update panels and want safari users to be able to log in.Strange that this is so difficult, but perhaps I am just doing something obviously wrong.Would be interesting to hear from someone with experience in this issue.Thank you very much.Best r

Backup iPhone SOftware - backup ibooks, iphone sms, contacts, call list, music, video, photo

Do you wanna backup your important iphone SMS, Contacts, Call List, iBook, Photos, Music, Videos and other files? If yes, just continue. iPhone Took Kits is an professional iPhone SMS Transfer , iPhone SMS Backup, iPhone SMS copy, backup iPhone to PC Software which can perfectly and quickly backup iPhone SMS to computer. With this Backup iPhone SMS Software, to transfer SMS from iPhone to Computer is just a piece of cake. Moreover, this iPhone Tool Kits also can backup iPhone Contacts, iPhone Photos, iPhone Music/Video, iPhone Call List, iPhone iBook and be using as iPhone Disk & File Utilities. Key Features Of iPhone SMS Backup Software * # Easy to Use This top-rated and powerful iPhone SMS Backup software is simple to install and easy to operate. * # Multiple Device Compatibility, Auto-Scanning, Indexing and Searching Supports all iPhone, iPad and iPod Touch models. Auto-scans your iPhone, iPad or iPod Touch device, and auto-indexes all files by album, artist, genre, and type. Also auto-searches by album, artist, genre and type. * # Backup SMS to to Computer with Multiple File Formats * # Backup Music/Video to Any Folder on Computer You can now also transfer Music/Video from your iPhone, iPad or iPod Touch to your computer * # Backup Photos to Any Folder on Computer * # Backup Call List to Computer with Multiple File Formats * # Backup Contacts to Computer with Multipl

chrome and safari problems with log ins and sign ups in update panels

Hi,This is probably a common problem.I have log in and sign up controls in update panels. They are being focussed on when the user clicks the appropirate button. Once done, hitting the sign-up or the log-in button, the browser (FF, IE) updates the update panels and all looks nice.In chrome and safari however, this does not work quite as nice. Login and sign up still happen. But focussing the controls does not, neither does the update panel update. The user has to reload the page to see that he is actually logged in or has signed up.This is really not nice and I found a very strange error, given that update panels work fine under other circumstances.Whats the problem here and how can this be solved?Thank you very much.Regards,D

Receive Image From Iphone

Hello, i am currently working on a project with an iphone developer in which i need to receive an image to my .net 1.1 web service. Here is the code that locally works fine if i take an image and convert to bytes... but from the iphone it is coming across as an unreadable 1 kb file. Any thought or experience? Is it encoding issue? Developer says he is sending it as utf8? Thanks! <WebMethod()> _    Public Function UploadFile(ByVal fileBytes As Byte()) As BooleanTryDim ms As New MemoryStream(fileBytes)Dim fs As New FileStream("c:\attachments\test.jpg", FileMode.Create)ms.WriteTo(fs) ' clean upms.Close()fs.Close()Catch ex as ExceptionEnd TryEnd Function  

finger swipe on ipad/iphone for datapager control


hi all,

i am currently develping a webpage for ipad/iphone user, but the problem now i face is adding the finger swipe feature for the datapager control, if the user swipe finger to the left, i want the pager to go previous and swipe right side for the next page.

after i research, i got the code for swiping using javascript,  when swiping different direction, the background of the page will be changed, but i just dont know how to implement the code to my datapager control, please help me, thank you.



 <script type="text/javascript">

      // this script can be used with one or more page elements to perform actions based on them being swiped with a single finger

      var triggerElementID = null; // this variable is used to identity the triggering element
      var fingerCount = 0;
      var startX = 0;
      var startY = 0;
      var curX = 0;
      var curY = 0;

Sharepoint 2010 Web site on iphone



I have created a site collection in SharePoint 2010. When I browse that site on any mobile or iphone it is displayed in the form of list. I want that It must be displayed as web pages as it is displayed on my windows browser. Please help me how can I enable that site to be displayed as web pages on phones etc.


M K Rafi

Reporting Services and Safari



Does anyone have any experiences with RS 2005 or RS 2008 and Safari? Does RS function normally?

Many thanks

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend