Web Forms :: Small Gap Between Two Zones In Adjacent Columns?

Feb 25, 2010

I have a WebPartZone in each of two adjacent columns. There is a gap of about 4 pixels between the two columns that I cannot remove.

I have two zones with the following markup:

[Code]....

On running the page, the relevant source code is:

<%-- End of contents and div containers for Column 1 Zone --%>
...jText at the end of this Webpart.</span>
</td></tr></tbody></table>
</td></tr></table>
</td></tr>
<tr>td style="padding:0;height:100%;"></td>
</tr></table>
</td></tr></table>
</div>
</div>
<%-- Start of div containers for Column 2 Zone --%>
<div id="ctl00_Main_MainCol2" class="box33" style="Width:39.9%;">
<div id="ctl00_Main_MainCol2Con" style="width:auto; margin-left:0.0em; margin-right:0.0em;">
<table cellspacing="0" cellpadding="0" border="0" id="ctl00_Main_ZoneCol2">
<tr><td style="height:100%;">
<%-- The following 2 tables both have cellpadding="2" which appears to be causing the problem --%>
<table cellspacing="0" cellpadding="2" border="0" style="width:100%;height:100%;">
<tr><td>
<table cellspacing="0" cellpadding="2" border="0" id="WebPart_wp1787670866" style="width:100%;">
<tr><td cellpadding="0" style="padding:0px;">
<div id="ctl00_Header_WebPartManager1_wp1787670866"></div>
<%-- Start of contents of Column 2 Zone --%>
<table cellspacing="0" cellpadding="10" style="border: thin solid #000000; background-color: #8db3e2; width:
100%;">
<thead>
</thead>
<tbody>
<tr>
<td><span style="font-size: 12px;">Text at the beginning of this WebPart....

Two of the tables, which I think are rendered by the WebPartZones, have cellpadding="2". This seems to be giving the 4 pixel gap between the columns.

View 2 Replies


Similar Messages:

Forms Data Controls :: Single Row Below The Current Row Which Is Embedded From Multiple Small Columns?

Apr 23, 2010

i have grid view with one line per row, I added new field with is large text box 100 chars + and I want it to be in single row below the current row which is embedded from multiple small colums, e.g. name, age, address, etc. What is the simplest and correct way to do it, I am using gridview with item template already.

View 4 Replies

Css - Prevent A Menu From Expanding Over Adjacent Content?

Nov 25, 2010

I have a two column layout, with a vertically oriented ASP.NET menu control in a narrow left column, and info related to the selected menu item in a wide right column:

<div class="span-4">
<asp:Menu ID="categoryMenu" runat="server" Orientation="Vertical">
</asp:Menu>
</div>
<div id="product-grid-pane" class="span-12 last">
<asp:GridView ID="productGrid" runat="server" AutoGenerateColumns="false" ShowHeader="false" Width="100%">
</asp:GridView>
</div>

If a menu item contains long text, the menu simply expands over the grid. How can I prevent this? I might need two answers here: the pure CSS one, which would be very nice if the menu control rendered nice, simple UL elements, but it seems to prefer an impenetrable table based structure I may need additional help styling properly.

View 1 Replies

Web Forms :: Unable To Move WebParts Between Zones

Apr 26, 2010

We have a generic site which we deploy to clients and they personalise the text using the web parts. The problem we are currently experiencing is that they are unable to move web-parts between zones. This is not a JS issue as no errors are being thrown and this is not a CSS issue either, as we re-deployed the website here on our own server and it works perfectly fine. On our client's site, we can drag parts around in the zone it is in, however when we try to move a part out of that zone, we are given a circle cursor with a line through it. Adding parts to a zone is not an issue.

This could perhaps be linked to a previous issue of being unable to view any editable parts of a webpart. I resolved this by removing all the WebPersonalization from the WebPersonalization table in our MSSQL database.

View 2 Replies

Web Forms :: Time Zones And DateTime Parsing?

Apr 2, 2010

I have the code:

[Code]....

[Code]....

I live in Saint-Petersburg, so s="11 : 15 : 14". What should i write in web.config or in some else place for take the similar hours?

I can't to use ToString, ToUniversalTime and change Parse arguments (it data takes from web services).

View 6 Replies

Web Forms :: WebPart - Smooth Transition Between Zones?

Jan 12, 2011

I would like to achieve a nice smooth transition when the user moves controls between the WebPartZones similar to how iGoogle implements it. I've not yet been able to achieve this - the transition is very jumpy and not very smooth (I cannot use SilverLight).

Has anybody achieved this using WepPartZones without the use of SilverLight?

View 1 Replies

AJAX :: Adjacent Combo Boxes Take Space According To Their Data On Google Chrome

Aug 28, 2010

I have a page where I want to keep several combo boxes adjacent to each other. I have put them in divs that are floated left.

