Web Forms :: MasterPage Pop Up / Optimize That Resizing Code For Asp?

Nov 2, 2010

I have a master page(created for pop ups as i have a lot..) with the following code:

<div id = "weadas>
content content content..
<script type="text/javascript">
var content = document.getElementById("weadas");
window.resizeTo(content.offsetWidth + 50, content.offsetHeight + 50);

Wich i call with the following linkbutton:

"window.open('../ijSistema/ijPopUp/ppUpDictionary.aspx','mywindow','width=auto,height=auto,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no'); return false;"

but then it does not resize properly when poping up. It does work in IE6 but it does not in IE8 nor Mozilla 3.0.

Any ideas of how to optimize that resizing code for asp.net?

View 2 Replies

Similar Messages:

Optimize C# Code For Repeaters Using A Table?

Jan 6, 2010

on the aspx:


The problem here is that instead of using Two repeaters, can we use only one?

We actually need the header to be separated from the contents using a different table row...

Edit: changed rptHeader's ItemTemplate's html element from <td> to <th> to be a little clearer.

View 4 Replies

C# - Optimize Code - Linq And Foreach Loop 15k Records?

Sep 6, 2010

this is my code


basically, the InstellingGegevens table gest filled in by some procedure from another server.
the thing i then need to do is check if there are new records in this table, and fill in the new ones in Instellingens.

this code runs for like 4 minutes on 15k records. how do I optimize it? or is the only way a Stored Procedure?

this code runs in a timer, running every 6h. IF a stored procedure is best, how to I use that in a timer?


View 3 Replies

Web Forms :: How To Write Code With A Masterpage

Jan 10, 2010

How can I write this with a masterpage

View 2 Replies

Web Forms :: Why Can't Use 'user.identity.name' In Masterpage Code Behind

Sep 5, 2010

I tried to use user.identity.name in a master page code behing but intellisense doesn't recognize it.

If I change Inherits masterpage to inherit page then intellisense accepts it. What's going On?

View 2 Replies

Web Forms :: Inserting Code Into Masterpage Tag From Child Page?

Feb 14, 2011

I have a some javascript code that I only want to run in one child page but it needs to be in the head tag to function correctly.

<script type='text/javascript' src=[URL] ></script>
<script type='text/javascript' src=[URL]></script>
<script type='text/javascript' src='lightview/lightview.js'></script>
<link rel="stylesheet" type="text/css" href="lightview/lightview.css" />
end code

Can anyone tell me how to do this? I cannot put it straight into the master page as it conflict with some other javascript code that I am running on a different page! And I cannot put it into the body of the child page because it does not function correctly.

View 4 Replies

Web Forms :: Can Show The Code To Put In A Masterpage So That When Expand A Child Node

Oct 20, 2010

I created a sitemap with a treeview navigation in my aspx site. I am hoping someone can show me the code to put in a Masterpage so that when I expand a child node, all other nodes collapse, and when I expand another node, the previous expanded node collapses.

I have an example here of what I am trying to accomplish:


I am using asp.net with VB.

View 6 Replies

Web Forms :: JavaScript Code Doesn;t Work In A Page Inherits From Masterpage?

Jul 9, 2010

i have my NEWS BAR script code in my home Page which inherits from masterpage like this :

<asp:Content ID="content1" runat="server" ContentPlaceHolderID="mainholder" >

View 8 Replies

Get The List Of ContentPlaceHolders Of A MasterPage On Code-behind?

Sep 7, 2010

I need to get the list of ContentPlaceHolders of a MasterPage, but the property

protected internal IList ContentPlaceHolders { get; }

is protected internal, so we can't access them.

Is there any way we could pull them up from the MasterPage (including Reflection)?

View 3 Replies

Web Forms :: Accessing Control In Nested MasterPage From Parent MasterPage?

Feb 4, 2010

I have a MasterPage (MasterPage.master) with 2 child MasterPages (specialMaster.master and standardMaster.master). From the MasterPage.master I need to get at some of the controls in one of the children, specialMaster.master, say for example to hide certain
content if a session variable is not null.

View 2 Replies

Web Forms :: Access Hidden Field From One Masterpage To Another Masterpage?

May 3, 2010

I have 2 masterpages. (Default.master and User.master).I have a hidden field in Default.master then how can i get the hidden field value of Default.master file from User.master.is there any way to access that hidden field like: Request.form("hidID") ?

View 2 Replies

Web Forms :: JPEG Compression And Resizing?

Jun 1, 2010

