|
whether in its Page_Load event has been added
like this:
(! Page.IsPostBack)
{
}
to be this
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
}
}
|
|
|
|
|
I use a windows 2008 R2 dedicated server. Recently I'm in a weird problem. I host almost 15 sites in that server.All works well and the average cpu load remains 10-15 all time. Recently one of the sites starts troubling me. When it starts, the Cpu reaches 99-100 and all getting stopped. When I stopped that site and and its application pool, the server come back to normal way. This isnt a over traffic problem.Even when I point the hosted files to another domain, that site works well. Such as, My problematic site is abc.com. When I point the directory of abc.com to other xyz.com, no problem occurs. But starting abc.com hangs all things. I find that php-cgi.exe and mysqld.exe cause that damage, but same code running under other domain remain intact. ANd again this is not a trafic issue, as no sooner than I had started abc.com, cpu reaches 100%!!! Please suggest something to get me out of this.
|
|
|
|
|
Are you sure it is the same code? Sure sounds like something with the code is getting into a loop.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I have 3 pages say A.aspx,B.aspx and C.aspx.
Page A and B redirect to common page C.aspx.Now on page C i want to know from which page its redirected to c,I want to do following on page C.aspx
if(redirected from A)
{
print abc
}
if(redirected from B)
{
print xyz
}
I dont know how to catch redirection request.Please post the code in C# asp.net.
|
|
|
|
|
I think it's request.url.referer
|
|
|
|
|
detailed explanation of mr.jkirkerx
like here may be:
var prevPage = Page.Request.Url.Referer.ToString();
if(prevPage == "pageA.aspx")
{
Response.Redirect("pageA.aspx",false);
}
else
{
Response.Redirect("pageB.aspx",false);
}
|
|
|
|
|
How can I show images and swf files in one slideshow control?
|
|
|
|
|
There should be some jquery plugins that can do this.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hi,
I have two buttons in one page button1 and button2 each with its own event. When clicking the first button it works fine but clicking the second button nothing is happening..
what could be the reason?
Technology News @ www.JassimRahma.com
|
|
|
|
|
what's u're code,explain more.maybe it depends on update panel
|
|
|
|
|
Jassim Rahma wrote: what could be the reason? Any one of a million things, but without some more detail there is no way anyone can guess.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Hi,
You should paste your code here, and then we can give you some ideas.
Comm100 - Leading Live Chat Software Provider
modified 28-May-14 1:48am.
|
|
|
|
|
can see Your code in aspx,and code behind....
so we can be clear shadow of the problems you
|
|
|
|
|
I want to add both text and image to an Item in dropdown but when I add it just show me the source of image please help me
thanks.
|
|
|
|
|
Hi,
I think you can customize a control by yourself.
Comm100 - Leading Live Chat Software Provider
modified 28-May-14 1:48am.
|
|
|
|
|
Do u think u're answer was useful?? I know to customize it but HOW? please say an example
thanks
|
|
|
|
|
Hi,
I would like to ask what's the bset SlideShow control to use with ASP.NET from your experience?
Thanks,
Jassim
http://www.JassimRahma.com[^]
Technology News @ www.JassimRahma.com
|
|
|
|
|
in my opinion ajax is good and safe control and easy to use but if u want to have more graphical effect u can use nivoo slider it's free and fast.
I have lot's of test with the 3 top of slider that are usual: 1.ajax ,2.nivoo ,3.wowslider
the result is nivoo slider won.
Successful is feeling happy.
|
|
|
|
|
which ajax you mean? the ajax toolkit?
Technology News @ www.JassimRahma.com
|
|
|
|
|
|
Most here on the CodeProject write their own programs for everything, such as slideshows, few purchase anything for use.
Slideshows are just a div tag element with an image tag inside, in which you use javascript to change the image source, and to tween the image up down left or right.
You can then make it more complex by adding something to store various image file locations, such as a xml file, and rotate through the record elements.
I had some slide show code from a project I had to upgrade, in which the slideshow was the only thing that worked. Actually now that I think about it, I had to fix that as well, was poorly written. Requires JQuery 1.8.2. I don't have the CSS for it anymore.
I think this had a container called slider_Container, and 4 div tags inside it, in which in moved the div inside the container. It's written in Jquery, and will not work with an update panel on the page, because you have to edit the file below to handle the UP events when they fire.
<div id="_slider_Container">
<div id="slide0"><img /></div>
<div id="slide1"><img /></div>
<div id="slide2"><img /></div>
<div id="slide3"><img /></div>
</div>
$(document).ready(function () {
var slideContainer = $('[id*="_slider_container"]');
var slidesHolder = $(slideContainer).children();
var slideWidth = $(slideContainer).width();
var slides = $(slidesHolder).children();
var slidePos = 0;
var slideTotal = slides.length;
var currentSlide = 0;
var delay = 5000;
var slideTime = 1000;
$(slideContainer).css({
'overflow': 'hidden',
'position': 'relative'
});
$(slidesHolder).css({
'position': 'absolute'
});
for (var i = 0; i < slides.length; i++) {
$(slides[i]).css({
'position': 'absolute',
'top': '0',
'left': slidePos + 'px'
});
slidePos = slidePos + slideWidth;
}
$(slidesHolder).css('width', slidePos + slideWidth);
$(slides).first().clone().css({
'left': slidePos + 'px'
}).appendTo(slidesHolder);
animate();
function animate() {
$(slidesHolder).delay(delay).animate({
left: '-=' + slideWidth
}, slideTime, function () {
if (currentSlide < slideTotal - 1) {
currentSlide++;
animate();
} else {
$(slidesHolder).css({
'left': 0
});
currentSlide = 0;
animate();
}
});
}
});
|
|
|
|
|
i am having a text box and a button.i want to validate that textbox using javascript.when i click on the submit button one alert message will come that textbox must be filled out and if i am entering some value to that textbox it will show what value i have entered in that alert message.i want a sample code for this.
|
|
|
|
|
Try This
<script type="text/javascript">
function jsTest()
{
if (document.getElementById("<%=txtBox1.ClientID%>").value == "") {
alert("Please Select a Pay From Option");
document.getElementById("<%=txtBox1.ClientID%>").focus();
return false;
}
else {
alert(document.getElementById("<%=txtBox1.ClientID%>").value);
}
}
</script>
|
|
|
|
|
It's as easy as drink water call below function
<script type="text/javascript">
function Confirm() {
return confirm("Are U sure to delete this file؟");
}
<asp:Button ID="BtnDelete" runat="server" Text="delete" Width="95" OnClientClick="if (!Confirm()) return false;" UseSubmitBehavior="False"/>
|
|
|
|
|
I developed a Asp.net application which reads the files in a remote machine(Windows NT machine) and when the user selects a file name then the chart is loaded with the data in that file.
Howover, when the user selects the file, chart is loaded in 3 to 5 secs approx. How can i improve the loading of this chart? Any ideas or inputs are appreciated??
Thanks
|
|
|
|