I want to redirect the user after 2 mins if there is inactivity for 2 mins. I am not using ASP.NEt membership. And I dont want to use Sessiontimeout for this. Session timeout will logout the user even if he is working on the system. My objective is like screensaver process.
If there is no action for the specified time, the screensaver runs. Similarly, I want to redirect the user to login page.
note that i have already handled it with the following javascript:
[Code]....
Here what my problem is,
the user is working on the site...ok.. he want to see someother site.he browse someother site and works on....or even he can do some other work in his system...but he is active in his system... What this script does is, it automatically logout the user and redirect him to login page. But it should not do while he is active...IT SHOULD REDIRECT IF HE IS NOT ACTIVE REALLY (Similar to Screensaver process)
I have a question what's the best way to accomplish the following task:
- I have an ASP.NET application with SQL server database (hosted externally at any provider)
- There are a few dedicated client computers anywhere in the world and these client computers shall run a periodic automatic process to upload some data into the database of the webserver. So there is NO user in front of those computers to open a browser and run any kind of upload manually. (These automatic processes are not part of my question, they can be windows services or simply running applications on the desktop.)
My initial idea was to use FTP for this purpose, means: Those perodic processes on the specific clients create files and put these files via FTP in any defined folder of the web server.
But what follows then? Is it possible to have any eternally running process on the web server to process those uploaded files in the FTP folder and write their content into the database? As far as I understood until now an ASP.NET application has sessions and an application process but a session shuts down as soon as the associated client doesn't send a request for some time and even the application process shuts down when no user at all sends a request for a specific time. Isn't it? So in other words: When no user sends any requests via HTTP my application on the webserver is simply not running and therefore cannot process the FTP-uploaded files. (Or can I keep the application "artificially" alive to run a peridic lookup for new files ???)
The other option I had in mind is to program a piece of software running as a windows service which could pick up the FTP-uploaded files and process them. But I have to consider that possibly the hosting company does not allow to install any service programs on their servers aside from the ASP.NET application. So this is probably not a real option.
And now my third idea is to develop an ASP.NET web service which runs on the same web server as the ASP.NET application. The specific clients mentioned above would connect to this web service via HTTP, upload the data and the web service would immediately process the data and write them into the database.
At the moment only the last option seems to be the "most natural" (and perhaps even the only possible ?) way to me. Are there any other options and methods for my purpose? And if so, what is the recommended way?
I have a Transport Detaisl in DB , i want to dispay data on gridview with marquee scrolling up. Cabs are scheduled for drop every hour. So if drop is at 7pm i hav to dispaly on data of that hour from 6:30 to 7:15 later after 7:15 i have to display next hour data ie 8:00 pm drop data. I am able to get scrollin g data on gridview but how to schedlue it to scroll for such timings
I have contact mails large than 700.000 Mails and i want to insert them in sqlserver using c# in a few minutes not hours i know that pre impossible but , i know there`s way to do it
last year I inherited a webapplication that seems to refuse to run on a new hosting company's servers due to a "security violation"... Our old host was bought out and now sucks...So I uploaded the code to the new company - looking forward to some sleep and found that my life was about to get more complex.. I go the good old generic security error
The biggest issue was that it didn't say where the error was.. Digging deeper (taking the code appart one block a time) the error was being triggered by the followin itemdatabound event. My host says it is because they are running under medium trust, but I am not seeing why this block should cause issues. Any help very much appreciated.
Sub dlstAlsoDish_ItemDataBound(ByVal s As Object, ByVal e As DataListItemEventArgs) Handles dlstAlsoDish.ItemDataBound If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then Dim lngDateType As Long = e.Item.DataItem("dateType")Dim strEvent As String = "> " & e.Item.DataItem("restName") & " :: " & e.Item.DataItem("eventName") & " : " Dim lnkAlsoEvent As HyperLink = e.Item.FindControl("lnkAlsoEvent")Dim dtmStart As DateTime = e.Item.DataItem("eventSrt")Dim dtmEnd As DateTime = e.Item.DataItem("eventEnd")If lngDateType = 1 Then strEvent = strEvent & Format(dtmStart, "MMM")ElseIf lngDateType = 2 Then strEvent = strEvent & Format(dtmStart, "dd MMM") & " TO " & Format(DateAdd(DateInterval.Day, -1, dtmEnd), "dd MMM")Else strEvent = strEvent & Format(dtmStart,"dd MMM")End If lnkAlsoEvent.Text = strEvent lnkAlsoEvent.NavigateUrl = e.Item.DataItem("restURL") & "/events.aspx#e" & e.Item.DataItem("eventID")ElseIf e.Item.ItemType = ListItemType.Header Then imgBorder.ImageUrl = strImageURLDim imgBorder As Image = e.Item.FindControl("imgBorder")End If End Sub
i have a details table which include detailid, custname, address, classification , pincode, telephone, remarks and classification table contain classification id & classification.i want to insert detailid & corresponding classificationid to a new table detail_classification. How to write stored procedure for that?
Am using two web application and one web service. My doubt is, am sending the dataset from my first application to Web service. After sending the dataset to my web service, i like to fetch the dataset using second application from the web service. How shall i fetch the dataset by using second application.
Note:
1) sending the dataset from first application to web service. 2) web service receives the dataset from the first application. 3) second application want to fetch the dataset from the web service which was sent by first application.
In the first datatable I have EmpNo,EmpName and EmpAddress
In the second datatable I have Empno,EmpJoindate, EmpSalary.
I want a result where I should show EmpName as the label and his/her details in the gridview
I populate a datalist with the first table, and have EmpNo as the datakeys.
Then I populate the gridview inside the datatable which has EmpNo,EmpJoinDate and EmpAddress.
My code is some what as below
[Code]....
Now I have a problem, I have to bind the Details of the corresponding Employee to the gridview. Whereas the above code will display all the details of all employees in the gridview.
If we use IEnumerable we give a condition where(a=>a.eno=EmpNo), and bind that list to the gridview.
How do I do this in datatable.
I modified the program as below
Igor, instead of datarelation,(my TL did not approve of it) I used IEnumerable
Im doing selling properties website with vb.net and just begin to use datalist
I have 2 pages, first is datalist that show all available properties with brief information, 2nd is another datalist that show full description about a particular property that the user wan to view.
I got few questions here:
1) I set the selecommand on the property name, but instead of viewing it on the same page, i wan to redirect to the details page to show all the informtion. How do i do that in the code behind? I include an onclick event to use Response.Redirect in the property name which is a linkbutton, but result in "XML page cannot be displayed" when click on it.
2) My primary key is set to imageID which to indicate the particular property details to show when user wan to view the full information. But how do i assign the image ID to the session?
fetch data from Nested gridview checkbox on Click button event which is present outside the gridview. I did try by creating an object of child gridview on button1_click but cannot fill the value from Gridview2 into my int i. Below mentioned is the Code i am using. The database I am using is Oracle. ==== Code =====
protected void Button1_Click(object sender, EventArgs e) { OracleConnection con = new OracleConnection();