Way To Realize IE Is Closing
Feb 6, 2011How can I realize IE is closing in asp.net? I want to do something in sql when the user close the IE by IE close button.
View 2 RepliesHow can I realize IE is closing in asp.net? I want to do something in sql when the user close the IE by IE close button.
View 2 RepliesI have many projects ( site1.example.com, site2.example.com, site3.example.com etc ) and I should realize common login for these sites on .NET (web-services ? )
View 2 RepliesI create asp.net mvc application and have task to create ability to move parts of page. For example, admin has ability to move poll to top page, to bottom, to center etc. Who tried to make it? My opinion - page has many divs, each div has webusercontrol, divs have position:absolute (or relative, not sure) and thru admin you can set which div has which values.
View 1 RepliesHow to realize auction expiration? Make it inactive after 1-3-5 days? Something like eBay?I am using asp.net c#.I have "active" boolean field in my auction table.
View 1 RepliesI want to realize the following with AJAX and .NET, but I don't know the best way to do it.Person A comes to the website, clicks a button 'I want to chat'. Then Person B comes and he should see a list where he can choose 'chat with A'.I have two questions:- What is the best way to address B's message to A? After B has sent his message to the server, how does the message get to A?- Is it possible to invoke a "update-chat" function for A when a message for him arrives? (Of course, A's browser could ask the server 'do you have a message for me?' every second, but this seems not a good solution.
View 5 RepliesHere is my web.sitemap code:
[Code]....
I wanna to show bread crumbs navigation like:
Home > Column1 > Content
the problem is: "~/Index.aspx" and "~/Column.aspx?ColumnId=1" are actual URLs and navigation bar: "Home > Column1" really works,
but "~/Content.aspx?ColumnId=1" is only the beginning part of actual dynamic URL, for example: it may be
~/Content.aspx?ColumnId=1&NewsId=12598 or ~/Content.aspx?ColumnId=1&NewsId=37215
all the previous Urls are articles of Column1 with same "~/Content.aspx?ColumnId=1" but are followed with different "&NewsId=number".
So, how can I realize this kind of navigation bar?
Home > Column1 > Content
I am building a web application with master page. When a user logs in I save the user details in session and use his details to retrieve data from db. I also have a logout button to clear the session and logout from the application.I want to know how the logout functionality like clearing session can be done if user closes the close button of the browser.
View 3 RepliesI'm using some code thats new to me, and it works fine for the most part except it seems to be stacking the wkhtmltopdf.exe process in the task manager, slowing down the computer.If anyone could point out why the code isn't closing properly
[Code]....
I have an aspx page that has a button that, when clicked, will close the form. In the code-behind, I'm utilizing the Form_Closing() Event. Is it possible to use this event when a user clicks the X (can't remember what it's called) in the top right corner that closes a browser session? If not, is there a way of programming for this action?
View 11 RepliesI am using the xmltextwriter and having issues with opening tags not showing if the field is blank here is the start of my code
Code:
Dim strFilePath As String = Server.MapPath("../test.xml")
Dim utf8 As Encoding = New UTF8Encoding(False)
Dim objWriter As XmlTextWriter = New XmlTextWriter(strFilePath, New UTF8Encoding(False))
' start writing the XML document
objWriter.WriteStartDocument()
Try
conn.Open()
myreader = cmd.ExecuteReader
objWriter.WriteStartElement("testfile")
While myreader.Read
output the first "product" element
objWriter.WriteStartElement("product", Nothing)
objWriter.WriteElementString("Id", myreader("rvid").ToString)
objWriter.WriteElementString("Class", myreader("RVClass").ToString)
objWriter.WriteElementString("Manu", myreader("rvmanu").ToString)
objWriter.WriteElementString("Model", myreader("rvmake") & " " & myreader("rvmodel"))
objWriter.WriteElementString("Year", myreader("rvyear").ToString)
objWriter.WriteElementString("Price", myreader("rvcashprice").ToString)
objWriter.WriteElementString("NU", myreader("rvnu").ToString)
objWriter.WriteElementString("SCapacity", myreader("rvcapacity").ToString)
objWriter.WriteElementString("Fuel", myreader("rvfuel").ToString)
objWriter.WriteElementString("Length", myreader("rvlenft").ToString)
objWriter.WriteElementString("Air", myreader("rvair").ToString)
objWriter.WriteElementString("Awnings", myreader("rvawnings").ToString)
Thats not all of it.. but what happens is if it is blank value Then i get this, as you see fuel has no opening tags, and the company i am supplying to needs these.
<Price>0.0000</Price>
<NU>U</NU>
<SCapacity>0</SCapacity>
<Fuel />
<Length>0</Length>
What can i do to make this work how i want? I though the .tostring woudl fix it but it didnt.
I am using this code.This pop up window pops up when I clicks a button on the main page.Now I want the pop up window to be closed if the password is successfully changed and reload the main page,but if the password is not changed then refresh the pop up window again.
Here is the code.....
[code]....
I'm trying to make sure a block of code behind properly closes a connection to SQL after it's finished. But when I add the line "cmd.Connection.Close();" Visual Studio underlines "cmd" in green and says "unreachable code detected" What does that mean and how do I correct it?
[Code]....
I have a page.. which im trying to implement a gridview that allows you to select from it, it will open a modalpopup with a list of records linked to the selection.. now within that popup, you can pick a individual record so you can see full details..So my question is, can you have multiple modalpopup's open at the same time? If not then is there anyway to reopen the first popup with the list again so that you can pick another record
View 3 RepliesThe source tags inside my video element need to be self closing so the iPad doesn't start whinging.
I type in <source src="myVideo.m4v" />
TinyMCE keeps changing it to <source src="myVideo.m4v" ></source> though.
How can I tell it to stop?
I have a web page with a button. When I press the button something happens (it doesn't matter what). What I want to do is: when I close the browser (the page is closing, too) I want to call the button1_click event. How can I do that?
View 3 RepliesI am using this code.This pop up window pops up when I clicks a button on the main page.Now I want the pop up window to be closed if the password is successfully changed and reload the main page,but if the password is not changed then refresh the pop up window again. I used javascript for form validationenter code here Here is the code.....
<asp:Textbox id="curnt_paswrd" textmode="Password" runat="server" size="30" />
<asp:Textbox id="new_paswrd" textmode="Password" runat="server" size="30" />
<asp:button ID="btnChange" class="submit-button"
OnClientClick="return validate()" runat="server" Text="Change"
onclick="btnChange_Click" />
I seem to be missing something obvious here, but cannot see what it is. My problem is that the closing form tag for BeginForm is not being added to my markup. I am looping through a collection and creating a form for each item, but the forms arent closing properly.
<% foreach (var item in Model) { %>
<% using (Html.BeginForm("EditUser","Users"))
{ %>
[code]...
I'm having some problems with connections to an SQL database not closing after being opened, which is maxxing out the pool and causing the site not to load any of the dynamic content (until eventually unused idle connections get close, as the problem seems to go away after a while).
I've been through my code several times and can't figure out where things are not being closed properly.
Is there a surefire way to make sure these connections are properly closed? Or to pinpoint where the problem lies?
Most places in the site I am using ObjectDataSource. You don't need to close a connection when using that, do you?
Where ObjectDataSource isn't used, a developer wrote this method and put it in a class file called "common.cs":
[Code]....
I searched the entire solution for every instance of "common.openDatabase()", and where it occurs I make sure there is a "cmd.Connection.Close();" that follows.
Am I missing something or doing it wrong?
Here's an example of where a db connection gets opened and then (purportedly) closed:
[Code]....
I'm working on an ASP.NET web application. There's a bill page which has two links to different pdfs of the same bill. When you click on one of the links it takes you to a ViewPDF.aspx page that shows the pdf. There's also an option to view both in a split screen so that you can compare them. When you click on this link it takes you to BillSplit.aspx which has a frameset and two frames that both point to ViewPDF.aspx. This all works perfectly.
The problem is that if an error occurs while pulling up the pdf. The application has an error page that has a few links back into the application. If you use one of these you can go back into the app and continue but now inside the frame. The URL still says BillSplit.aspx but the application is completely unaware of this since frames are HTML elements not asp.net controls.
What I would like to do at this point is detect that you've returned to the application and close the frame you aren't using. Essentially I'd like to redirect you away from BillSplit.aspx and to the page you're actually requesting. I'm pretty sure this would need to be done in Javascript either on the BillSplit page or on the pages that you go to later. So I guess what I'm asking is, is there a way to ensure that the BillSplit.aspx page and it's two frames point only at ViewPDF.aspx?
I am using a AccessDatasource for getting values from a accessdatabase for a Dropdown list. After i load the page and close it, a .ldb file is created. After wards i am not able to open the database manually. How to close the connection. I have given Network service Modify access [URL] to share permission, still no go.
View 3 RepliesI have a simple example of a ModalPopup with a panel that appears in the center of the ModalPopup and a couple of buttons in that panel. One of the buttons is a cancel and the other is an OK button. No matter how many other buttons that I add each one closes the ModalPopup. I need to keep the ModalPopup open so that I can run a few calculations then click a close button.
View 5 RepliesI'm using the ModalPopupExtender control from the AJAX toolkit. This control extends a panel which contains a CreateUserWizard control. However, the validation of the CreateUserWizard control causes a postback to the server, which closes the popup. I'd like the popup to remain open, even after the postback.
ModalPopupExtender
<Panel>
<UpdatePanel>
<ContentTemplate>...</ContentTemplate>
</UpdatePanel>
[code]...
I have been trying to close a dialog using code behind with no success.
The user should click a button, some processing is done and then the dialog should be closed.
I tried doing this using this code:
ScriptManager.RegisterStartupScript(this, typeof(string), "open", "window.top.close();", true);
But the dialog is never closed. What am I doing wrong?
I'm trying to close a web part in response to a particular click on part of my web part. Is there any way to close this within the code?
View 1 RepliesI am facing an issue in my application when a user directly clicked on browser close [X] button. Browser can be IE, Chrome, Mozilla, Firefox and many more.
What I want to do:
1. as soon as user hits [X] button of browser, need to set their status as logged off in database for which we have a method in Login.aspx file which is within the master page.
2. We do not have any Logoff feature in the application