Mobiles :: How Does Fileupload Control Work In Website For Blackberry
Mar 10, 2011
I tried to use the asp.net fileupload control for uploading a picture or music file, from blackberry device to server. But, What happened is ; the file is uploaded , ie, the file is created with 0 bytes in it. That is, file is actually not uploaded. Since blackberry browser doesn't support other fileformats, the device contains only .png & .m4a fileformats in its samples. I have used these sample in blackberry for uploading. The same has occured in the case of .m4a files also... Why is it so...? One more thing... The blackberry browser which I am refering here is the blackberry browser simulator, bold 9700.
I got an application to support, it's an asp.net web project, on the 1.1 dot.net framework.
It's all ok, with the application, when it runs on web brownsers, and when I try run it from inside a blackberry mobile phone it runs ok too, except when I try to execute an Response.Redirect("some_page_of_my_app.aspx").
It always goes to the default page (login page), and ask for login again, and I never can do a redirect.Is there someone that have any idea what the problem about that?
I have a asp.net (3.5) small website i created and uploaded to our server, which can be viewed on all browsers (firefox, ie, chrome) but every time i try to use my blackberry to view it I get a http 500 internal server error.
I use AutoCompleteExtender control in an application. When user types an account name to pull a report, the auto complete control lists the top 40 account names from database, user is able to select an account name or type exact account name to pull a report.
It works fine on regular browsers. But the auto complete function does not work on blackberry browser. No error message either. If user types an exact account name, a report can still be pulled. But if a user does not know an exact account name, no data will return because that wrongly typed account name does not exist.
Does somebody know how I can make auto complete work on blackberry or does somebody know any alternative method?
I'm working on a web page that will be viewed on a blackberry (to start with). On the page I need to be able to add calendar events to the user's blackberry calendar or add new contact records to their contact list.
I've found the api on RIM's site that would allow this [URL] but I have no how to incorporate it into an asp.net page.
I got an application to support, it's an asp.net web project, on the 1.1 dot.net framework.It's all ok, with the application, when it runs on web brownsers, and when I try run it from inside a blackberry mobile phone it runs ok too, except when I try to execute an Response.Redirect("some_page_of_my_app.aspx").It always goes to the default page (login page), and ask for login again, and I never can do a redirect.
Our web application can be reached from Blackberry, but when we try to open https, blackberry fails. bytheway, we followed the instructions on http://roopeshreddy.wordpress.com/2010/10/25/developing-web-applications-for-blackberry-mobiles-using-microsoft-asp-net
Mobile web is no longer supported in latest version of Visual Studio. Please do following with Vs2008 or VS2010
- Create standard ASP.NET website with standard "Web Forms"
- Design the content of web forms for your mobile pages based on device family that are going to access your website. For e.g. iPhone, Andriod
- Add a detector process, which detects from where request is coming. If it is mobile than redirect user to mobile optimized pages.
- Different mobile has different capabilities (e.g screen size, image support, html support, xhtml support etc.). So it is very important that you know what type of device is trying to access your website and accordingly render required HTML/XHTML supported by the mobile device. [URL] So I have a basic website with .aspx pages. When they are on a blackberry the words wrap on top of the second line over the TEXTBOXES. Is there a basic place that can tell me how to fix this? Or what to use in the place of the CSS that are causing this on the blackberry devices?
So I created a site optimized to be rendered in a mobile device. I set the Width Site is looking good on Blackberry of my <DIV> tags to be about 300px, for the most part, to account for the reduced screen size. However, the IPhone Safari browser renders this to the screen extremely small, and I can only assume that it's automatically reducing the size of the html accordingly to fit the device. Again, Blackberry does not do this.
I'm having a problem with the FileUpload control in ASP.NET. It requires two postbacks to server in order to upload the file. In other words, after I select the file and click upload the page reloads but do nothing. Then I reselect the file and click upload then it works.
In my code I put a check for FileUpload.HasFile and it always fails (return false) on the first postback.
I am using .net 3.5 framework. I have a Tabcontainer inside that I have place asp.net fileupload control which is inside update panel. It's been known fact that fileupload control does not work under update panel unless we use Postback Triggers.
I'm using an image field in the EditTemplate of FormView to allow my users to upload an image. It works fine in all major browsers, including Safari. But not on the iPad. There I get the error message "object reference not set to an instance of an object" when the EditTemplate is submitted.
I'm guessing it's because, on the iPad, the FileUpload button in my EditTemplate is "greyed out" (which is a problem in and of itself)...I suppose there's no built-in way for an iPad user (using the iPad version of Safari) to search for an image on the iPad hard drive to upload (without a special App, I'm guessing)....So, when the EditTemplate form is submitting on an iPad, I get the above error message---I think because the Fileupload field is Null (I have this theory, because the stack trace references my "ValidateImage" method in my code behind.)Anybody have any direction or answers I should try? Is there an obvious answer here, or should I post my EditTemplate mark-up and code behind?