dropdownlist not getting hidden using AsyncpostbackTrigger of UpdatePanel
There is one DropdownList outside the update panel. The update
Panel:UpdatePanel1 contains a checkbox.
What is required is that when users select the check box, the dropdownlist
should get hidden in an asynchronous manner ( with out any postback ).
With the below setup, when I use the PostBackTrigger , then dropdownlist
gets hidden on checking the checkbox. However, with AsyncPostBackTrigger
it doesn't gets hidden at all. The Check box code behind event does gets
called by the way in both cases.
Why Dropdownlist is not getting hidden when using: AsyncPostBackTrigger ?
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:DropDownList runat="server" ID="ddlCountries"></asp:DropDownList>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:RadioButton ID="radioSelectCountries" Text="Hide Countries"
runat="server"
OnCheckedChanged="radioSelectCountries_CheckedChanged"
AutoPostBack="true" />
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="radioSelectCountries"
EventName="CheckedChanged" />
</Triggers>
</asp:UpdatePanel>
Code Behind::
protected void radioSelectCountries_CheckedChanged(object sender,
EventArgs e)
{
if (radioSelectCountries.Checked == true)
ddlCountries.Visible = false;
else
ddlCountries.Visible = true;
}
Thursday, 3 October 2013
Wednesday, 2 October 2013
my site shows white space on right in mobile chrome but not desktop chrome
my site shows white space on right in mobile chrome but not desktop chrome
site in progress: http://www.scissormanmusic.com
This is the first site I've made since learning Javascript/Jquery so
please be nice to me. I used Bootstrap, Javascript & Jquery to add
responsiveness to my site & it works great on FF24 & Chrome30! But when I
view this site in portrait mode in the mobile version of Chrome on my
Galaxy S3 there's this white space on the right I can't seem to find the
cause of. In landscape mode the white space isn't there & the site looks &
behaves like it should.
I'm using the following meta tags I thought would keep this problem from
happening:
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
Quite confused as to why it displays differently between the mobile &
desktop versions of Chrome! And only in portrait mode!
I'd like to also note that because I've used Javascript/JQuery to make my
site responsive, I did not add any @media queries.
Any help would be greatly appreciated. Thank you!
site in progress: http://www.scissormanmusic.com
This is the first site I've made since learning Javascript/Jquery so
please be nice to me. I used Bootstrap, Javascript & Jquery to add
responsiveness to my site & it works great on FF24 & Chrome30! But when I
view this site in portrait mode in the mobile version of Chrome on my
Galaxy S3 there's this white space on the right I can't seem to find the
cause of. In landscape mode the white space isn't there & the site looks &
behaves like it should.
I'm using the following meta tags I thought would keep this problem from
happening:
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
Quite confused as to why it displays differently between the mobile &
desktop versions of Chrome! And only in portrait mode!
I'd like to also note that because I've used Javascript/JQuery to make my
site responsive, I did not add any @media queries.
Any help would be greatly appreciated. Thank you!
Tomcat opening a lot of instance in memory
Tomcat opening a lot of instance in memory
Well, i have only one tomcat server started, but when i executed the
command "htop" in my ubuntu server i saw that have 16 tomcat6 instances in
memory with the exactly same "command" but PID different. See the image
bellow:
Well, i have only one tomcat server started, but when i executed the
command "htop" in my ubuntu server i saw that have 16 tomcat6 instances in
memory with the exactly same "command" but PID different. See the image
bellow:
How to bind a not visible value to Hyperlink URL in Gridview
How to bind a not visible value to Hyperlink URL in Gridview
I have a Hyperlink on one column in my gridview. Lets say this column has
different fruits..
Fruits Amount
Apple 2
Banana 1
Kiwi 4
Orange 5
My fruits should be Hyperlink and when i hover or click on the link i want
to send the id's from the fruit to next page and not the Fruitnames.
How can i do that? I only manage to make links to next page where the
names from fruits Comes as Parameter and i dont want that. I also dont
want to make a select on the id's from the fruit because then it Comes as
a new column in my gridview and it's not interesting to see the id's of
the fruits but it important to send them as Parameters because i Need them
on next page.
<asp:HyperLinkField DataNavigateUrlFields="FruitName"
DataTextField="FruitName" HeaderText="Fruits"
DataNavigateUrlFormatString="Cashier.aspx?FruitID={0}" />
I have a Hyperlink on one column in my gridview. Lets say this column has
different fruits..
Fruits Amount
Apple 2
Banana 1
Kiwi 4
Orange 5
My fruits should be Hyperlink and when i hover or click on the link i want
to send the id's from the fruit to next page and not the Fruitnames.
How can i do that? I only manage to make links to next page where the
names from fruits Comes as Parameter and i dont want that. I also dont
want to make a select on the id's from the fruit because then it Comes as
a new column in my gridview and it's not interesting to see the id's of
the fruits but it important to send them as Parameters because i Need them
on next page.
<asp:HyperLinkField DataNavigateUrlFields="FruitName"
DataTextField="FruitName" HeaderText="Fruits"
DataNavigateUrlFormatString="Cashier.aspx?FruitID={0}" />
Tuesday, 1 October 2013
Moving compass on MKMapview when rotating
Moving compass on MKMapview when rotating
The compass that appears in the top right of the map when rotating is
being hidden by other elements on the screen. I tried moving it in a
manner similar to moving the "legal" label, but if I run:
for(UIView *subview in self.mapView.subviews) {
NSLog(@"Subview : %@", subview);
}
It logs:
2013-10-01 21:15:48.961 MP Staging[6890:60b] Subview : <UIView:
0x1757faa0; frame = (0 0; 320 504); autoresizesSubviews = NO;
gestureRecognizers = <NSArray: 0x18815fd0>; layer = <CALayer: 0x1757fb00>>
2013-10-01 21:15:48.963 MP Staging[6890:60b] Subview :
<MKAttributionLabel: 0x18813a10; baseClass = UILabel; frame = (11 484; 24
11); text = 'Legal'; clipsToBounds = YES; alpha = 0.5; autoresize = RM+TM;
userInteractionEnabled = NO; layer = <CALayer: 0x18813bc0>>
How would I go about moving that compass?
The compass that appears in the top right of the map when rotating is
being hidden by other elements on the screen. I tried moving it in a
manner similar to moving the "legal" label, but if I run:
for(UIView *subview in self.mapView.subviews) {
NSLog(@"Subview : %@", subview);
}
It logs:
2013-10-01 21:15:48.961 MP Staging[6890:60b] Subview : <UIView:
0x1757faa0; frame = (0 0; 320 504); autoresizesSubviews = NO;
gestureRecognizers = <NSArray: 0x18815fd0>; layer = <CALayer: 0x1757fb00>>
2013-10-01 21:15:48.963 MP Staging[6890:60b] Subview :
<MKAttributionLabel: 0x18813a10; baseClass = UILabel; frame = (11 484; 24
11); text = 'Legal'; clipsToBounds = YES; alpha = 0.5; autoresize = RM+TM;
userInteractionEnabled = NO; layer = <CALayer: 0x18813bc0>>
How would I go about moving that compass?
JQuery hide div based on url hash and string
JQuery hide div based on url hash and string
I'm attempting to hide a div based on the url hash tag. I'm using a jquery
plugin called zozo tabs that allows for deep-linking and it shows and
hides divs.
There is a particular div on the page (not in the tab area) I would like
to hide given the url/s. I've searched but cannot figure it out. Please
excuse my javascript noobness!!! I've tried this. No such luck. It doesnt
seem to work. Any help would greatly appreciated.
I've tried php but it doesnt work on the hash
To start the plugin creates this type of url
http://localhost:8888/site/funds/#tabbed-nav=fund-strategy
The html is:
<ul>
<li data-link="fund-strategy"><a>Fund Strategy</a></li>
<li data-link="portfolio-characteristics"><a>Portfolio
Characteristics</a></li>
<li data-link="performance"><a>Performance</a></li>
</ul>
<div class="strategy">This copy shows when the li is clicked on</div>
This is me attempting to hide a div given the url with js
var jQ = jQuery.noConflict();
jQ(document).ready(function() {
var url = document.location.href;
if
(url.indexOf('http://localhost:8888/site/funds/#tabbed-nav=fund-strategy')
>= 0) {
jQ('.fourth').hide();
};
});
I'm attempting to hide a div based on the url hash tag. I'm using a jquery
plugin called zozo tabs that allows for deep-linking and it shows and
hides divs.
There is a particular div on the page (not in the tab area) I would like
to hide given the url/s. I've searched but cannot figure it out. Please
excuse my javascript noobness!!! I've tried this. No such luck. It doesnt
seem to work. Any help would greatly appreciated.
I've tried php but it doesnt work on the hash
To start the plugin creates this type of url
http://localhost:8888/site/funds/#tabbed-nav=fund-strategy
The html is:
<ul>
<li data-link="fund-strategy"><a>Fund Strategy</a></li>
<li data-link="portfolio-characteristics"><a>Portfolio
Characteristics</a></li>
<li data-link="performance"><a>Performance</a></li>
</ul>
<div class="strategy">This copy shows when the li is clicked on</div>
This is me attempting to hide a div given the url with js
var jQ = jQuery.noConflict();
jQ(document).ready(function() {
var url = document.location.href;
if
(url.indexOf('http://localhost:8888/site/funds/#tabbed-nav=fund-strategy')
>= 0) {
jQ('.fourth').hide();
};
});
Which CSS selector is stronger=?iso-8859-1?Q?=3F_=96_stackoverflow.com?=
Which CSS selector is stronger? – stackoverflow.com
I got this question in job interview. Which selector is stronger #nav
li.current or div #nav li and second a.test or .test .test What is the
answer?
I got this question in job interview. Which selector is stronger #nav
li.current or div #nav li and second a.test or .test .test What is the
answer?
Small question on equivalence relation
Small question on equivalence relation
What is the partition set $G/H$ ???
such that $G$ is a group and $H\subset G$
is it $\lbrace x H; x\in G\rbrace $ ???
Please,
Thank you
What is the partition set $G/H$ ???
such that $G$ is a group and $H\subset G$
is it $\lbrace x H; x\in G\rbrace $ ???
Please,
Thank you
Subscribe to:
Comments (Atom)