I want to execute java script from VB to display a PDF file in a new window after a double click event on a listbox and have the following code in Page_Startup:
lbDocuments.Attributes.Add("ondblclick", ClientScript.GetPostBackEventReference(lbDocuments, "ViewDocument")) If Request("__EVENTARGUMENT") = "ViewDocument" Then TempString = "~/Resources/" & txtRecordNumber.Text & "/" & lbDocuments.Text 'txtRecordNumber.Text = "ABC123" 'lbDocuments.Text="ABC123 Document 1 (2011-02-22).pdf" TempString = "<script type=""text/javascript"">window.open('" & TempString & "','_newtab');</script>" ClientScript.RegisterStartupScript(Me.GetType(), "ViewDocument", TempString, True) End If
I have tested the above time after time and each double click event registers correctly and the string containing the script (TempString) populates correctly, at least so it appears to me, but the new window is not displayed.
I am maintaining a website that has .Aspx web pages with no code behind C# files. This has been a challenge for me, because I need to do the following:
1.) When the page first loads, display a Java Script popup message box.
So how can I do this if I don not have a code behind C# file where I can check for isPostback in the on page load method? Can the on page load method be placed inline in the .aspx code? Anyway I need to figure out how to answer my question 1 above.
I'm decommissioning a meeting room scheduling [web] tool in favor of the same Outlook's functionality.I'd like, however, to publish (read-only) a "Group Schedule" view in a web page.
To make the idea more clear:
On Outlook's Calendar view, select Actions / View Group Schedules and then create a new group for say, Conference Rooms.This new view will give a global view of Conference Rooms occupancy. I need a way to publish this room's occupancy.
I'm looking for a way to access a Java API from both a Java console application and an ASP.Net application.In short my Java API exposes a series of methods for dealing with invoices. All of these methods are essentially commands e.g.
All methods will interact with the database. I had believed Web Services was going to be my means for interop. But I have since been made aware of Java Stored Procedures in Oracle.
I got asked to write a java application for my company. I'm a seasoned .Net developer so this is all new ground to me.My task is to produce an invoicing application that has several high level tasks such as:Build single invoiceBuild all invoicesMy company want to be able to call these tasks from a java console application - passing in relevant commands and parameters to invoke the tasks. They also want to be able to invoke the same code from an ASP.NET application.
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?
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.
i have an aspx page that contains 4 divs and some content is in there.it works fyn for my resolution on which it is created but the page content gets disturbed when the resolution changes.Why is this so and what is the remedy to this problem?i want the page content to automatically adjust as the resolution changes.
In my webform I have a datalist that displays images that are approximately 200px each. The datalist is set to RepeatColumns = 5, RepeatDirection = Horizontal (display 5 images per row). With the padding and spacing, each datalist row takes up about 1200px in width.
The problem is that if a user with a 1024x768 or 800x600 resolution visits the page, he'll see the horizontal scrollbars. It's not really a problem, but, well...
Is there any way I can call a javascript function in page_load that will get the screen dimensions, and send that javascript result to my serverside so that I can change Datalist.RepeatColumns?
My javascript function would probably use screen.width and screen.height, but how do I send those values to my codebehind?
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 built a new .Net website which will fit nicely on 1200px width resolution.The problem is that some of my users will browse this website with 1024px width.Is there a way to fix this problem quick without changing all the design of the page? For example, to put some javascript that will do the trick.Please keep in mind that the top banner of my site is 1200px wide, and I don't need to support less then 1024px resolution.
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.
I'm creating a optimized web page for mobile devices with C#. Is there a way to offer a page for larger screens and one for smaller screens on android devices? With Apple i can differentiate between iPad and iPhone, but how can I do this with the galaxy tab or a regular android phone?I don't want to use any javascript in this case.