|
Think about this for a moment. How big is the data you want to store. How long can an email address be ? How many users do you expect to have ? Are you running it on a Commodore 64 ?
Session data should be used sparingly, but storing some email addresses is not going to crash it. It's more when people fill the session with data sets, etc, and never empty it, that it can cause issues. You need to at least store something in the session to note the user that is logged in. If you store their user id, you can elect to read any other data from the DB, although this is surely going to 'cost' more to retrieve an email address every time, than if you store it in the session
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.
|
|
|
|
|
Thank you very much ....
I got the point ....
Apurv
“Never trust a computer you can’t throw out a window.”
(Steve Wozniak)
“There are only two industries that refer to their customers as ‘users’.”
(Edward Tufte)
|
|
|
|
|
apr~asp wrote: how much memory can be used from session memory ?
will this reduce the performance, if the number of online users is very high ??
No, Storing User ID, Email ID does not reduce the permanence at all. You have to rethink your design when you want to store DataTable, DataSet in Session, It can cause performance issue.
|
|
|
|
|
I want to make the treenodes visible or hidden based on some conditions.If the condition is true, hide the node, else visible.
I don't want to use WPF or any other libraries. Can it be possible with a few code lines. Even though I googled for sometime, it seems that it is possible only with WPF. Can anybody please provide any help on this? I have the following lines of code:
if (!htuserSecurityGroups.ContainsKey(securityGroup.Id))
{
node.SelectAction = TreeNodeSelectAction.None;
}
htuserSecurityGroups is the hashtable object and securityGroup is the collection object. This will only disable the selection. I want to make invisible the node itself? Is it possible? Please help. Thanks in advance.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
why do we make our own functions in dotnet
|
|
|
|
|
rajni_nanu wrote: why do we make our own functions in dotnet
This is not only about DotNet.
Please Read this
Functional programming[^]
|
|
|
|
|
rajni_nanu wrote: why do we make our own functions in dotnet
Microsoft is so stupid and they can't ship all the function that we need with .NET. So we end up with writing our own functions.
|
|
|
|
|
Just because to make ourself more easy programming way.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
Why is this forum flooded with morons at this time, every day ?
This question has nothing to do with ASP.NET, and has no real answer, apart from, buy a book and read it before you start asking questions. It's obvious you have no idea about even the rudiments of programming. On what basis could we hope to give you an answer you could understand ?
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 Every body,
By the Grace of God i create my first Website and i published on Net and i create Database also
My Question is it is necessary to have customError tag in web.config because when i type my website URL i got is error that customErrors mode="Off" and one more thing in web.congif only i write the Configuration setting like this
<configuration>
<appSettings>
<add key ="Connect" value="server=.; database=Ckom; uid=sa; Password=;" />
</appSettings>
<connectionStrings/>
in server i change the database name, userid,password and server="localhost" i don't know wether this is right or wrong i am very much confuse with server
please help me so that i can see my website
again i will that i got the message
Server Error in '/' Application.
below this they show customError mode="off"
please help me by telling excat what are the changes i have to made in web.config file on the server
|
|
|
|
|
Hi,
is your database located at the the same sever as the ASP.NET application. If yes, localhost for your server is right, if not you have to change this.
Best approach for the error-issue would be to use a custom error page that will be displayed whenever an error occurs. Best would be to change the mode to "remoteOnly". Then connect to your server via RDP to get a detailed information about the error (exception type, stack trace etc.)
Regards
Sebastian
|
|
|
|
|
Thanks For Your support
Can You give correct syntax of CustomError what i have to write on web.config file
thanks again
|
|
|
|
|
|
The error you're seeing, is telling you that you can't see the real error, because of the web.config settings. So you need to insert the code it's telling you to insert, which will allow error messages to be shown to a remote client. You'll then get an error telling you the actual problem with your site.
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.
|
|
|
|
|
Error handling can be done on Page Level, by overriding the onerror() function.
Can this be done only on master page ?
I mean, can we add an error handler on master page, rather than adding it on every single page ... ???
Apurv
“Never trust a computer you can’t throw out a window.”
(Steve Wozniak)
“There are only two industries that refer to their customers as ‘users’.”
(Edward Tufte)
|
|
|
|
|
I am not sure that this is true. But, you can handle errors at the top level in the same place that the application start and session start events are handled.
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.
|
|
|
|
|
Christian Graus wrote: top level
Christian Graus wrote: session start events
that means global.asax ???
Apurv
“Never trust a computer you can’t throw out a window.”
(Steve Wozniak)
“There are only two industries that refer to their customers as ‘users’.”
(Edward Tufte)
|
|
|
|
|
i have used the dropdownlist with data from database Whenever i run my application it always shows the first item of the dropdownlist as my selected item.How can avoid this Plz hel me?
|
|
|
|
|
Bind DropDownlist inside !Page.IsPostBack
<br />
if(!PageIsPostBack)<br />
{<br />
}
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
your question makes absolutely no sense. 'every time you run the application' ? If you mean every time you do a postback, then the other answer you got is correct. If you mean what you said, what did you expect it to show ? If you want to show something else, then you need to set the selected index. Perhaps if you explain yourself better.
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
Respected Sir
I Want To Know How To Write Crystal Reports In VisualStudio2008 Using ASP.Net+Csharp Please Send Me The Procedure how to
Start The CrystalReports And How To Write The Procedure I Don't Know How To Open From Vs2008 Please Answer My Query
From
Lakshman
|
|
|
|
|
Hello dear,
I want to use RecordSelectionFormula in to Sql Server Reporting Sevices 2005 in code behind file somthing like we use in Crystal Report.
Please Help me..
Thanks,
Nilesh..
|
|
|
|
|
hi,
i hav aproblem with crystal report in asp.net.when i display report with crystalreport viewer that its allignment change to central.but at design i allign it to left.how to slove this problem plz help me.
|
|
|
|
|
Hi guys,
I have a textbox in that i have mentioned autopostback [property true and its event(ontextchanged") i am executing my code bolck is there name already exist or not in database...,
but this ontextchanged event getting fire on my button click event only...,
its not excuting the textchanged place...,
is there anything i want to add in that place to fire the event?....,
this my sample code bolck:
<asp:textbox id="txt_section" cssclass="textboxGQ" runat="server"
="" ontextchanged="txt_section_TextChanged" autopostback="True"><asp:label
id="lbl_avail" runat="server" text="">
protected void txt_section_TextChanged(object sender, EventArgs e)
{
AdminDAL objadmin = new AdminDAL();
DataSet DS = new DataSet();
DS=objadmin.DAL_Availabilty(txt_section.Text);
if(DS.Tables[0].Rows.Count>0)
{
count=Convert.ToInt32(DS.Tables[0].Rows[0]["sectname"].ToString());
}
if (count > 0)
{
lbl_avail.Text = "Section Name Already Exists";
}
else
{
lbl_avail.Text = "Section Name Available";
}
}
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
I am astounded by the constant stream of people stupid enough to think that an entire web page reloading whenever they press a key, is a good idea.
You can handle a javascript event which will fire whenever a key is pressed. You can then write AJAX code to do this check if you want to. I think it's a dumb idea. What if what they have typed half way through exists, but they want to type some more ?
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.
|
|
|
|