|
Are you using State Management in your application ?
Use Session to store the data in the grid and repopulate your grid with this stored data(Sessio) when user comes back from edit page
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... "
Check My Blog
|
|
|
|
|
thanks sandeep.
We can store the query in session and Re-Pass it.
but is there any simple way to story the history or history.go or any?
please advice
|
|
|
|
|
Yes you can Cache the whole page
Issue will be you will have to differentiate between different users
As yours is web application n number of users are accessing the application.
can you search caching in browser ? i think that may resolve your problem.
i suggest better way is to use Session than browser caching
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... "
Check My Blog
|
|
|
|
|
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 ![Blush | :O](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_redface.gif)
|
|
|
|
|
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.
|
|
|
|