This works fine in IE, Firefox. But when I render the same page on Chrome I observe the uneven gap between combo boxes. Upon analysis I found out that each combo box is occupying space based on the data inside it.

This happens because on Safari and Chrome, the option list control is placed differently as compared to that on IE and Firefox.

Please see the following code from ComboBox.pre.js (in AjaxControlToolkit source/Server/)

[Code]....

This is how it looks:

I have tried doing the following but none of them helped:

Changed the RenderMode of combo box to 'block' from 'inline'Commented the lines above in combobox.pre.js
Basically, as per my study, unlike IE and FF, on Chrome, the outer combo box div occupies space as the width of absolutely placed ul present inside it which anyways doesn't seem to be a correct implementation.

View 2 Replies

How To Create Web Part Zones For The Td

Aug 4, 2010

I am using ASP.NET 2.0 and C#.

I have a html table, which has 2 rows and 2 columns.

I want to create web part zones for these 2 rows and 2 columns.

For each td, i want a web part zone, so that users can move data across the table.

How to create web part zones for the td?

View 2 Replies

C# - Handle Different Time Zones In A Website?

Aug 16, 2010

I got this answer from Kjensen and read the answers, but this is a different webapp

I'm running scheduled events that process incoming orders, set Picking material, manage Track & Trace numbers, etc ... and I do this at a specific time of the day (set in Administration Panel)

My server is in UK (DiscountAsp.net) but I'm 2 hours ahead.

What I really wanted is, every time I call DateTime.Now that would be automatically changed to my time instead of Local Server Time. This should handle Daylight savings as well.

I thought about making a Extension to simply call DateTime.MyLocalTime and there use TimeInfo to add / subtract the correct hours.

In good old days I did this in Global.asa (ASP) ... I just wanted to know if there is a better way to handle this.

View 1 Replies

Display The ServerTime In Four Different Time Zones With JScript?

Nov 28, 2010

I am adding a custom header to a SharePoint master page and I would like to display the current time in four different time zones. However, I don't want to use the client's time as there is no way to know what time zone the client will be in, or if they have the correct time on their computer.

Ideally, the time should be displayed as follows:

Dallas: (UTC-6 w/ DST support) Zulu: (UTC) Iraq: (UTC+3) Afghanistan: (UTC+4.5)

My problem is that I really don't know anything about ASP.NET, as I'm a PHP guy myself. So I need a way to pass the serverTime as a variable that JavaScript can use to perform calculations on to display the correct time zone.

UPDATE:

I need the clock to update as each second changes. So it is a live time instead of a static time.

UPDATE 2:

This is the code I'm using.

<script runat="server">
Sub Page_Load(ByVal Sender As Object, ByVal E As EventArgs)
End Sub
Public Function dtBase() As Double
Dim d1 As Date = New Date(1970, 1, 1)

[Code]....

UPDATE 3:

Still don't know if the code worked. My SharePoint server rejected the page for the code blocks. I have absolutely zero idea how to do code-behind. The JS works, but if the client's time is off, the site displays incorrect times. Really wish I could just code this in PHP. I'd be done a week ago. ;)

UPDATE 4:

This update is for anyone that stumbles across this in the future looking for the answer to the problem. The code above has been updated to work correctly. The only catch is that SharePoint disallows code by default, so to enable it, you have to modify the web.config file. The web.config file is usually in the root directory of the site. Inside that file (which is XML), you'll find a tag. Somehwere inside of that, you should find , and inside of that, you should find . Inside of that tag, you want to add this:

<PageParserPath VirtualPath="/relative/path/to/your/file/here.aspx" CompilationMode="Always" AllowServerSideScript="true" />

View 3 Replies

WebMatrix :: How To Keep The Image Transparent Zones With WebImage Require

Feb 20, 2011

How to keep the image transparent zones with WebImage require?

I saw that this function may require an image from a data base or from a file.

[Code]....

But when I call the image, the transparent parts changed to black.

Is there any way to keep the transparent areas of the image?

How would showing the picture in real size?

View 6 Replies

Web Forms :: Implementing A Time Based Event Time Zones?

Apr 18, 2010

I'm having an issue working out how to implement this time based event. Basically, my program needs to send out an email at 12AM monday morning. But the email needs to go based on the user's local time not 12AM server time.

the problem i have discovered is Daylight savings. I used current server time as 12:00AM (my local time) and my actual offset is -7:00 UTC but after the calculation i get -6:00 utc because of daylight savings. If a user was in -7:00UTC then he/she will not get the email at 12am localtime but an hour late.

View 2 Replies

Web Forms :: Trying To Create An App Which Shows Current Time In 6 Time Zones

Mar 15, 2010

