Mobile and Handheld Deviceshttp://forums.asp.net/48.aspx/1?Mobile+and+Handheld+DevicesTarget mobile and handheld devices with ASP.NET - cell phones, blackberry, PDA, etc.Sun, 05 May 2013 06:53:05 -0400urn:uuid:00000000-0000-0000-0000-000000000048urn:uuid:00000000-0000-0000-0000-000005181570http://forums.asp.net/p/1851741/5181570.aspx/1?MP3+Files+inconsistently+downloading+on+iPhoneMP3 Files inconsistently downloading on iPhone <p>So I have been trying to figure an issue for a while and I am running out of ideas. So here is the scenario, I have a mobile friendly website that allows users to stream MP3 files. It works perfectly fine on desktop browsers. However, when I test out on my iPhone (iOS5 on iPhone 4) it is hit or miss. At times the file will stream fine at times I get the following error: &quot;The operation could not be completed&quot;. Not sure why it happens. But only thing I have noticed it happens on files larger than 5MB. &nbsp;I have tried making sure that the&nbsp;executionTimeout and&nbsp;maxRequestLength values are very high in the web.config file. I have been testing one large file of about 7MB and sometimes it will stream, sometimes it will not stream. Very inconsistent. Cannot for the life of me figure out why. Anyone encounter this issue? What would be the best workaround? The following is my streaming code(note it is copying the files from a local remote server). Thanks in advance!</p> <p></p> <pre class="prettyprint">'Create a stream for the file Dim stream As Stream = Nothing 'This controls how many bytes to read at a time and send to the client Dim bytesToRead As Integer = 10000 ' Buffer to read bytes in chunk size specified above Dim buffer As Byte() = New [Byte](bytesToRead - 1) {} ' The number of bytes read Try 'Create a WebRequest to get the file Dim fileReq As HttpWebRequest = DirectCast(HttpWebRequest.Create(&quot;http://127.0.0.1/mp3s/file.mp3&quot;), HttpWebRequest) 'Create a response for this request Dim fileResp As HttpWebResponse = DirectCast(fileReq.GetResponse(), HttpWebResponse) If fileReq.ContentLength &gt; 0 Then fileResp.ContentLength = fileReq.ContentLength End If 'Get the Stream returned from the response stream = fileResp.GetResponseStream() ' prepare the response to the client. resp is the client Response Dim resp = HttpContext.Current.Response 'Indicate the type of data being sent resp.ContentType = &quot;audio/mpeg3&quot; 'Name the file resp.AddHeader(&quot;Content-Disposition&quot;, &quot;attachment; filename=&quot;&quot;&quot; &amp; filename &amp; &quot;&quot;&quot;&quot;) resp.AddHeader(&quot;Content-Length&quot;, fileResp.ContentLength.ToString()) Dim length As Integer Do ' Verify that the client is connected. If resp.IsClientConnected Then ' Read data into the buffer. length = stream.Read(buffer, 0, bytesToRead) ' and write it out to the response's output stream resp.OutputStream.Write(buffer, 0, length) ' Flush the data resp.Flush() 'Clear the buffer buffer = New [Byte](bytesToRead - 1) {} Else ' cancel the download if client has disconnected length = -1 End If 'Repeat until no data is read Loop While length &gt; 0 Finally If stream IsNot Nothing Then 'Close the input stream stream.Close() End If End Try</pre> <p><br> <br> </p> 2012-10-16T17:54:21-04:002012-10-16T17:54:21.887-04:00urn:uuid:00000000-0000-0000-0000-000005392007http://forums.asp.net/p/1905563/5392007.aspx/1?install+certificate+on+mobiles+so+as+to+host+an+asp+net+mobile+web+siteinstall certificate on mobiles so as to host an asp.net mobile web site <p>Hi,</p> <p>I would like to install certificate on mobiles so as to host&nbsp; an asp.net mobile web site.</p> <p>&nbsp;Only mobiles&nbsp; on witch the certificate is installed can host the mobile website (<a href="http://www.private-aspnetwebmobile.com">www.private-aspnetwebmobile.com</a>)</p> <p>&nbsp;Is it possible ?</p> <p>regards</p> 2013-05-13T07:18:21-04:002013-05-13T07:18:21.597-04:00urn:uuid:00000000-0000-0000-0000-000005370494http://forums.asp.net/p/1900606/5370494.aspx/1?How+to+add+checkboxes+to+a+datagrid+in+a+form+How to add checkboxes to a datagrid in a form? <p>Hello guys ,</p> <p>Is it possible to add checkboxes to a datagrid in a windows mobile form? If yes, anyone would help me to do so?</p> <p>Thanks in advance.</p> <p></p> <p></p> 2013-04-21T12:01:09-04:002013-04-21T12:01:09.63-04:00urn:uuid:00000000-0000-0000-0000-000005380252http://forums.asp.net/p/1902836/5380252.aspx/1?mobilemobile I am creating mobile app using pphonegap, i would all my html page communicate with cshtml pages hosted in other servr. How. Yto acheive this?. All my cshtml output in the json format 2013-04-30T18:18:01-04:002013-04-30T18:18:01.657-04:00urn:uuid:00000000-0000-0000-0000-000005376715http://forums.asp.net/p/1902052/5376715.aspx/1?Looking+for+good+exampleLooking for good example <p>I would like to start building mobile sites. Is there a good example out there so I can learn?</p> 2013-04-27T01:41:41-04:002013-04-27T01:41:41.707-04:00urn:uuid:00000000-0000-0000-0000-000005374528http://forums.asp.net/p/1901543/5374528.aspx/1?Mobile+appMobile app <p>I have built <strong>web app</strong> using web matrix asp.net, my client wants to make the same mobile app which can be downloaded from the market. So which technlogy can i use for this?. Phonegap is the right technology for me?</p> <p>Thanks</p> 2013-04-25T06:51:40-04:002013-04-25T06:51:40.027-04:00urn:uuid:00000000-0000-0000-0000-000005374637http://forums.asp.net/p/1901563/5374637.aspx/1?How+to+fix+screen+resolution+in+windows+mobile+6+5How to fix screen resolution in windows mobile 6.5 <p>Dear All, i had use WIFI Barcode scanner device which is in windows mobile 6.5 plaftform. May i know how to write a code in ASP.NET to fix a screen resolution. The device screen is 240x320 pix. kindyl advise, thank you&nbsp;</p> <p></p> <p></p> <p></p> <p></p> <p></p> 2013-04-25T08:18:26-04:002013-04-25T08:18:26.72-04:00urn:uuid:00000000-0000-0000-0000-000005361544http://forums.asp.net/p/1897748/5361544.aspx/1?Help+with+listpicker+silver+light+Help with listpicker (silver light) <p>Hi</p> <p>i have a listpicker (Nov 2011 version of toolkit), running on 2010, when i add more than 5 records it automatically opens in fullview (great) but it does not show the names of the items in the list</p> <p>in the full display mode the names of each item in &nbsp;the list is the same:</p> <p><strong>projectname.Settings&#43;classname</strong></p> <p>so each item in the listpicker has the same name as above, however, when i click on an item the correct name is in the listpicker display</p> <p></p> <p>Any assistance would be greatly appreciated</p> 2013-04-12T19:42:12-04:002013-04-12T19:42:12.89-04:00urn:uuid:00000000-0000-0000-0000-000005367891http://forums.asp.net/p/1899963/5367891.aspx/1?i+don+t+want+to+use+iscroll+in+mobile+application+what+should+i+use+i don't want to use iscroll in mobile application.what should i use? <p>hi</p> <p>i dont want to use iscroll..(not even any plugin also ex Jscroll) could any one tell me any other way to do same functionality?</p> <p></p> <p>thanks &amp; regards&nbsp;</p> <p></p> <p>Gajendra R.Bahakar</p> 2013-04-18T09:59:11-04:002013-04-18T09:59:11.28-04:00urn:uuid:00000000-0000-0000-0000-000005371754http://forums.asp.net/p/1900902/5371754.aspx/1?MOBILE+DEVELOPMENT+MOBILE DEVELOPMENT ... <p>I'm new to aspnet mobile and let me know that considerations should be taken into account when creating mobile applications,</p> <p>I read that not all mobile browser, support jscript;<br> so I guess I should use jquery mobile</p> <p>quiesiera pro essential to know what I condiderar ue:<br> do besides loading pages long and little information ...</p> 2013-04-22T19:08:16-04:002013-04-22T19:08:16.687-04:00urn:uuid:00000000-0000-0000-0000-000005364787http://forums.asp.net/p/1899255/5364787.aspx/1?What+s+the+best+way+to+setup+a+mobile+login+page+ie+mobile+login+aspx+What's the best way to setup a mobile login page (ie, /mobile/login.aspx)? <p>What is the best way to setup a mobile login page? &nbsp;My primary concern is making sure the &quot;Keep me logged in&quot; works for regular users (login.aspx) and mobile users (/mobile/login.aspx).</p> <p>So... should I check in my global.asax for a mobile device, then redirect from there? &nbsp;</p> <p>I am worried if I start redirecting in my global.asax I might cause authentication issues. &nbsp;For example, a mobile user hits the site and it redirects to the /mobile/login.aspx page. &nbsp;But, because my Forms Authentication has defaultUrl=default.aspx I am not sure where this will direct them too, if they have previously selected &quot;Keep me logged in&quot; from the /mobile/login.aspx page.</p> <p>Any insight would be greatly appreciated!</p> 2013-04-15T23:09:22-04:002013-04-15T23:09:22.407-04:00urn:uuid:00000000-0000-0000-0000-000005349088http://forums.asp.net/p/1894603/5349088.aspx/1?how+to+make+web+app+appear+to+the+user+it+is+a+native+app+how to make web app appear to the user it is a native app? <p>A while back I watched a tutorial where someone showed the steps to create a web app. At the conclusion of the tutorial they showed what you could do to make it look like the user is installing a native app.</p> <p>But in reality all that was done was put a link on the user's device.</p> <p></p> <p>Anyone remember if they have seen it and where it can be found?</p> <p></p> <p>TIA</p> <p>Robert</p> 2013-04-01T15:09:42-04:002013-04-01T15:09:42.913-04:00urn:uuid:00000000-0000-0000-0000-000005364043http://forums.asp.net/p/1899080/5364043.aspx/1?check+whether+website+is+opened+in+mobile+browsercheck whether website is opened in mobile browser <p>Hello All,</p> <p>How can i check if website is opened in mobile browser.</p> <p>I know useragent but it shows device type whether it is android or wat... but i want to check mobile browser...</p> 2013-04-15T09:54:42-04:002013-04-15T09:54:42.547-04:00urn:uuid:00000000-0000-0000-0000-000005351227http://forums.asp.net/p/1895074/5351227.aspx/1?+Letters+Peeking+in+Password+Textbox+with+Windows+Phone+8+ Letters Peeking in Password Textbox with Windows Phone 8 <p>Hi..I am using Miscrosoft MVC HTML password helper in windows phone 8 with jQuery validation as in following code snippets.<br> <br> @Html.PasswordFor(m =&gt; m.Password)<br> <br> But while typing, the letters getting peeked after the jQuery validation happens for the textboxes as below.<br> <br> Could anyone please help me on this ?</p> <p></p> <p><img src="http://social.msdn.microsoft.com/Forums/getfile/266367" height="384" width="230"></p> <p></p> <p>Thanks,</p> <p>Vignesh</p> 2013-04-03T09:27:00-04:002013-04-03T09:27:00.72-04:00urn:uuid:00000000-0000-0000-0000-000005363161http://forums.asp.net/p/1898887/5363161.aspx/1?windows+phone+7+phone+8+Text+to+Speech+Speech+toTextwindows phone 7/phone 8 Text to Speech,Speech toText <p>Hi</p> <p>Can anyone direct me to a good tutorial on using Text to Speech and Speech to Text.</p> <p></p> <p>Thank you in advance</p> 2013-04-14T01:28:31-04:002013-04-14T01:28:31.86-04:00urn:uuid:00000000-0000-0000-0000-000005355316http://forums.asp.net/p/1896105/5355316.aspx/1?Scrolling+in+Modal+makes+background+scroll+on+SafariScrolling in Modal makes background scroll on Safari <p>Hi everyone,</p> <p>I need to have some help with an annoying thing.<br> I have an modal popup which has vertical scrollsbar inside. When scrolling inside the modal sometimes the background scrolls instead.<br> I have tried to add</p> <pre class="prettyprint">body{ position:relative; overflow: hidden; }</pre> <p>which works fine on most of the browsers, but Safari for my iPhone still scrolls!</p> <p>Please help me find how to solve this!</p> <p>Regards Kristian</p> 2013-04-07T17:33:16-04:002013-04-07T17:33:16.45-04:00urn:uuid:00000000-0000-0000-0000-000005357342http://forums.asp.net/p/1896727/5357342.aspx/1?Reg+Mobile+Applications+Controls+Reg: Mobile Applications Controls <p>Hi Everyone,</p> <p>greetings,</p> <p>some moblie application controls are missings like selection list, command controls and others.</p> <p>i using visual studio 2008 3.5framework</p> <p>and can we delevelop moblie application in visual studio 2010 ?</p> <p>to do where we download moblie tool kit for VS2010?</p> 2013-04-09T10:36:15-04:002013-04-09T10:36:15.75-04:00urn:uuid:00000000-0000-0000-0000-000005346413http://forums.asp.net/p/1893949/5346413.aspx/1?mobile+responsive+html+designsmobile responsive html designs <p>hi all,</p> <p>what are the best practice sites to learn about mobile responsive site ?</p> <p>looking for basically some sample with best practice code ,</p> <p></p> <p></p> 2013-03-28T13:22:22-04:002013-03-28T13:22:22.22-04:00urn:uuid:00000000-0000-0000-0000-000005350016http://forums.asp.net/p/1894793/5350016.aspx/1?Send+response+from+Asp+net+Page+to+Android+applicationSend response from Asp.net Page to Android application <p>Hello All,</p> <p>I have created one aspx page which is called from android application successfully.</p> <p>I want to <strong>send a response of Boolean value</strong> back to the android application after processing some data from this aspx page. Currently it is showing the aspx page content like follows in android application as a response.</p> <p>&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &gt;<br> &lt;head runat=&quot;server&quot;&gt;<br> &lt;title&gt;Recharge App&lt;/title&gt;<br> &lt;/head&gt;<br> &lt;body&gt;<br> &lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;<br> &lt;div&gt;<br> <br> &lt;/div&gt;<br> &lt;/form&gt;<br> &lt;/body&gt;<br> &lt;/html&gt;</p> <p>Can any one help me on this?</p> <p>Thanks in advance.</p> 2013-04-02T10:59:03-04:002013-04-02T10:59:03.433-04:00urn:uuid:00000000-0000-0000-0000-000005344028http://forums.asp.net/p/1893384/5344028.aspx/1?calculating+file+download+timecalculating file download time <p>hi,</p> <p>trying to find out user network type (gprs/edge/3g) based on the time taken by the device to download a file.</p> <p>how to calculate the time taken by devcie to download a file? how is IIS calculating the time taken?</p> <p>currently im serving download from a handler using Response.TransmitFile()</p> 2013-03-26T12:25:23-04:002013-03-26T12:25:23.71-04:00