View Complete Post
I'm try to get my site to detect what browser someone is using to ensure they're using one that is compliant with our site. Everything works, except Firefox seems to post the wrong version in the Request.Browser variables.
I'm on Firefox 3.6.10, but Request.Browser shows Mozilla 18.104.22.168. It's correct in the HTTP_USER_AGENT string:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:22.214.171.124) Gecko/20100914 YFF35 Firefox/3.6.10 ( .NET CLR 3.5.30729)
Is there a way to detect it better without having to parse through the HTTP_USER_AGENT string?
Dear gentlemen and ladies of the Microsoft Dynamic Data Team,
Mr. Steve Naughton says (and I hope so) that there might be chances that you read the posts published in this forum: I really hope so.
If that were the case then I am formally requesting to you in providing a "real answer" to my question:
I want to customize a dynamic data page (the details one) so I can have access to the data it has been already gathered from the end user UI (details.aspx) and use it to pass this same data to the following controls/pages that I am going to display next time to the end user.
I have a screen with different types of data in it: texts, numbers, dates, check boxes, radio buttons and dropdownlists that has been filled with data by the end user. I want now to reset all fields exept the dropdownlist of which I'd like to keep the previously chosen values(the very same thing you do between dropdownlist of List.aspx ad Details.aspx). Even with FoxPro I could do that because data and controls were available there. It was as simple as setting carrying on to true.
HOW DO YOU DO THAT? HOW CAN I IMPLEMENT THE SAME LOGIC AMONG THE CONTROLS OF MY DETAILS PAGE? BUT I DO WANT TO HAVE ACCESS AND PASS DATA FOR SPECIFIC CONTROLS:DROPDOWNLISTS (mostly).
I have found my
If the view state is the data entered into the form fields then they are supposed to be available in the request parameters or request body. Then why would we need view state for?
I am hoping somene here could advise me on a better solution to my present problem. First a little background information on the application.
I have a web application using the 3.5 framework. The structure of this application is as follows: UI -> WebService -> Business Layer -> DataAccess Layer. What I want to accomplish is for every request (click on a link or button) have a unique identifer that follows this request through its entire lifecycle. This unique identifer can be accessible anywhere within this request. We use Response.Redirects which could easily be changed to Server.Transfers (although I do not want to do that) but the problem lies with the web service calls. Currently, a GUID is set in the ApplicationRequest. This GUID checks for a guid value in the RawURL and if so, assigns this value to a HttpContext Item. If not, HttpContext.Items gets a new one created. However, this idea is wrong and will need to be revisisted. The bigger problem is with the web service calls. Without changing every web service method signature, and every call for that matter, is there a way of getting this GUID there. I created a web method in every web service so that each time I instantiate a web service object in the UI, before calling any
I'm running VS2010 with .net 4.0, and am running into issues with the .net ajax script tags mysteriously not being rendered to the browser.
So far I've reduced it to a scenario where I set the DataSourceID property of a databound control. More specifically, I've only tested it on a Gridview and a DropDownList.
This can be reproduced fairly easily on my machine by following these steps:
1. Create a new empty Web Application Project
2. Create a new Web Form
3. Add a ScriptManager inside the form
4. Add a DropDownList and a DataSource (I used an ObjectDataSource)
5. Set the DataSourceID property of the DropDownList to the ID of the DataSource. This can be done either declaratively on the .aspx page, or in the code behind in the aspx.cs page, and both produce the same results.
Here's my source code showing my set up:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ScriptResourceFAIL.Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 T
Hi, whenever I load an aspx page in vwde2008, I get the message in the subject of this post. After I click Ok on that, I get a dialog box, Unable to Connect to the ASP.Net development center. What can I do to troubleshoot?
I am using Windows XP SP3, vwde2008 with SP1, on a HP desktop. Also using Office 2003 if that is relevant at all.
Good Day all,
Having an issue with an outside user accessing my IIS7 box. I do not have this problem when running the website from my host machine. I found this post: Http://forums.asp.net/t/1371394.aspx. I assure you that this is not a solution because I am not storing any of my files on a network share.
What do you think my approach should be.
I already have read rights to IIS user to my BIN folder.
Thanks for the help.
Hi all, we're testing our web app with a state manager so that we can do distributed rollouts. We're not getting any errors, but we are getting jibberish returned for every page request.
(it won't even let me paste it in here)
HOw do I get it to serve the pages normally?
How can I test what my xsl spits out in the browser, rather than just viewing the xsl itself?
I have migrated my web application to iis 7.5 Now I am using windows 7 as dev machine.
the problem is it takes several seconds to download a single page into web browser now. It contains only 300 records.
Everything is ok on prod website though. Prod version contains up to 200000 records .I can't also use code profile tool of red gate to analyze possible bottlenecks since the software in question can't restart IIS. No errors in IIS logs. I am using ISAPI Rewrite 3 filter by Helicon to apply some URL rewriting rules. I am thinking about conflict between ISAPI rewriting rules and default IIS 7.5 request filtering rules, since the IIS request filtering module gets a higher priority than even the built-in IIS 7.5 rewriter module. Is it possible to tweak the module through web.config so that priority is given to ISAPI rewriting rules or something like that?
Frankly, I spent several days to figure out solution. No success...
I've also deployed the application on IIS 5.1. Everything works fine. Any ideas about possible solution for IIS 7.5?
I created an application and implemented IHTTPHandler for all incoming request ending with ".aspx" extension.
Under "ProcessRequest" module, I am creating an instance of HttpContext (with URL attributes different from my application's URL i.e. if I am working on localhost then speciying Yahoo.com as its URL) and assigning it to "context" which comes as method argument.
After redirection, an error is generated. Also, the custom HTTPContext is not passed to the requested page (default.aspx, in my case.)
Code is as follows.
Public Sub ProcessRequest(ByVal context As System.Web.HttpContext) Implements System.Web.IHttpHandler.ProcessRequest
Dim requestedUrl As String
Dim targetUrl As String
Dim urlLength As Integer
'Save settings which will be used while redirecting to appropriate page
requestedUrl = context.Request.RawUrl
If requestedUrl.IndexOf("?") >= 0 Then
targetUrl = requestedUrl.Substring(0, requestedUrl.IndexOf("?"))
targetUrl = requestedUrl
If targetUrl = Nothing Or targetUrl.Length = 0 Then
targetUrl = requestedUrl
Here i'm creating two sites for internet version and mobile version.
When the user enters site name, we would detect the mobile browser automatically and redirect the user to mobile version of the site .
is it possible??
if yes, please tell the way i need to develop the application for mobile web application
Detect Browser Screen Size?? Hi Everyone, I need to detect the size of the user's screen for mobile devices (especially the BlackBerry). I've read a lot of pages that seem to refer me to the Request.Browser object, but I'm finding that this object doesn't have the correct values. For example, I have a BlackBerry and when I use the Request.Browser to get the screen size, it tells me it is 640x480. Well, I know it's not that big since an image of 300px wide just barely fits. Also, when I run on my desktop browser, it also says my screen is 640x480. I can assure you, it is not 640x480! ha!
Hi Everyone, I need to detect the size of the user's screen for mobile devices (especially the BlackBerry). I've read a lot of pages that seem to refer me to the Request.Browser object, but I'm finding that this object doesn't have the correct values. For example, I have a BlackBerry and when I use the Request.Browser to get the screen size, it tells me it is 640x480. Well, I know it's not that big since an image of 300px wide just barely fits. Also, when I run on my desktop browser, it also says my screen is 640x480. I can assure you, it is not 640x480! ha!
Hi i am planning to develop a site for mobiles. My first problem is how to find the mobile browser so that i can redirect to the mobile site for good look. When i searched for that i came accross WURFL which contains the list of mobile user agents? Is this the good solution or anybody having good solution please tell which will be helpful for me.
Waiting for the reply
I have an assignment to develop a mobile application for My company's customers (around 250000). its could be download from our website or we can also provide to our customers those are visiting our branches, on their demand.
1- this application should execute/compatible with all kind off mobile phone (Nokia, Samsun, LG, Motrola, Black Berry, iPhone..... every one). when it install on customer phone it will provide some certian option under the my company Icon to the user, like:
1- Help Line Numbers
2- Branches Address/Details
3- My Last Visit Informations.
4- My Next Appointment.
5- My Payment History and more etc etc......
the user will select any one option and then get the response by return text Message against the option he selected from our Site/Service (I dont konw what we will say this system who will response to the customers)
My Problem is that I saw/Check many fourms and articals they are giving the tips/det