I have an application with a FileUpload control. The code behind saves the uploaded file (which I've stipulated in the code must have a ".jpeg" extension) to the webserver's hard disk. Details about the image, such as its ID, Title, Description and Upload date are saved in an MS SQL Server database. Nothing difficult here.

What I'd like to do instead... is take the uploaded image (which will be a "large", high-quality image), save this as above but ALSO dynamically resize and resample a copy of this image and store a thumbnail of it on the webserver hard drive as well.

I can't find a post which explains how to do this in this forum group. Can anyone point me in the right direction for an answer. I am using Visual Studio 2008, ASP.NET 3.5 and Visual Basic.NET 2008.

View 6 Replies

Web Forms :: Textbox Resizing After Postback?

Apr 5, 2010

I'm having a little problem with textboxes automatically resizing after postback.

I have a textbox on set with a width of 90%.

Now the text box works fine but if I have something in the textbox that is longer than what it can display, when I save and the page reloads with the string in there the textbox automatically makes itself larger and becomes bigger than the 90% that I set and goes off the page, a scroll bar appears.

Is there a way to turn this off? I have been searching and can't seem to find anything..

I realize that if I set it to a fixed with this problem goes away if I set a fixed width but I need it at 90%.

Also, I have some multi-line textboxes and they have the same issue, even though it's multi-line, it still becomes a little bigger wrap less times than it can.

View 6 Replies

Web Forms :: Resizing ContentPlaceHolder In Master Page?

Aug 17, 2010

As the first step, I designed a Master Page for my website. Everything seems to be in order. My master page has a table say "Mytable" with 2 rows.

In the first row, I've put up a banner for the website.

In the second row, I want to place the ContentPlaceHolder.

The thing is that I can't make the ContentPlaceHolder to occupy the whole cell. I tried finding the solution through search engines and could not find out a solution.

In my web page, I want to create a table by Javascript. I mean that I want to make this table to occupy the second row of "Mytable". There is still some gaps left at the top and bottom of the ContentPlaceHolder.

View 5 Replies

Web Forms :: Checking For And Resizing An Image Before Downloading With VB.net?

Jul 17, 2010

In trying to upload images to a server, I often get the following error "Maximum request length exceeded.".

I have tried to check for the size in codebehind but it appears that the error comes from the service provider or something else because I never even get to debug it since the error appears even before the Page_Init Subroutine in codebehind.

What is the best method of checking for the image size and then resizing it dymamically to a maximum file size as well as length and width size.

View 1 Replies

Web Forms :: Optimize Websites Load Page Time

Oct 18, 2013

How I can optimize my website's  load page time?

View 1 Replies

Inject Code Into Masterpage / Html Head From A User Control?

Jan 10, 2010

I am struggling with something that I guess should be standard practice really. I have a number of user controls that use some JQuery plugins. I do not really want to link to the extra CSS and JS files from my main masterpage as this would cause extra load to the user the first time they hit the site, (admittedly it would only be the once), so I was just putting them links into the top of the user control. Then I looked at my source HTML, not nice! Even worse for controls that repeat multiple times on a page.

So I was thinking is there a way of injecting them into the Head of the page when they are needed from the User Control. For that matter is there a way of doing it to the footer for JS stuff?

View 4 Replies

Web Forms :: Disable Resizing Multi Line Text Box

Apr 11, 2010

how to disable the resizing of a multiline textbox control. I'm trying to use the textarea to display rules for a contest, however I dont want them to be able to change the size of it by dragging it around from the bottom right corner.

View 5 Replies

Web Forms :: Preventing Background Image From Stretching / Resizing?

Jun 10, 2010

I have a 40x1600 image that I use for bg and I do repeat-x in my CSS, like such:


View 1 Replies

Web Forms :: User Control - Container Intelligent Resizing?

May 21, 2010

dynamically resize a user control depending on the container it is currently in,or the other way around.and be able to resize a container based on the user controls size.Let me explain.Right now I have a page using the Ajax TabContainer and within one of the tabs I have my user control.My user control accepts a DataSet and simply lists the results in a GridView.

Right now when you go to the tab everything displays fine, except the results go all the way to the bottom of the page.What I would like to do,is to either resize the TabPanel to match the amount of data,or have a fixed height/width for the user control and make it scrollable.This user control can be on a number of different pages with different sized containers,so I am at a standstill.Has anyone done anything like this before or have an idea how it could be accomplished?

View 2 Replies

Web Forms :: MasterPage Client Onload From ContentPage And Get Value From ContentPage Code Behind

Oct 24, 2010

I am trying to get value of a variable"offset" code behind of content page which is set from default.aspx through onload event from master page.But it gives null value every time. Here is my code.


<asp:ContentPlaceHolder runat="server" id="Headers"> [code]....

View 10 Replies

Web Forms :: Optimize ScriptResource.axd And WebResource.axd To Reduce Page Size?

Dec 14, 2010

In my web application, I have used AJAX Toolkit and my .net version is 3.5. When I run the application and save the page, so many ScriptResource.axd and WebResource.axd generate which makes the file size 200 to 300 KB more big. After doing the same procedures mentioned in the above link, it was working fine as all ScriptResource.axd and WebResource.axd file is removed.

But when I go from one page to another page using on click, then Object Expected Error comes and when I debug it,I found one ScriptResource.axd file containing query string like .axd?d=-bA.like this and Request. GetResponse cannot find the file and it gives 404 errror (File Not Found).

View 3 Replies

Web Forms :: How To Optimize Page Load With Expected 3K Records To Display

Feb 1, 2011

I am looking for a way to improve user experience on a UI that can display on average 3K records in the Grid. Today's implementation limits grid on the page to 20 records with a "Next" option to continue through the data. Requirement is to load all of the available data in one shot and allow Sorting, Filtering, etc.

Environment: ASP.NET 3.5 SP1, WCSF 2.0, IIS 7.0

View 6 Replies

Forms Data Controls :: Optimize Gridview Paging Process?

Jan 5, 2011

here's what i'm doing:

1. i'm retreiving data through API(atom format),

2. i'm storing all retreived data in a datatable,

3. i'm binding this datatable to a gridview

the porblem is that these APIs are feeding thousands of records, so each time i'm paging a new page_index i have to go through all ofl the above steps (1, 2 and 3)this procedure is taking a lot of time

i believe there is a faster way to do that ,

View 4 Replies

Forms Data Controls :: Resizing Image With System.drawing Object?

Mar 11, 2011

I have a photo on my server image1.jpg in high resolution, and I need it to be resized everytime it is send to client depending with dimension I put but should not make extra file on disk.

I used aspjpeg for this in past but now I need something that can be used on servers that do not have aspjpeg instaled.

View 6 Replies

Copyrights 2005-15 www.BigResource.com, All rights reserved