|
You could use session variables. Just a quick thought
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hai, paul conrad and sandeep.
thanks for your advice.
i try to implement SESSION. Thanks
|
|
|
|
|
After I posted my suggestion, I saw that sandeep suggested the same thing. Good luck to you with the Session variables. Do keep in mind to delete the session variables when done with the values.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hai paul,
please guide me.
i stored the query in a session variable (say...A)
i like to check the variable A is empty or not. If empty, i execute my normal query. Else the query which is stored in session variable A.
Now when i check the condition, the error "Object reference not set to an instance of object" is occuring. How can i check the session variable exist or not..
i tried as...
if (Session["A"].ToString().Length!=0)
{
.......Session variable query execution...........
}
else
{
.......new query contents...........
}
but it fails.
help me....
thanks in advance. - KARAN
|
|
|
|
|
sorry my dear friend... i got the solution..
thanks in advance...
i implemented as....
if (Session["A"] != null)
{
.........
........
.........
}
|
|
|
|
|
Make the search and edit pages both controls and navigate by changing which one is visible. Viewstate will do the rest for you.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Thanks christian graus,
so i think there is another way to proceed this. but its confusing me a little. can u guide me regarding this? and how to process it?
Hai, paul and sandeep... can u pals help me?
|
|
|
|
|
Hi guys i am trying frame set in my .net2008,
But its not accepting that frameset columns...,
how to resolve it,
this is my code:
<frameset cols="18%,85%">
<frame name="sidemenu" borderColor="white" src="SalarySubMenu.htm" frameBorder="no" scrolling="no">
<frame name="submenu" borderColor="white" src="SubMenu.htm" frameBorder="no">
</frameset>
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
Iam new to ajax ..pls can any one send the code or link
how to use ajax dropdown ..
|
|
|
|
|
If the documentation and online samples are not enough for you, then ASP.NET AJAX in Action is a great book. Of course, none of this is going to teach you anything about AJAX, just how to use a framework that does AJAX for you, but I expect that's all you want.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Hi cbenan,
I hope this will be help u...,
Cascading DropDown Control[^]
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
ok thank u..I will have a look
|
|
|
|
|
type ajax toolkit in google then load ajax toolkit and run it.
its having lot of ajax example u can easily apply and learn.
|
|
|
|
|
Dear,
I using ASP.NET with C#, when i get records from SQL Server I don't use GridView, I use only table, so how can i use size paging?
Socheat
|
|
|
|
|
Your most logical way is to write a pager control and then to ask your SQL database for only the records you want to view, and the number of pages.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
|
Socheat.Net wrote: I don't use GridView
why ? Grid view is the best option to display records from database and also for paging.
Socheat.Net wrote: use only table
you have to write code for it. you can write a class where you can set a property of page size for paging, generate table on runtime based on the page size . add navigation image on table footer for navigation.
Hope this can help you.
cheers,
Abhijit
|
|
|
|
|
Because i have a many child table in main table
Socheat
|
|
|
|
|
Hiiii All Friends
I want to create poll in my website.
I m looking 4 a easy code to create poll.
wel after creating poll i would be able to create new poll and delete existing poll from my admin page .
If anyone of you know that then help me .
I m using C#.
Thanx in Advance
nirav patel
|
|
|
|
|
A poll is just a group of questions, which if you have users that log in, probably tracks each answer so it can work out if you answered before, otherwise, could just track totals. Which bit are you stuck on ? Is this your first time usng a database ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
I am able to make a website in File System but when i try to make website in HTTP, I got an error message as below...
Configuring web site "http://localhost/Mywebsite' to ASP.NET 2.0 failed. You may need to manually configure this site for ASP.NET 2.0 order for your site to run correctly.
How i can solve this problem...
Would I have to setting for IIS server. If yes then give me steps for that.
|
|
|
|
|
If your running this under IIS, not the built in web server that ships with VS 2005++, you would need to install the 2.0++ framework that create a virtual directory under IIS that points to the directory containing your files.
|
|
|
|
|
Hello,
I have a site which has auctions (antiques). My products page takes three query parameters. Two of them ranges from ~1-10 and one from 1-40 and increasing (the auction id). Most users will only view the current auction so this one I would like to cache. Auctions which recently was active and auctions that are coming up will be visited a bit as well, but not nearly as much as the active one. Older auctions won't be visited much.
Right now I am caching my datasets which I retreive from my database. I only cache the active and some of the more frequently used ones.
The products never change really, so I could use output caching, but would this be a bad choice with so many query parameters? I guess that output caching is better then to cache the datasets as you don't have to render the html every time. Should I use a very short duration so that the output caching doesn't cache so many pages, or maybe remove less-frequently viewed pages from the output cache immediatly from the code-behind? Maybe sliding expire?
Any thoughts? Thanks
|
|
|
|
|
Hi to all,
I want to call my custom edit form while editing mode of web part.
Can you help me out?
|
|
|
|
|
krinaljariwala wrote: want to call my custom edit form while editing mode of web part.
it's not clear to me ? do you want to call your user control in web parts ? please confirm.
cheers,
Abhijit
|
|
|
|