|
hi,
is there any way by which i can find out that how many session variables i have used in a particluar project.
Thanks and Regards
Aavesh Agarwal
|
|
|
|
|
Yes there are many ways to do it
Session.Count gives the number of session present in your application.
Session.Keys return you collection of all keys using those you get the all values
Session.GetEnumerator return you enumerator to current session using you can iterate through Session.
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Telgu Radhu ;P
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
hey akhare i thought its Vuppala
Koushik
|
|
|
|
|
playing with bugs ) wrote: Thanks and Regards
Sandeep
A new display name ? Previous was good
|
|
|
|
|
thanks for compliment
Old one is my real name just for change i changed my display name nothing intensional like Satips (kidding)
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
LOL Sandeep
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
|
I am using ServerManager.
Is anybody aware of how to get DefaultDocument of a particular Virtual Directory?
Nana
|
|
|
|
|
You have to add ur DefaultPage in IIS documents Tab..
go to IIS--->rightClick on Default Website--->properties->>>documnets Tab->>add ur default page
|
|
|
|
|
Actually I want to do it using code, not using IIS manager.
Thats why I am using ServerManager of Microsoft.Web.Administration
Nana
|
|
|
|
|
Hi There,
This is driving me bonkers, here's hoping I can explain clearly...
I have a master class called Site (Sites is a collection of Site), which contains a couple of string properties and 1 property of type 'ProductGroups'.
Class Product group (ProductGroups is a collection of Product Group) also contains a couple of string properties and 1 property of type 'Products'.
Class Product (Products is a collection of Product)
I have a loop which looks like this:-
foreach (Site site in sites)<br />
{<br />
<br />
<br />
<br />
<br />
}
Option 1 - is ok & I can code that.
Option 2 & 3 I just cant seem to get my head around this!
I know its simple, but its driving me nuts.
Any help will be apprieciated.
Thanks
Janet
Lady Programmers are a rare breed!
|
|
|
|
|
But_Im_a_Lady wrote: get at the product groups & display product group name
Very tough to undestand you question. Sorry if I misunderstood you. Is it possible to one more foreach loop inside the one you specified and iterate through ProductGroups collection ?
|
|
|
|
|
Yes, for some reason I was try to get down to the 3rd level by only using two for each loops! (Dont ask - a million n 1 things going on here at the mo')
So now I have these loops:-
foreach(Site site in Sites)<br />
{<br />
foreach (ProductGroup productGroup in site.ProductGroups)<br />
{<br />
foreach (Product product in productGroup)<br />
{<br />
Only 1 issue now, when I try & compile I get this error:-
foreach statement cannot operate on variables of type 'KSS.PriceNet.Shared.EntityModel.ProductGroup' because 'KSS.PriceNet.Shared.EntityModel.ProductGroup' does not contain a public definition for 'GetEnumerator'.
I haven't seen this before, any ideas?
Ta
Lady Programmers are a rare breed!
|
|
|
|
|
But_Im_a_Lady wrote: foreach statement cannot operate on variables of type 'KSS.PriceNet.Shared.EntityModel.ProductGroup' because 'KSS.PriceNet.Shared.EntityModel.ProductGroup' does not contain a public definition for 'GetEnumerator'.
Because ProductGroup is not collection class. So foreach won't work. I think 3rd forloop has some problem. It could be like
foreach (Product product in productGroup.Products)
{
Right ?
|
|
|
|
|
Fab - thx for your help, yeah its working!
Lady Programmers are a rare breed!
|
|
|
|
|
Something like this?
foreach (Site site in sites)
{
foreach ( ProductGroup aGroup in site.ProductGroups)
{
foreach (Product prod in aGroup.Products)
{
}
}
}
|
|
|
|
|
Fab - thx for your help, yeah its working!
Lady Programmers are a rare breed!
|
|
|
|
|
How to convert the project of asp.net developed into Visual Studio .Net 2005
to Visual Studio .Net 2002/2003
Mogha Ritesh
|
|
|
|
|
You can't
1 - there's no way to convert back language features not in 2002/2003
2 - the whole layout of aSP.NET changed for 2005
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
how do i get the image beside the url, you know when you type www.google.in you get the "G" logo beside the www.... how do you do that??
Thanks in advance,
Priya.
|
|
|
|
|
hi priya,
Explain ur Question onece again didn't get it...
Thanks and Regards
Aavesh Agarwal
|
|
|
|
|
when you type a url,you will find "IE" logo "e" symbol.
as soon as url gets loaded, that is replaced with corresponding logo like:
first:ewww.google.com
then :Gwww.google.com
do u get it
Thanks in advance,
Priya.
|
|
|
|
|
Do you mean FavIcon ? Add the following tag to your page head
<link rel="shortcut icon" href="/favicon.ico" />
You should keep the favicon.ico in the specified path.
|
|
|
|
|
Great , it worked.
Thanks in advance,
Priya.
|
|
|
|