|
U r right. I had to ultimately switch over to manual one only.
But I saw the following loopholes in manual mode:
1. Row_updating event happens but not row_updated. same holds true for delete also.
2. Moreover, wizard helps you to generate code for update, delete, etc, but manual takes lot of time.
Plz see if you know the solution of any of the above point.
|
|
|
|
|
amittinku wrote: Row_updating event happens but not row_updated. same holds true for delete also.
I don't follow this.
amittinku wrote: Moreover, wizard helps you to generate code for update, delete, etc, but manual takes lot of time.
Any code that places the SQL in the presentation layer, is not production quality ( in fact, it's a mess ). That's one more reason to never use the wizards.
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 am developing a web application which is an intranet site using asp.net and c# and Sqlserver2005. It holds all important data about the employees, their leaves, salary, travel expenses ........ It has session timeout (it means if the portal is idle for sometime the session gets expired). The session timeout is 20mins. 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)
Thanks and Regards
Naina
Naina
|
|
|
|
|
nainakarri wrote: Is it a good practice to remove the session timeout
Never.
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.
|
|
|
|
|
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.
|
|
|
|