Parent Window Losing Font Size?
Mar 11, 2010
I have a simple asp.net web page that uses an ordinary Verdana small font to display a datagrid view.
This web page uses the window.open() method to open up a child pop up window.
My problem - when I close the child pop up window and return to the parent window - I find that
the font size has changed (ie the parent window's font size has become bigger).
View 3 Replies
Similar Messages:
Feb 21, 2011
I have an aspx (parent) that call ShowModalDialog another aspx (child). and on the child, i close the windows using script
Page.ClientScript.RegisterStartupScript(Page.GetType(), "reloadpage", "var link;link=window.opener.location.href;window.opener.location.href=link;self.close();", true);
The child window close, go back to parent window, and reload the page and no confirmation box to refresh the page, working as expected. but all my previous entry to the screen is gone. how to retrieve it back or any work around?
View 4 Replies
Jan 6, 2010
Is it possible to change the font and font size of the data in the dropdown of a Combobox?
I've tried;
.CustomComboBoxStyle .ajax__combobox_itemlist li {
width: 150px;
font-family:Verdana;
font-size:smaller;
}
and setting the CssClass to it, but doesn't affect the font. I can adjust the width of the dropdown object, but I need to change that gawd awful font.
View 7 Replies
Aug 9, 2012
I use this class for my DropDownList
.DPCDDL {
float:left;
width:200px;
height:20px;
margin-top:1px;
font:bold 12px Tahoma;
}
In my dropdownlist just selected item font be (bold 12px)
I want that all item that are in my dropdownlist font be bold 12px how i can do it?
View 1 Replies
Jun 24, 2010
Just upgraded from SSRS 2005 to 2008 (on a test server). I have a report with a list and in this list are about a dozen fields in textboxes whose fonts are all set to Verdana 8pt. When I run the report from the Report Manager, one of the 12 fields is displaying in a serif font (like Times New Roman) at around 12pt. When I preview the report in Visual Studio every field looks fine and when I run the same report in SSRS 2005 every field looks fine. Has to be a SSRS 2008 bug!
View 3 Replies
Dec 19, 2010
I am using TabContainer with some controls on each tab (asp: labels, text boxes). When redirecting to the page that contains the TabContainer, the tabs and their content loads as expected, but when there is a postback, and the page refreshes, the TabContainer UI changes - the font size of the labels gets bigger, the text boxes become bigger and their location changes a bit (not aligned as before), and the tab header is partially hidden. I am using IE7.
I dont know if this is relevant but in some of the text boxes i use edit mask extender as well for date. Also, I have used a table inside the TabContainer for layouting the controls.
View 1 Replies
Oct 18, 2010
i have an aspx page in which a link in the grid view opens a popup page . the data in the grid view would be dynamic and i need to send the id of the row of grid while calling the child window. i get the id using sender.id, but how would i send this using window .open()?
View 2 Replies
Jan 19, 2010
i have opend a popup window using C#.And in pop up window i have a button,clicking that button it should redirect to another page.Here i need to close the popup window and redirect to a page..Right now redirected page is opened in popup window..but it should be opened in parent window .
View 3 Replies
Mar 17, 2011
I'm drawing labels to an image file. It all works perfectly, except the font size.
gfx.DrawString(
thisTempLabel.LabelText,
new System.Drawing.Font(
thisTempLabel.LabelFont,
(float)thisTempLabel.fontSize
),
Brushes.Black,
new PointF(thisTempLabel.x, thisTempLabel.y)
);
Problem is my users pick font sizes in PX, and System.Drawing.Font requires an EM size. I don't know how to resolve this. Can I render the text using pixels?
View 2 Replies
Sep 22, 2010
I need to change the font size of bold thing below. I have a css for use but this bold part needs font changed to 8px instead of 10(css). how to change in Code behind.
[code]...
View 2 Replies
Feb 26, 2010
I was looking for a way to shrink the font size of the items in a document Map. Is there a property in either the report where that can be done ?
View 3 Replies
Jun 22, 2010
i've the following code in aspx page
<asp:Label ID="CittaLabel" runat="server" Text='<%# Eval("Citta") %>' Font-Size='<%# ReturnFontSize(Eval("Big")) %>'/>
and this is my code behind service function
Protected Function ReturnFontSize(ByVal Big As Boolean) As FontUnit
If Big Then
ReturnFontSize = FontSize.Medium
Else
ReturnFontSize = FontSize.Small
End If
End Function
But i get always a font very very small. So my question is : for changing "Font-Size" proprety of a control, from code behind, which return type i have to use, assuming that FontUnit not work?
View 2 Replies
Mar 5, 2011
On the MasterPage.Master i set the the font size in my webpage <body onload="checkCookie()">
<div id="menu">
<ul>
<li><a href="javascript:decFontSize();" class="minus"></a></li>
<li><a href="javascript:defaultFontSize();" class="default"></a></li>
<li><a href="javascript:incFontSize();" class="plus"></a></li>
</ul>
</div>
and here is the associated Javascript
var min = 11;
var max = 18;
function checkCookie(){
var FontSize=getCookie('FontSize');
if (FontSize!=null && FontSize!="")
{var p = document.getElementsByTagName('p');
for (i = 0; i < p.length; i++)
{p[i].style.fontSize = FontSize + "px"}}
else {
{
var p = document.getElementsByTagName('p');
for (i = 0; i < p.length; i++)
{ p[i].style.fontSize = FontSize + "px" }
}
setCookie('FontSize', 13, 365);
}
}
function getCookie(c_name) {
if (document.cookie.length > 0) {
c_start = document.cookie.indexOf(c_name + "=");
if (c_start != -1) {
c_start = c_start + c_name.length + 1;
c_end = document.cookie.indexOf(";", c_start);
if (c_end == -1) c_end = document.cookie.length
return unescape(document.cookie.substring(c_start, c_end));
}
}
return ""
}
function setCookie(c_name, value, expiredays) {
var exdate = new Date();
exdate.setDate(exdate.getDate() + expiredays);
document.cookie = c_name + "=" + escape(value) + ((expiredays == null) ? "" : "; expires=" + exdate.toUTCString());
}
function defaultFontSize() {
var p = document.getElementsByTagName('p');
for (i = 0; i < p.length; i++)
{ p[i].style.fontSize = 13 + "px" }
setCookie('FontSize', 13, 365);
}
function incFontSize() {
var p = document.getElementsByTagName('p');
for(i=0;i<p.length;i++) {
if(p[i].style.fontSize) {
var s = parseInt(p[i].style.fontSize.replace("px",""));
} else {
var s = 11;
}
if(s!=max) {
s += 1;
}
p[i].style.fontSize = s+"px"
}
setCookie('FontSize',s,365);
}
function decFontSize() {
var p = document.getElementsByTagName('p');
for(i=0;i<p.length;i++) {
if(p[i].style.fontSize) {
var s = parseInt(p[i].style.fontSize.replace("px",""));
} else {
var s = 11;
}
if(s!=min) {
s -= 1;
}
p[i].style.fontSize = s+"px"
}
setCookie('FontSize',s,365);
}
The problem with the following code above that on every post the text size "flashes". By saying flashes i mean that it first is displayed with the default size (13px) and then is set to the value set by the cookie.
View 2 Replies
Jul 6, 2013
I want to change the font size/text size of radiobuttonlist. I used the following code:
<asp:RadioButtonList ID="rblCatName" runat="server" Font-Size="9px" AutoPostBack="true" RepeatDirection="Horizontal" onselectedindexchanged="rblCatName_SelectedIndexChanged">
but it is working. I also tried in the code behind but is not working:
[Code].....
what is should do to change the radiobuttonlist font size.
View 1 Replies
Dec 3, 2010
I have the following HTML
<tr>
<td class="label" valign="top">
Affiliate Party
</td>
<td class="field">
<input type="hidden" name="ctl00$MainContent$ExternalAccountAttributes$AffiliatePartyId" id="AffiliatePartyId" />
<input name="ctl00$MainContent$ExternalAccountAttributes$AffiliatePartyName" type="text" id="AffiliatePartyName" class="PartyLookup" />
</td>
</tr>
and the following Javascript/jQuery
$(".PartyLookup").after("<img src='Images/book_open.png' class='PartyLookupToggle' style='padding-left:4px;' />");
$(".PartyLookupToggle").click(function () {
window.open("PartySearch.aspx", "PartySearch", "width=400,height=50");
return false;
});
I need to be able to flag ANY PartyId input field with class="PartyLookup" so that it will modify the DOM and include the image next to the input field. The popup window returns data to populate both the hidden and text fields, but since the click() is generic I need to pass it the ID of the input field.
View 2 Replies
Jan 28, 2010
i have following datalist in WhatsNews.aspx page.
[Code]....
when i open home page and click a link in whatsnew section, IE 8 opening the links in a new window.but firefox 3.5.7 opens in parant window, just like i want.how can i make IE 8 also open the links in parent window?
View 3 Replies
Sep 25, 2010
I am trying to return true or false from popup window to the parent window. Actually the parent window has a button control, which on click popup another window. The popup window holds some emailing data and a button "send". This "send" button onclick send email. Now I want to return true if the email is successfully sent otherwise false, to the parent window. Depending on returning value a label present on parent window displays a text message. But I am not able to implement it. Because it might happen that the popup window is blocked by web-browsers popup blocker or popup window is accidentally closed by user. So how can I confirm to parent window whether or not the email is successfully sent?
View 5 Replies
Nov 17, 2010
i have a page Parent.aspx,, and this is responsible to open the window as a model dialog(model.apsx). model.apsx has OK button when we click on this button then server side method called to save the data. while saving the data it return the id of saved data. i need this id on my Parent.aspx.Cs file, so how can i get this id on my Parent.aspx.cs file?
View 5 Replies
Mar 10, 2011
I have a login page that is loaded in popup window (colorbox) and after user logs in it should be closed and parent window should be loaded with new page.
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Do While reader.Read()
If Trim(reader("ZAP").ToString()) = Trim(textBoxZap.Text) Then
Session("A") = "1"
Response.Redirect("~/default.aspx")
Else
lblErr.Text = "incorect"
End If
Loop
So once the buton is clicked and user name and password is corect popup window should be closed and user redirected to default aspx.
View 1 Replies
May 20, 2010
Refresh the Parent Window. I open the child window,I want that on close button click on child window,parent window refreshes
Code:
[code]....
I searched all on the net & find the above soln,But its not refreshing.when i click on button1,then some Pop up appears see in Pic(with buttons Retry & Cancel). When i click on Retry again the child window loads Then again i click on button1,again popup appears & so on & on.
View 10 Replies
Feb 22, 2011
I have a page (parent) that open up a popup window using window.open javascript. User will then work on the popup window and the result will be stored in a session variable. When the user close the popup window, how can I put the value of the session variable back to the server control textbox of the parent window?
View 3 Replies
Jul 29, 2013
I have a page, which contains 2 textboxes. When i click on the first textbox, i have to open a child window (tool), that contains a gridview control with 2 columns (corresponding to the 2 textboxes). When the user clicks on any row in the gridview, it should send back the 2 column values back to the parent window to the corresponding 2 textboxes. how do i achieve this?
View 1 Replies
Apr 29, 2010
I have a page wich opens a popup window. I want to pass some variables, like some textbox.text and 2 dataTables from parent window to the popup window. And then I'll have to return some vars from popup window to parent window. So what is the best way to do this,
1) using Sessions("")
or
2)passing the variables as parameteres:
LinkButton1.Attributes.Add("onclick", "window.open('popup.aspx?field1=" & value1 & "&field2=" & value2 & ......
I don't know if it's appropiated passing 8 or 10 variables as the option2 because the user will see a very long url with all the variables, but maybe is more efficient than using Sessions.... Anyway, could somebody clear me up?
View 12 Replies
Feb 15, 2011
I am using a master page in my project. I opened a popup window from content page. What I want to do is, when I close the popup window, the data in the textbox available in popup should be assigned to a text box in parent form. But I dont want to refresh the parent window when I close the popup window. Can any one tell me how can I access textbox in a parent window from a popup window without refreshing the screens.
View 3 Replies
Apr 16, 2010
I want to receive value from parent's control to popup window's code behind. for example
<asp:RadioButton ID="rdoRate" GroupName="CouponType" value="0" runat="server" checked/>Rate
<asp:RadioButton ID="rdoAmount" GroupName="CouponType" value="1" runat="server"/>dollar
and recive selected radiobutton's value from popup window's code behind. My Solution is make querystring and pass the value.
for example >
window.open(url + ?selectedRadioVal=" + $("#~~checkedradiovalue~~) .. blah balh)
and receive the value by Reqeust.Querystring.Get().
But I can't send very long string. (maybe the url length is limited, right? Is there any good way to solve?
View 1 Replies