File uploading in iphone using vb.net - iphone

The html tag for file uploading is not working in iphone:
<input type="file" id="Fileid1" runat="server"/>
It is showing inactive in iphone in aspx page. So how the file uploading can run in iphone using html...

I have checked and it's working using below code:
input type="file" accept="image/*;capture=camera">

File upload is not supported using a web interface in ios.

Related

why is my <object>not shown on iphone?

i want to show a forreign website as in my phonegap App on iphone. I see the Website in the when i view the app in firefox but there is nothing shown on iphone. Any idea or solutions? (the url is just an example)
<div id="divSvgView" dojoType="dojox.mobile.ScrollableView" style="background-color: #d0d0d0;">
<object type="txt/html" id="svgObject" data="http://heise.de" style="width:400px; height:400px;margin1%;"></object>
</div>
greets Tom
Try Using type="application/xhtml+xml"? This seems to be required in some versions of desktop and iOS Safari to get things working.

Launching the camera from the mobile browser

I want to launch the camera from my mobile browser(Safari) in my iPhone. Is there a way to do
it. I guess in iOS 6 I can do it , but I am not aware of how to achieve my task .
Any help is greatly appreciated.
You can open Camera from your mobile browser. For this you need to use Some Already available Javascript APIs. Like we have in PhoneGAP framework. You can see the example at this Link.
In iOS6, you can try the following if what you are trying to accomplish is setting up a web page which will open the camera from safari.
<input type="file" accept="image/*" capture="camera">
<input type="file" accept="video/*" capture="camera">
It will act like a regular file upload, but instead, it will open the iPhone camera and upload a picture or a video.

RESTful way of File Uploading

I want to implement file upload in RESTful way using openrasta but not able to find proper way to implement it.There are few ways like using Ajax file upload or using Iframe which i could find.
Can anybody suggest any way of doing this or provide me some resources from where i can refer.
Thanks in advance
It seems to me you're trying to build file uploading in an html environment.
You have two choices.
Use an HTML form to upload the file.
<form enctype="multipart/form-data" action="/files" method="post">
<fieldset>
<input type="file" name="filename" />
<input type="submit" />
</fieldset>
</form>
You can map that in OR very easily. Your handler would look like this:
public object Post(IFile filename) { /* do something with the file */ }
You can't do ajax-based file upload with progress bars as there is no way in pure xmlhttprequest to manipulate binary files. If you go down the route of using a flash / silverlight control behind the scene, you'll just need to make sure you post the content of the file to /files as in the previous example, the easiest way being to send the content with a Content-Type http header of application/octet-stram, and the same handler code will just work.

How can I send an sms from an iphone webapp using a link?

I saw a tutorial on the web which said I could do this:
http://geekswithblogs.net/MobileLOB/archive/2009/03/13/sending-sms-in-iphone-web-app.aspx
<A HREF=”SMS:2323232232”/>TXT ME</A>
: but when I click this link on my iphone the sms app is opened but the body of the message is empty
With sms: URL scheme you can only specify the destination number. Starting with iOS 4 it's possible to send an SMS from a native app using MessageComposer.
Read again your linked tutorial. It said that adding body=... doesn't work.
I think your problem is because you've copied the quotes from somewhere, which converted it into text-quotes.
<A HREF=”SMS:2323232232”/>TXT ME</A>
should be
<A HREF="SMS:2323232232"/>TXT ME</A>

Upload a File in ASP.net MVC2 using C#

I have seen a great many tutorials about how to do file uploads. So far none of them really line up at all with what I am trying to do. Which is using the MVC method to, without using anything third party, upload an image to the web server and verify the size of the image. Almost all of the tutorials I have seen show how to do an upload in web forms. If anyone could point me to a tutorial that is MVC based or produce a short example that would be fantastic.
Did you try to use controller method with HttpPostedFileBase parameter?
Like
<form>
<input type="file" name="fileUploader" />
<input type="submit" />
...
and
public ActionResult AcceptFile(HttpPostedFileBase fileUploader)
{
....
}