Checking An Open Web Page?
Jan 18, 2011
I want to write an ASP page which will accept a set of parameters (lets call it Page A), and will then launch other ASP pages, feeding parameters to those pages as required (call these Page B and Page C).What I want to do though is make sure that Page A will only launch Page B if Page B isn't already open. I also want to perform the same check before Page A launches Page C.Is there an easy way to do this using ASP?
View 4 Replies
Similar Messages:
Feb 17, 2011
I have an asp.net page that contains an Iframe embedded with some data and a ImageButton. On ImageButton click event (server side) I have Response.Redirct:
Response.Redirect("results.aspx");
This always open the results.aspx in iframe. I want that results.aspx should always open in the parent window. I tried the following till now but none worked:
Response.Redirect("<script language='javascript'>self.parent.location='results.aspx';</script>");
Response.Redirect("javascript:parent.change_parent_url('results.aspx');");
..and also tried the options from [URL]
View 1 Replies
Aug 5, 2010
I'm looking for some code to do a page rank check on a given domain provided I pass it a URL string in ASP.net. I have been unable to find anything and I have been searching for days.
View 2 Replies
Oct 19, 2010
I have an ASP.NET page which contains a large number of gridviews, which contain masses amount of data which take a fair while to rebind. I currently have it set so the gridviews are only bound when the account number is changed (on the page, the user searches for an account which then displays their information). I'd like it to be able to monitor a database table (hashing it maybe?) every few minutes, then if there are changes spawn a popup box informing them, and an option to have the gridviews refreshed. Firstly, is this possible in ASP.NET/C#? Secondly, what would the performance impact be on the page checking the hash/checking for changes in a large DB table?
View 2 Replies
Jul 7, 2010
I have written a windows based executable that runs certain scheduled tasks that user enters using a web site.Everything is working as they should, but recently users started complaining that when they schedule a task, it did not run at all.What I have found out was that sometimes the executable gets closed (some users close it accidently).
So I decided to show the scheduler status on the web page and I did the following:
Created a control table (table with one record) in my SQL database with a column called timestamp.
In my Windows application I have a timer that runs every 30 seconds. And I update the timestamp field with the current date and time.And in my web page I check to see the timedifference is <=2 (2 mineutes) with current date. This way I will know the scheduler status.
I am not sure whether this is a good method or not, because of those database calls every 30 seconds.
Could some one shed some light on this? Are they any better ways of doing this?
View 4 Replies
Feb 8, 2010
in aspx file i have two simple controls
[Code]....
Then in Code behind file i wrote this
[Code]....
When i check whether page is posted back or not with this method , by clicking the button
if(Page.IsPostBack)
{
..
}
then web form does not respond any more ..and when not using this condition ajax is working fine.
View 1 Replies
Nov 1, 2010
I have found plenty of examples where the checkboxes to be checked are within a datalist, gridview or other datacontrol like that.. but i dont have that setup..
I have individual checkboxes within my page and need to provide a way to check or uncheck them all..
I cant use a checkboxlist because of the layout of the page.. so not sure if it would be easiest with javascript or do it with the checked event for the single check box that will be used..
I know that may not be the best or cleanest way, but is there a better way?
Reason i cant use a checkboxlist for the larger set of checkboxes, is that a few of them will have additional fields that need to be completed if they chose certain checkboxes.. so i have those controls next to the checkbox that they belong with..
View 2 Replies
Oct 13, 2010
In Global I have the following code that redirects the page to use HTTPS. I also have a SPROC that adds a record when a user visits a page. When a user visits a page, the SPROC is adding a record for the HTTP and then another record using the HTTPS. I'm not sure how to handle just adding one record. Is there something to add to the SPROC that will delete one of the records or should I do a code behind on an aspx page that executes the SPROC "IF" the page starts with HTTPS? HOw would I set up the condition to check for the HTTPS?
[Code]....
View 1 Replies
Jan 27, 2011
checking for null on aspx page
[Code]....
View 4 Replies
Oct 22, 2010
I have a checkboxlist (cblTeamMates) with a sqldatasource (sqlTeamMates) that has 3 columns (ID, FullName and Status ). The datavaluefield and datatextfield for cblTeamMates is "FullName" and the 2 status values possible are "Available" and "Absent". How do I go about, in the page load event, checking all the names (FullName) whose Status is "Available"?
View 3 Replies
Sep 22, 2010
I have a page that inserts a record to an sql database and I would like to do the following:
(i) Check if a record already exist before trying do an insert
(ii) If a record exist, the page should be able to inform/display a message in a textbox informing the user that the record already exist.
I have seen a number of post on the internet that suggest that one possible solution is to write a sproc and use the T-sql IF EXIST function. However, I have NOT seen a complete code showing (a) how this can be done (b) how to call the sproc from an asp page (c) and MORE IMPORTANTLY how to display a message informing a user that a record already exist i.e. when the record already exist in the database.
View 8 Replies
Feb 14, 2011
I've been working with this code
Code:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Response.Write("<script>")
Response.Write("window.open('http://www.google.com','_blank')")
Response.Write("</script>")
End Sub
but I would not open the page immediately, but when given a click anywhere on the page, an example of what I do is [URL] need to click anywhere on the page to open a separate new page (pop up)
and if you still go back to the site and give again a click anywhere on the page no longer loads the new page, I don't know if I'm being clear.
View 8 Replies
Sep 29, 2010
In parent page there is an imagebutton. What I want to when user click this image button, another page will open with width=200 and height=100 with no toolbar.
View 11 Replies
Sep 23, 2010
i have four web pages like(home,aboutus,contactus,loginform) and 1 masterpageby using link button i am navigating 2 this pages... while navigating the total page is refreshing... i dont want like thtonly content place holder should change.... without refreshing the page....
View 7 Replies
Nov 21, 2010
how to open a new page in Jquery on Click of anchor tag ...
I guess this functionality is not achiveable with Jquery That is Why i use GreyBox for this .
In [URL]
But the Problem is when we click on see detail button of each product , It will open a page in IFRAME ..
When we click Add to Cart Button , it will open the new page in that I-FRAME
I want to refresh the parent page to be Refreshed ... it will open the Shopping cart page in the IFRAME
Is There any other way to achive this functionality , any other jquery ??
View 1 Replies
Mar 29, 2010
When the user logs out of the page and does not close Internet Explorer, and again try to access the page either through favorite link or by entering URL, they are automatically logged into the page again.We want this NOT to happen. We want the user to always have to re-enter all Login data on the main login.aspxI have validated session correctly, even though this problem continueonly my system. Other system workingcorrectly. I think something browser settings problem.
View 3 Replies
Feb 22, 2014
So I understand that the HperLink is a Client Side Control but I need code behind so that I can store the click event in the database. If I use the Link button, I have the opposite issue where I can access the client side but cannot open the url since this control does not have the NavigateUrl attribute.
<asp:HyperLink ID="hlnkCompanyName" runat="server" NavigateUrl='<%# Eval("CompanyAdRedirectURL") %>'
View 1 Replies
Jan 9, 2014
There is one modalpopup exists on index.aspx page and its working fine. Is that possible when click a button on other page (say about.aspx) it will redirect to index page and open the modal popup?
View 1 Replies
Nov 25, 2010
page structure-
Page1 = aspx page with iframe(Page2)
page2= aspx page contain user control
usercontrol UC = have a link
Problem- if I click any link of US there is a popup message but the problem is that popus comes inside the I-frame.I want that popup on my main page (page 1)
View 1 Replies
Nov 1, 2010
In page A, there is a multiview control in which including 10 views. How to open view5 in multiview in page A from another page B?
View 2 Replies
Jun 3, 2010
Any out there who knows how to open the child page into parent page,
suppose if i have page say Default.aspx ,and one anchor in this page,WHen i click on the anchor
let say <a href="Content.aspx"></a> ,want to display the content of page Content.aspx into the panel of Default.aspx .
View 4 Replies
Sep 6, 2010
I have a main page that contain a button...
so if you click this button I want to open a form(small page) in the same main page (at the left for example)...
this small page contain a DopDownList...and Ok button.....when you click this button the value of dropdown will print in main page...
View 5 Replies
Dec 21, 2010
how to open a PDF file on a particular page.
The following is an example of what I am trying to do.
public FileResult OpenPage(int id)
{
string namePdf;
namePdf = @"E:PDFFilesTest.pdf"; // Works Fine !
namePdf = @"E:PDFFilesTest.pdf#page=" + id; // Could not find file 'E:PDFFilesTest.pdf#page=2'.
return File(namePdf, "application/pdf", "Test.pdf");
}
View 19 Replies
Feb 4, 2011
I have create one grid and in that i am showing student database now i have to give edit option in that grid.I am ready with that only thing that now i want to try to open a small pop up page in same page. suggest how to open a pop up page with same information from session which i am passing from the grid page.
View 2 Replies
Jun 2, 2010
I'm with Asp.net C#.
How do we open a pdf file on a web page?
View 4 Replies