|
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
|
|
|
|
|
Best thing would be to have the data in a database, because it would be miliseconds to retrieve the data.
More practically, I would look into building a Progress bar which could show that activity is actually happening. Most users are fine with 3 to 5 second response time as long as they know that something is actually happening.
|
|
|
|
|
David,
Thanks for the Response.
I do have a progress bar which greys out the screen while loading...I know 3 or 4 secs for loading data is not a big deal......Actually, the same files are read by a vb program and charts are displayed automatically when a file is updated.
Having data in the database is a overhead as the data is updated in the files every 1 minute during the peak hours and each file has 520 rows * 13 columns of data.
|
|
|
|
|
Hmmm. Maybe you should try to break down the problem into its pieces to determine where to make your improvement.
For example, determine how many miliseconds for each part of the process ...
1) read file
2) analyze data
3) draw graphs
4) present results to user
I'm not exactly sure how to capture each one of those statistics because I don't fully understand your application, but you get the idea. Determine which piece of the puzzle is taking the longest and then the folks here can offer you ideas on how to make it better.
Some other points of interest to post would be:
a) what version of IIS are you using
b) what browser is your client using
c) what kind of network connection is between your webserver and client (LAN/WAN), (10/100/1000) MB per second.
d) maybe a simple ping test from the client machine to the webserver could provide insight to a slow network
Good luck. Keep us posted of your progress and solution.
|
|
|
|