|
nainakarri wrote: Even if i increase the time it is not getting effected. Is it a good practice to remove the session timeout(the session never gets expired)
No, it's not. Indeed, you shouldn't be storing much in the session anyhow, perhaps just an id or list of ids. If you need to get the employee data, you should pull it from the DB.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thanks for the quick reply,request please tell me what is the major drawback of not using the session ?
Regards
Naina
Naina
|
|
|
|
|
nainakarri wrote: please tell me what is the major drawback of not using the session ?
I think you've got it backwards. The major drawback of the session is that it uses resources. You never want those resources to be used forever, which is what you're advocating, and you want to limit how much you use those resources, which means using the session only when you have to ( for example if you store an id in the session, you can get all the other info direct from the DB )
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I am unable to understand frankly speaking what you have answered.
May be am not clear with the question i have posted.
I want to know why it is not advisable not using a session timeout.
Bcos i am going through few sites where the session never ends. So in my web application what could be the problem if i dont use the session timeout.
Thanks in advance
Naina
Naina
|
|
|
|
|
nainakarri wrote: I want to know why it is not advisable not using a session timeout.
Because the session object should be avoided at all costs, and because you certainly don't want a situation where every user fills the session with data that sits there forever, taking space on your server.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
There [^]is a nice article on Sesion in CP.
You might want to read this.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Thanks for the link given
Naina
|
|
|
|
|
hiii all...
m using slideshow extender in my website but its not workin.i have used the following web service:
using System;
using System.Collections;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptService]
public class slideshow : System.Web.Services.WebService {
[WebMethod]
public static AjaxControlToolkit.Slide[] GetSlides()
{
AjaxControlToolkit.Slide[] MySlides = new AjaxControlToolkit.Slide[3];
MySlides[0] = new AjaxControlToolkit.Slide("slideshow/a.jpg", "Free", "Free Delivery");
MySlides[1] = new AjaxControlToolkit.Slide("slideshow/b.jpg", "Free", "Free Packaging");
MySlides[2] = new AjaxControlToolkit.Slide("slideshow/c.jpg", "Special", "Apple Offer");
return (MySlides);
}
}
and then i have used it on .aspx page like this...
<br />
<td align="center"><br />
<asp:Image ID="Image4" runat="server" ImageUrl="~/slideshow/a.jpg" <br />
Width="100%" Height="150px"/><br />
<br />
<cc1:SlideShowExtender ID="SlideShowExtender1" runat="server" TargetControlID="Image4" AutoPlay="True" <br />
Loop="True" SlideShowServiceMethod="GetSlides" <br />
SlideShowServicePath="D:\pari\jajaipur\slideshow.asmx" ><br />
</cc1:SlideShowExtender><br />
</td><br />
tell me wr m i wrong...
|
|
|
|
|
How weird. Why are you using a webservice ? How does that make any sense at all ? What does 'not working' mean ? Do you have any idea what this code does, or did you copy it at random off the web ?
I would guess that assuming that you're supposed to write local webservices to service AJAX calls now, your issue, apart from how wasteful this all seems to me, is probably that you're using a local file system path to the asmx, which is obviously retarded.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
can i do this without using the web service.if yes then how plz tell.
yes i have taken help fron google.
|
|
|
|
|
I don't know, I prefer to write my own AJAX code instead of putting on a Microsoft straightjacket. But, as I said, I think the reason it doesn't work ( although it's hard to tell from the lack of info you provide ), is that if you use a webservice, you would need a URL to the webservice, not a local path.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi...
I have used itextsharp.dll for exporting file type of PDF.
It works fine on loacl server but at live server it throws error as bello...
System.Security.SecurityException: That assembly does not allow partially trusted callers.
Kindly help to solve this issue.
Thanks.
Regards,
PUJA FALDU
|
|
|
|
|
I cant see any way around this other than getting the host to trust my assemblies or you allow partially trusted assemblies in your assemblyinfo
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
hi..
Thanks for relpy..
But how can i allow partially trusted assemblies in my assemblyinfo ???
|
|
|
|
|
You can't doit from your assembly. that should should be done in the hosted assambly.
|
|
|
|
|
thanx for your reply this issue has been solved and now i have another issue of bounce mail. how can i get the the mail i sent is bounced. and how can i count how maney of the mails i sent is bounced back and which one.
thank you.
amirzada
|
|
|
|
|
You can't do this with ASP.NET. All you can do is write a program to check the mail address that you used as a reply to, and count how many bounce back. ASP.NET has nothing to do with it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
This is not actually a ASP.NET question. The failure notice is sent from the SMTP server to which you are sending mails to. If the server notifies you you can determine of the mail is reached to the server properly.
|
|
|
|
|
Hello every one.I have a treeview into one page,but when i click on its context menu add button there should popup another page by here i can add new node in treeview.
But porblem is that i am carrying The object of treeview control to that addnewitem page,and i am getting error .how to do this tell me please.
|
|
|
|
|
rinku soni 23 wrote: But porblem is that i am carrying The object of treeview control to that addnewitem page,and i am getting error .
How you are passing object?whats the Error you got?Plz give pblm in detail.
|
|
|
|
|
The most likely way to do this is to have both pages as controls on the one page, so that viewstate preserves both pages. However, based on what you've said, it's hard to say more. What error ? What is your code ? What do you mean by 'carrying the object' ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
can anybody tell how to get a calender popup on onfocus event of textbox????????I searched a lot...but everywhere it is mentioned in connection with javascript and ajax..n i am not familiar with both
|
|
|
|
|
myinstincts wrote: but everywhere it is mentioned in connection with javascript and ajax
So that may be the solution.
|
|
|
|
|
myinstincts wrote: I searched a lot...but everywhere it is mentioned in connection with javascript and ajax..n i am not familiar with both
Javascript is the ONLY way to set something on the client side. So, buy a book..
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|