Click here to Skip to main content
15,921,905 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCount WebSite Visitors Pin
TheEagle14-Jun-06 18:36
TheEagle14-Jun-06 18:36 
AnswerRe: Count WebSite Visitors Pin
Suamal14-Jun-06 19:04
Suamal14-Jun-06 19:04 
GeneralRe: Count WebSite Visitors Pin
TheEagle14-Jun-06 19:27
TheEagle14-Jun-06 19:27 
GeneralRe: Count WebSite Visitors Pin
Suamal14-Jun-06 19:39
Suamal14-Jun-06 19:39 
GeneralRe: Count WebSite Visitors Pin
TheEagle17-Jun-06 7:20
TheEagle17-Jun-06 7:20 
QuestionBind Datagrid With Viewstate Pin
varshavmane14-Jun-06 18:32
varshavmane14-Jun-06 18:32 
AnswerRe: Bind Datagrid With Viewstate Pin
_AK_14-Jun-06 18:58
_AK_14-Jun-06 18:58 
AnswerRe: Bind Datagrid With Viewstate Pin
Tirthadip14-Jun-06 19:21
Tirthadip14-Jun-06 19:21 
Hi varshavmane,
I had similar kind of job sometimes earlier. If you dont want a post back on clicking of the ADD button then problem arises. For that you have to add some 'hidden textboxes' to your form.When you click on the ADD button add a new row to the datagrid through javascript ,which is quite easy,and put newly added values to the new datagrid row as well as add your records to the hidden textboxes by comma(,) separator.The newly added row and its values will not be traced by the server, its only for show purpose.You can add as many records as you want.Now finally when you click on the SAVE button take the old records from the datagrid and new records from the hidden textboxes and save them to the database.
In this process you will have only one postback. Otherwise on every click on the ADD button(when creating new records) will cause a postback.

Tirthadip
GeneralRe: Bind Datagrid With Viewstate Pin
varshavmane14-Jun-06 19:43
varshavmane14-Jun-06 19:43 
AnswerRe: Bind Datagrid With Viewstate Pin
Tirthadip14-Jun-06 19:55
Tirthadip14-Jun-06 19:55 
GeneralRe: Bind Datagrid With Viewstate Pin
varshavmane14-Jun-06 20:24
varshavmane14-Jun-06 20:24 
GeneralRe: Bind Datagrid With Viewstate Pin
_AK_14-Jun-06 20:29
_AK_14-Jun-06 20:29 
GeneralRe: Bind Datagrid With Viewstate Pin
varshavmane14-Jun-06 20:36
varshavmane14-Jun-06 20:36 
GeneralRe: Bind Datagrid With Viewstate Pin
_AK_14-Jun-06 20:41
_AK_14-Jun-06 20:41 
GeneralRe: Bind Datagrid With Viewstate Pin
varshavmane14-Jun-06 20:45
varshavmane14-Jun-06 20:45 
GeneralRe: Bind Datagrid With Viewstate Pin
_AK_14-Jun-06 20:49
_AK_14-Jun-06 20:49 
GeneralRe: Bind Datagrid With Viewstate Pin
varshavmane14-Jun-06 21:00
varshavmane14-Jun-06 21:00 
GeneralRe: Bind Datagrid With Viewstate Pin
_AK_14-Jun-06 21:22
_AK_14-Jun-06 21:22 
GeneralRe: Bind Datagrid With Viewstate Pin
varshavmane14-Jun-06 22:17
varshavmane14-Jun-06 22:17 
GeneralRe: Bind Datagrid With Viewstate Pin
_AK_14-Jun-06 22:37
_AK_14-Jun-06 22:37 
GeneralRe: Bind Datagrid With Viewstate Pin
varshavmane14-Jun-06 22:46
varshavmane14-Jun-06 22:46 
GeneralRe: Bind Datagrid With Viewstate Pin
_AK_14-Jun-06 22:58
_AK_14-Jun-06 22:58 
GeneralRe: Bind Datagrid With Viewstate Pin
varshavmane14-Jun-06 23:09
varshavmane14-Jun-06 23:09 
GeneralRe: Bind Datagrid With Viewstate Pin
_AK_14-Jun-06 23:10
_AK_14-Jun-06 23:10 
GeneralRe: Bind Datagrid With Viewstate Pin
varshavmane14-Jun-06 23:21
varshavmane14-Jun-06 23:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.