How To Use Loop Fifteen Times
Oct 29, 2010I'm using code like
[URL]
but, its not going to loops 15 times. I don't know how to use it.
I'm using code like
[URL]
but, its not going to loops 15 times. I don't know how to use it.
i designed one crystal report for printing payslip for an employee
when i give the enployee id and month as input the payslip will be printed
how to print payslip for all employee at a time.
I'm using the local database functionality in Chrome and Safari and what I do when I want to save this to a remote database is to create a hidden textfield and then using JSON to stringify each row. In the code behind I then parse each JSON object and insert it into the list. What I want to do now is to delete these rows from the local database. I have a JavaScript function called deletePatient:
[code]....
I am doing project in ASP.NET with C#.net using SQL Server DB,
I am getting endless loop when user logged in after some time page is displaying,
and also i ahave masterpage in that i have login button, when i clicked login buton it is not going to the redirected page, appearing in the same page but sessions are going to be assigned(there are some sessions in login button like loginID). If i presss second time login button then user logged in page is appearing. This problem is when uploaded into server, local it is working good.
Im stuck with declaring a string which is in a loop within another loop.
Dim CompanyDetails As String = ""
Dim CompanyRow As DataRow
For Each CompanyRow In newdt.Rows
CompanyDetails += CompanyRow(1) & " " & CompanyRow(0) & "<br/>"...
How can I get this to see the GetInfo as declared..... since its in a loop within a loop?
In my web application I have a multiview that includes a few datagrids in which the user needs to enter some data. It takes approximately 20 minutes to complete the process, including user registration.
In order to prevent the system to time out before the user ends the process, I added the following to my web.config file: <sessionState mode="InProc" cookieless="false" timeout="120"/> , which according to what I have read, gives 120 minutes before the system times out. However, I get a timeout flag after a few minutes instead of after 120 minute, and all the information the user enters is erased.
i have hyperlink in gridview i need get value column ID when click on link in the same row i think need activating property autopostback for gridview.
my case for clarification:
ID BookName Description Link ViewNo
1 mmm dsfsdf Download 0
2 kkk ddd Download 0
i need get row ID to calculate the times seen for the file.
I'm trying to track down an issue on an ASP.NET v3.5 application where the HttpSession times out before its (default) 20 minutes. We're seeing behaviour where the session is lost only a few minutes into a session, at random and with no discernible cause such as unhandled exceptions. As far as I can tell, the ASP.NET worker process is not dying, otherwise that would have explained the dropped session.
What approach should I use to monitor when the session is dropped? Is there some event I can listen to, or some other hook in the System.Web namespace? Also, can someone confirm that the countdown to expiration is reset by web activity? That is, the session's lifetime gets reset to the (default) 20 minutes each time the web client makes an HTTP GET or POST?
I have a program which listerns to a specific directory and do some stuff once file is created on that directory. The thing is this works perfectly fine when I run it manually for testing. Meaning that when I copy and paste files in to that directory it work just fine.
Then I test it against our business system and had this problem. When our business system generates a file in that directory event fires 2-3 times and this leads to lof of problems.
Here is my code
[Code]....
One of the test case requirement is to run the same query ie URL for N number of times. Consider a google search that will have a text box and a Search button. I want to search a string such as "Test API" for N number of times. I can't do this test manually because i have to refresh the browser or hitting the button for so many number of times. I know, we will be getting the same results but that will change the page ranking. Is there any script available to automate this test case in C# or any language?
View 1 RepliesI have a simple asp.net web forms page that does an insert to my sql server db. My server was running slow at the time and I pressed Insert button several times because I didn't think it took but it did all 3 times.So I have duplicates from that one interaction. How would I prevent this?
View 2 RepliesI have a question that I can't quite find the answer to...
If you have an ASP.Net page that takes longer than the request time-out to render what happens to that process? Does the web service abort it?
Lets say I'm writing XML to the response stream in an ASP.Net page and it times-out calling my GenerateXML method. What happens to my method call? Does it complete but the web server reports the time out? or is it aborted?
I could probably write a test to see my own results but I figure there might be more to it.
I haven't made any code or configuration changes (that I know of) to my ASP.NET web application and this morning it suddenly stopped showing the AM in my displayed times. PM still shows up, just not AM. It's hosted on Windows Server 2003. I figured somehow the OS regional settings might have been changed somehow, but that doesn't appear to be the case. How could this have happened?
I was able to change the OS time format to hh:mm:ss tt and then back to h:mm:ss tt and it seems to have fixed my app. I'm going to assume that the hosting company made some kind of change unless somebody has a better idea
I'm fairly new to ASP and would like to know how to display certain text between Monday to Friday 8:30am to 4:30pm.
When its not Monday to Friday 8:30am to 4:30pm I would like nothing to be displayed
I want to get record between two times. viz I want to get record of my site visitors from yesterday's 8pm to todays 8pm. what can i do?
View 4 RepliesI have Forms authentication and I need a custom object to be stored in HttpContext.Current.User and in Thread.CurrentPrincipal.
To get this, I listen to PostAuthenticateRequest event, then read from the DB all the user data I need to be stored in HttpContext.Current.User and in Thread.CurrentPrincipal, then I instantiate custom IPrincipal and IIdentity objects and assign them to the above locations.
The problem is that for some reason PostAuthenticateRequest fires several times for a single request.. This causes unnecessary DB roundtrips that hurt performance..
How should I address this? (ASP.NET MVC 2)
I have a website I created for people in our database to update their information. So an email is sent with a link to each person. Once they click the link their profile is loaded.
Now I need to stop them accessing the site because the update period has expired. How can I redirect to a page that says "Update Period has expired" at all times.
var startTime = new DateTime(2010, 10, 1, 9, 0, 0);
var endTime = new DateTime(2010, 10, 1, 16, 0, 0);
var interval = 11;
So given a start time of 9am, an end time of 4pm and an interval of 11 how can I find out how many time slots there are between the start and end times?Does that make sense? I know the answer will be 43 time slots, but how to derive it?
With this code, it displayes the horizontal scroll bar but not the vertical at first, BUT if you minimize your screen, the vertical kicks in, i would like to have them both be there at all times, how can I code this?
[code]....
I have 3 textboxes. In the first two, times will be entered (an IN and OUT time) and the third textbox needs to subtract the two times from txtbox1 and txtbox2. Somehow I need to validate the times are entered correctly into txtbox1 and txtbox2. Right now, if the first txtbox is blank, it brings in the system time in the following format on the code behind:
[Code]....
The txtTimeOut.Text box needs to be validated somehow to the same format of hh:mm tt and then the third txtbox should be the difference of the two txtboxes.
I have one dropdownlist with 10 items and one button.(Item name starts from index 0). It i select one item in dropdownlist and click on Button. The selected item should come to first. How do i do that?
View 2 RepliesMy basic structure is that I have a table on a page, which I want to reload without refreshing the entire page. So on clicking a button on the page it fires of this:
function RefreshMissionsAjax() {
//fade out the old table.
$(clientID('MissionsDisplay')).fadeOut(500);
//request the new value from the page (calls the GetIncompleteMissions() method in the MissionViewer.aspx.cs page)
$.ajax({
type: "POST",
url: "MissionViewer.aspx/GetIncompleteMissions",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
$(clientID('MissionsDisplay')).html(msg.d);
$(clientID('MissionsDisplay')).fadeIn(500);
},
error: function (xhr, ajaxOptions, thrownError) {
$(clientID('MissionsDisplay')).html('An error occured while trying to refresh the page data.');
$(clientID('MissionsDisplay')).fadeIn(500);
}
});
}
And I have in the code bedind of an aspx page:
[WebMethod]
public static string GetIncompleteMissions()
{
return GetHTMLTable();
}
This method just grabs some data, and creates a html table - nothing too fancy. When the returned table is small (a dozen rows or less) then it works like a charm. But when it gets larger, it takes a long long time. At 100 rows it can take 5 minutes to render the table. At 1000 rows I have left it for 30 minutes and nothing will happen after the fadeout. (NB - it loads fairly quickly on the pageload, before the ajax refresh is used, so it is not the actual server side creation of the table thats the problem).
This is my first real attempt at doing something like this, so I dont know if this is the best way to do it - it was just something i pieced together that worked great when i was testing with small datasets. Now, not so much.
We have an ASP.Net web service the call to which, due to some bad design, often takes more than 20 minutes to return. We have changed every setting that we can think of, but no matter what we do, we always get a timeout after 20 minutes. It happens that this web service is a BizTalk orchestration exposed as a web service, but I do not think that is relevant -- the error is an ASP.Net error.
There must be some setting we can change to increase the timeout to more than 20 minutes, but we've exhausted our knowledge. What setting are we missing? EDIT: Among other setting, we have tried those detailed here: [URL], which includes httpRuntime executionTimeout, sessionState timeout and app pool idle timeout.
In my project i need to collect customer bank details like bank Name ,Account type ,bank balance etc etc ... what would be the best way to design such that it allows us add multiple bank details to a single customer ?? and after we enter all the details all the banks details should appear in the same screen .
View 1 RepliesIs it OK to call FormsAuthentication.RedirectFromLoginPage many times?
On login page we test if user is already logged in, and if it is we just redirect him to default page with FormsAuthentication.RedirectFromLoginPage...
Question is if user sets a script that loads login page 10'000 times, would calling the FormsAuthentication.RedirectFromLoginPage that many times make problems?