I am trying to create an app which shows current time in 6 time zones (Sydney, S'pore, india, london, EST and CST).

I am having troubles handling DST, because DST starts and ends on different dates in different countries.

More over I want to make it configurable (add/remove cities from the list).

Currently I have added the cities in .config with their timezone differences (with respect to GMT).

[code]....

View 3 Replies

Parent Columns And Child Columns Don't Have Type-matching Columns

Aug 3, 2010

i am making relation between two datatables and m getting this error

in this ds.Tables(0).Columns("In_ID") datatype is string
ds.Tables(1).Columns("row_id") datatype is integer

how i do the type casting here to make dataset relation

ds.Relations.Add("Rel_1", ds.Tables(0).Columns("In_ID"), ds.Tables(1).Columns("row_id"), True)

View 3 Replies

Forms Data Controls :: Create An ASP Grid With Dynamic Columns With An Ability To Freeze Columns And Rows

Sep 20, 2010

I created a gridview that is made up of 4 gridviews and using a stored procedure to populate it. I create columns at runtime because the number of columns changes all the time.To make the grids editable I am adding template fields at runtime as I create the columns, this is to ensure that a user is able to edit the cells and some foot values update. Reason why I have four grids is to freeze rows and columns like in excel using javascript. The problem is that performance is very bad especially in IE, the grids take a long time to load. I am not sure if this is caused by the data load or the creation of text boxes. see some of the code below for my _aspx page:

[Code]....

View 1 Replies

Forms Data Controls :: In Page User Able To Select Gridview Columns And It Will Hide Remaining Columns

Mar 18, 2010

in asp.net page user able to select gridview Columns, and it will hide remaining columns and that selection done by check box with column list bellow is Image link , what exactly I am looking for [URL] it look bellow after selection of column done [URL]

View 1 Replies

Web Forms :: How To Create A Small Timer

Sep 28, 2010

i am making one web site(online test),now i want to give some time limit to answer the questions,like 10 min.how can i make a timer with 10 min in .net to show the time in label control..

View 2 Replies

Web Forms :: Regex To Be Used In The Below Small Application?

Mar 29, 2011

The below is a very simple application to get live data from a website and put the required response in a checklistbox.

In the httpwebresponseresponse, what I need is the value before ">scorecard<", starting from <td> till <a. There fore for the below text, I will have four items(there are four >scorecard<) added to my Checkedlistbox1

[code]....

View 1 Replies

Web Forms :: Creating A Small Pop-up Window?

Jun 2, 2010

Here is the general idea of what I am trying to accomplish.Upon page load of the aspx, I am dynamically creating a table (that is populated by database information), one of the columns in the table will display a "NotePad" image. When selecting this image, I need it to make a borderless small window pop up with a blank text box inside of it. The user will be writing notes and information in this text box and then selecting a close window button below it to return to the main page. I need to make this as seamless and fluid as possible, so much so that the pop up needs to look like it was still part of the main page when launched. I also will need to require that the user must close the pop up window before returning to the main screen as well.

Using VB.NET, Is there any way to create a pop up window when a specific cell is clicked on (On Click event) , that will display a small (set size) pop up window with it's border but no titlebar, status, menu, etc. That requires the user to click the close button (provided below the textbar) to return to the main screen?I have found numerous posts on pop-ups, title bars, etc, but none have been much help when I try to put it all together.

View 36 Replies

Web Forms :: How To Open A Small Internet Window In VB.net

Feb 21, 2011

I want to open a smaller internet window to show some data that is to large to go in the calendar control. I found the code below, but it says the following error:It puts a blue line under the last part: </script>" and says the error below. What am I doing wrong and is there any other way to accomplish this task?

Error 5
Statement cannot appear within a method body. End of method assumed.

View 4 Replies

Web Forms :: Display The Image As Small Popup?

Aug 27, 2010

I want to give small link beside test box. If they click on link, I want to display the image as small popup.

View 4 Replies

Web Forms :: How To Upload Small Video And Watch With Any Player

Nov 26, 2010

I develop one simple application in this application i want to upload a small video and i watch that uploaded video any player .

View 1 Replies

Web Forms :: Convert A String To Small Date Time

Apr 20, 2012

Any code to convert string to smalldatetime in vb.net.

View 1 Replies

Web Forms :: Menu Control - Small Hyperlink Area In Firefox And Chrome

Feb 16, 2010

I am having an issue with the hyperlinks that are created as part of a horizontal menu control. You have to position the cursor in a very narrow range near the very top of the menu option to find the hyperlink associated with that menu option. This is only the case with Firefox and Chrome. You can try it for yourself at [URL] Try clicking any one of the horizontal menu options ("Services" for example. You will see that it is very particular where it will allow you to click to activate the hyperlink. Markup:

[Code]....
Skin:

[Code]....
CSS:

[Code]....

View 2 Replies

Configuration :: Create A Small Web Application With 2 Forms In Visual Studio 2008?

Aug 3, 2010

I have create a small web application with 2 forms in visual studio 2008 framwork 2.0 database
sql server 2005 but i am little confuse about how to and where database file should place when deploy application on web server.

View 2 Replies







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