|
asp.net session expired continuously while i am working in my app and making transactions i became logged out...
|
|
|
|
|
Extend the session timeout in the webconfig by
<system.web>
<sessionState timeout="540"/>
</system.web>
Always Keep Smiling.
Yours Pankaj Nikam
|
|
|
|
|
thanks, but why this number "540" ?
|
|
|
|
|
ma.amer wrote: but why this number "540" ?
Why not? You can choose any number that allows you to complete your work.
|
|
|
|
|
Richard MacCutchan wrote: Why not? You can choose any number that allows you to complete your work.
Exactly... It suited me...
Always Keep Smiling.
Yours Pankaj Nikam
|
|
|
|
|
It does not have to be specifically 540, you can make it any length of time that you deem it to be necessary. According to documentation, it is the number of minutes until time out.
""Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
so ... I have new Error after i add the the session state in the web config file.
the error is...
"HTTP Error 503. The service is unavailable."
|
|
|
|
|
Hi All,
We develop an asp.Net web application and we use a flash object(javascript) to create a socket and connect it to an tcp ip server on port 7900.
when the flash socket created the security error #2048
was shown, i try to solve it but i can't.
please help me if you can.
Thanks all.
|
|
|
|
|
How to upload an excel sheet into sql server table through asp.net webpage?
|
|
|
|
|
Upload the file.
Parse the file.
Build up a sql query/linq object from the data read in from the excel spread sheet
Submit data to the sql db.
Here is a Code Project article that'll show you the process...
|
|
|
|
|
In a C# 2010 web form application, I need to make a change where some logic is hard-coded and I want to obtain the values from a sql server 2008 r2 database.
Before I make any changes, I want to make certain I understand how the existing logic work.
In a microsoft training class for C#.net, I learned about delegatesand worked on 'labs' to teach you the concepts.
When you look at the code I listed below:
LabelCustomerName.Text += transaction.CustomerName;
LabelCustome_Status.Text += transaction.Customer_Status;
you can see the customer name and customer_status are placed into
textboxes.
I am guessing that the fields to the right of the += are delegates.
If this is true, can you tell me how to find the original location where the values are obtained from?
If these are not delegates, can you tell me and/or point me to a reference that will help me determine where the orginal values are obtained from?
Should I use system.reflections? If so, can you tell me what code to use so I would know how to use system.reflections?
|
|
|
|
|
In this particular case, the fields on the right are not delegates (i.e. in C terms, a function pointer).
This is an assignment operator. This does a simple concatenation on the LabelCustomerName.Text value.
You can read more about this operator here[^].
A delegate is added to an event / eventhandler combination.
For e.g. if you had used the Label's Keydown event, you could have added a delegate that allowed a certain method to execute everytime keydown fired.
E.g. LabelCustomerName.KeyDown += MyMethod(object sender, KeyEventArgs e);
|
|
|
|
|
What is the way to develope report in asp.net
|
|
|
|
|
There's several different ways. You can use Crystal Reports or any reporting tools out there. A google search will bring up quite a few for you.
You may want to look into Microsoft Reporting Services[^]
""Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
|
Dear All,
Which third party grid is best for asp.net. I'm looking for grid for transaction purpose where can add multiple rows from client side.
Thanks
Basit.
|
|
|
|
|
The last one I used for that purpose was from: Infragistics[^]. Worked pretty well. I think the're all very similar: one may have a few features the other don't and so on. You need to look at as many as you can and decide which is the best fit for your purpose.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
basitsar wrote: Which third party grid is best for asp.net
That would depend on your need, usage & comfort-ability with a given third party. I would say it would be individual's choice from below list:
1. DevExpress
2. Infragistic
3. Telerik
Have a look at all three, evaluate by yourself. All have good controls, knowledge-base and support forums.
|
|
|
|
|
I'm a big fan of DeveloperExpress.
http://www.devexpress.com/[^]
Their Grid control is amazing along with their other tools.
BTW: I've actually met some of the engineers at a meet & greet in NYC about a year ago ... very cool to talk with them.
My 2 cents.

|
|
|
|
|
I think Telerik is the best!
its rad grid have a wonderful Facilities filtering for every column with to many filter, and grouping by drag and drop , handling too many scenario , and perfect examples and documents!
|
|
|
|
|
"Best" is of course different depending on what you need. InterSoft[^] has a great grid and has a batch update feature which allows you to add as much as you like client side, or delete of course, and then process in a batch.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Also check Obout grid.
thatrajaNobody remains a virgin, Life screws everyone
|
|
|
|
|
Try DevExpress or Infragistics.
|
|
|
|
|
Quote: hi,
I am using an aspxgridview and two checkboxes(for header and dataitem).When I check header checkbox I want to check all checkbox.I am also using java script code.essentially, I can do this, but I must check header checkbox twice times.I didnt understand why it is happening.ı am writing this code checkbox_checked event and header checkbox's autopostpak is true. When I used normal gridview I didnt have any problem I could do this without problem.,
<script language="javascript" type="text/javascript">
function SelectAll(id) {
var IsChecked = id.checked;
var Chk = id;
// Parent = document.getElementById('GrdPerliste');
Parent = document.getElementById('<% = GrdPerliste.ClientID%>');
var items = Parent.getElementsByTagName('input');
for (i = 0; i < items.length; i++) {
var deneme = items[i].type;
if (items[i].id != Chk && items[i].type == "checkbox") {
if (items[i].checked != IsChecked)
{ items[i].click(); }
}
}
}
</script>
protected void Checksec_CheckedChanged2(object sender, EventArgs e)
{
CheckBox chk = (CheckBox)sender;
GridViewHeaderTemplateContainer bulundugucontainer = (GridViewHeaderTemplateContainer)chk.NamingContainer;
((CheckBox)bulundugucontainer.FindControl("Checksec")).Attributes.Add("onclick", "javascript:SelectAll('" + ((CheckBox)bulundugucontainer.FindControl("Checksec")).ClientID + "')");
}
|
|
|
|
|
First, your issue/flow of why two clicks
This happens as you add the onclick attribute in checkchanged event. So, for a fresh page, first click postbacks and you register javaScript code for checkbox. Second click uses this registered JS method and you get what you want.
You can do it without any postback or server event - just using a Javascript. You need to attach the JS code to checkbox in Grid's RowDataBound event where very rowbind is called. Once this is done, single click would work.
Have a look at these:
Using JavaScript with ASP.Net GridView Control[^]
Using jQuery without RowDataBound code[^]
|
|
|
|