|
Hi,
read this.
link1[^]
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
sir is caching is different from view state and session or the same as of these two
|
|
|
|
|
Hi Dear,
you must have to read all links provided.
You will get ideas from that.
Try it out.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Store it in Session or viewstate. Caching is not a good solution for your scenario.
|
|
|
|
|
hi sir how r u...wat u said i did that only but i think session takes lot of space if more users acessing the same page .actual my requirement .iam getting the data from database into the datatable in one click event .and i want this data table values in another click event.but because of page post back the datatable does contain any values.how this problem will solve plz help me in this regard.
|
|
|
|
|
Have you tried viewstates ? It's scope is only in the page. So no need to worry about server resource utilization.
|
|
|
|
|
sir...is there is any other alternate wat i mean with out session and viewstate..can't we achive this problem...k if we use view state or session which one is better one sir.
|
|
|
|
|
Viewstate can be tampered with and doesn't persist across pages. Session takes up room on the server. The Session is a concept that is not unique to ASP.NET, viewstate was created to create state within a stateless environment. They both have advantages, at different times.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
thanks mr.Christian Graus sir for u r value advices..is there is any problem in memory allotments if i use viewstate for the datatable when a largeno users acees the same page
|
|
|
|
|
There won't be much problem. But if your datatable is much bigger, viewstate also will be huge. As Christian told, it is easy to tamper, so if you are keeping very sensitive information, go for sessions. If you need to keep the data only in this page and it's not sensitive, use viewstate. If all your users are seeing the same data, then cache your datatable for improved performance.
|
|
|
|
|
If all your users are seeing the same data, then cache your datatable for improved performance.
will u plz tell wat this sentence means?
|
|
|
|
|
You told you have many visitors seeing this page simultaneously. So ti improve performance, you can cache the datatable. But this is applicable if all the users are seeing same data and not user specific data.
Assume you have a website something like CP, and in your page you display all the latest articles. So this information will be same for all the visitors. You cache this data and when another user requests, load it from the cache.
Hope it makes sense.
|
|
|
|
|
thanks for u valuable suggestions .now my table contains a rows of 150.so will i use viewstate sir..at present iam using seession. u told me this senetence ----
"Assume you have a website something like CP, and in your page you display all the latest articles. So this information will be same for all the visitors. You cache this data and when another user requests, load it from the cache."how could be done this one sir id how i can make a datatable cache...
thanks in advance
|
|
|
|
|
jagadeeshkumar2106 wrote: how could be done this one sir id how i can make a datatable cache...
if(Cache["SomeName"] != null)
Else
Cache["SomeName"] = datatable;
|
|
|
|
|
I am trying to display data in list box with multi column in asp.net . Can it possible in asp.net
multi column list box . ?
Thanks
Piyush Vardhan Singh
|
|
|
|
|
Hi,
there is one way to do this.
Get query in which you get multi column result.
Then bind dataset to listbox.
Hope it will help you.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
thanks for reply
can u give any example
Piyush Vardhan Singh
|
|
|
|
|
Hi,
you can write query like.
SELECT column1 + '-' + column2 AS MyColumn FROM tableName
Now after getting value in dataset. Bind dataset to listbox.
myList.DataSource = datset
myList.DataTextField = "MyColumn";<br />
myList.DataBind();<br />
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Why don't you use GridView or something?
|
|
|
|
|
AFAIK, You can't use columns inside a listbox. Try using GridView/DataGrid
|
|
|
|
|
Hi all,
I want to port the .dbf files into Sqlserver.
The requirement are as such that
The user should be able to specify the name of Database and login Credential prior to porting the files into the Database.
we are using Visual Studio 2005 as developoemnt platform.
Please suggest us the possible way for that i can achieve my target.
Thanks and Regards
Avesh Agarwal
|
|
|
|
|
hi all
I have
string strDemo = "abc";
string strDemo1 = "abc def ghjk abcde";
I want check if strDemo1 have character is same strdemo return true else false.
Same query Like N'%%' in sqlserver
how can i do ??
|
|
|
|
|
The Contains method on the string class
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
- Get the length of strDemo
- Cut the string according to the lenght of strDemo from strDemo1
- compare strDemo and strDemo1 (which has been cut)
|
|
|
|
|
Oh. I didn't see the Christian's reply.
ya. Christian's method might be better for you.
|
|
|
|