I have created my webpage in asp.net in 1024*768 resolution, my problem was that when i change my monitor resolution then the controls in my webpage will be displayed in unmanaged manner. How to arrange items in my webpage which support multiple resolution. Whatever the resolution of my monitor the controls in my webpage will display as it is as managed in 1024*768 reolution.
I have developed the below web page which has an asp.net 3.5 listview control as it's frontend and an sql server db as it's backend.
The first row on the web page is the inserting row. What I am hoping to achieve is that when the user enters their appropriate data they click the "Next" button to assign this dataset with it's own identity ID (customer_id) value within my database (this works perfectly), at the same time on the fly I want to use this customer_id as a query string variable to populate a child page (customerTrades.aspx) in order to pin further data to this identity. Currently I am attempting to use the below code within the iteminserted event of my listview control but I receive the error: "object reference not set to the instance of an object"??
Is this because the child page cannot find the customer_id variable being passed through the query string? Because it's not actually created yet? Am I using the wrong listview event? How can I achieve what I am looking for?
I must also mention that I'm using a linqdatasource to insert my data on runtime into my database. However, I am using the listview iteminserting event to insert my frontend dropdownlist selected values, code below:
How would one create a website that would look the same at any resolution? I've heard of making so it will fit for a 800x600 screen but then that just screws everyone that has a higher screen resolution. I've heard about using widths that use percentages and using iframes and things like that.
What's the best way to have one website fits all resolutions?
I'm working for a graphical company and I'm making a webapplication at the moment. In this application, users can upload images. Before I let them upload an image, I want to check the resolution of it (dpi = min. 300dpi). How can I do this?
On windows server 2008 can I have a web service or something I can query from a C# application as to the display properties (resolution (height & width)). The C# application does not run on the server so I cannot just detect it from the application itself.ddition to help explain why:I will have a user named "display" and that will be logged on displaying a website (on the server) and I want to be able to check the display from the desktop application so the user knows what resolution to design a template for. The resolution will change from different displays so it can't be a set value
I'm trying to resolve the AccountController in my application, but it seems that I have a lifetime scoping issue.
builder.Register(c => new MyDataContext(connectionString)).As<IDatabase>().HttpRequestScoped(); builder.Register(c => new UnitOfWork(c.Resolve<IDatabase>())).As<IUnitOfWork>().HttpRequestScoped(); builder.Register(c => new AccountService(c.Resolve<IDatabase>())).As<IAccountService>().InstancePerLifetimeScope(); builder.Register(c => new AccountController(c.Resolve<IAccountService>())).InstancePerDependency();
I need MyDataContext and UnitOfWork to be scoped at the HttpRequestLevel.When I try to resolve the AccountController, I get the following error:No scope matching the expression 'value(Autofac.Builder.RegistrationBuilder`3+<>c__DisplayClass0[...]).lifetimeScopeTag.Equals(scope.Tag)' is visible from the scope in which the instance was requested.
During ASP.NET precompilation of our .NET 3.5 web application, various initialization is performed in type initializers. One of the type initializers throws a custom exception when the environment is incorrectly configured. However, when our custom exception is thrown, here is what the aspnet_compiler.exe tells us:
[exec] error ASPRUNTIME: Type is not resolved for member 'App.Project.CustomException,App.Project, Version=126.96.36.199, Culture=neutral, PublicKeyToken=null'. [exec] [exec] [SerializationException]: Type is not resolved for member 'App.Project.CustomException,App.Project, Version=188.8.131.52, Culture=neutral, PublicKeyToken=null'. [exec] at System.Web.Compilation.BuildManagerHost.PrecompileApp(ClientBuildManagerCallback callback) [exec] at System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuildManagerCallback callback, Boolean forceCleanBuild) [exec] at System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuildManagerCallback callback) [exec] at System.Web.Compilation.Precompiler.Main(String args)
Notice that no "real" stack trace information is included. However, when I change our code to throw an InvalidOperationException (instead of our custom exception), the stack trace is included correctly. (As an aside, our CustomException type is annotated with [Serializable]. When we remove the [Serializable] annotation, the aspnet_compiler.exe complains differently -- that our custom exception is not marked as such.) Does anyone know why throwing a custom exception during ASP.NET precompilation is causing the secondary SerializationException? Why is it trying to serialize the exception? Similarly, why does using a BCL InvalidOperationException not cause the secondary SerializationException?
Could this be because the aspnet_compiler.exe is trying to do some sort of reflection on unexpected exceptions? (And therefore since it does not have our App.Project assembly loaded, it is unable to resolve the type?)
I have been using LINQ to SQL for quite a while (about two years). Every thing was fine until now. As usual, I created LINQ to SQL classes and built the project, then created an aspx page. However, I cannot see the DataClassesDataContext in the code behind file. It is not listed in the intellisense list.
I have justed tried to configure the PHP on my web server following the article (http://www.iis-aid.com/articles/how_to_guides/installing_php_5_iis_5_simple_steps?page=0%2C0) and php now runs fine without any problem but it have affected by asp.net web applications.I am receiveing the following error on the server, so I undone all the changes for php and restarted the server
I designed my page (Using ASP .net C#) in 1024*768. if resolution of the screen decresed(ex 800*600) then vertical and horizental scroll bar appear. And if resolution of the screen incresed then right side of the screen is become blank. i want whatever the screen resolution is there my page is run fine after detecting the resolution of the screen and then run.
After looking at about 200 examples on this and other sides, I combined several pieces of code that I found and created one to upload an image, give it a random name, verify that a file with that same names doesn't already exists on the server, resize the image 3 different ways; one keeping aspect ratio and two square thumbnails; and save them to different folders in the server. This is the code:
I get the error on intellisense: Overload resolution failed because no accessible DrawImage can be called without a narrowing conversion. ..... Argument matching parameter 'srcX' narrows from 'Double' to Inter... narrows from 'Double' to 'Single'.