Click here to Skip to main content
15,914,419 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDataSet Missing Rows Value While Reading From EXCEL FIle Pin
prabhakar dwivedi4-Jun-10 21:15
prabhakar dwivedi4-Jun-10 21:15 
AnswerRe: DataSet Missing Rows Value While Reading From EXCEL FIle Pin
Sandeep Mewara4-Jun-10 22:31
mveSandeep Mewara4-Jun-10 22:31 
QuestionSystem.Drawing.Image to System.Web.UI.WebControls.Image Pin
Add44-Jun-10 20:55
Add44-Jun-10 20:55 
AnswerRe: System.Drawing.Image to System.Web.UI.WebControls.Image Pin
Brij4-Jun-10 22:24
mentorBrij4-Jun-10 22:24 
GeneralRe: System.Drawing.Image to System.Web.UI.WebControls.Image Pin
Add44-Jun-10 22:30
Add44-Jun-10 22:30 
QuestionCode for page ranking Pin
rummer4-Jun-10 19:46
rummer4-Jun-10 19:46 
AnswerRe: Code for page ranking PinPopular
Sandeep Mewara4-Jun-10 19:57
mveSandeep Mewara4-Jun-10 19:57 
AnswerRe: Code for page ranking Pin
Peace ON4-Jun-10 19:59
Peace ON4-Jun-10 19:59 
GeneralRe: Code for page ranking Pin
Sandeep Mewara4-Jun-10 20:06
mveSandeep Mewara4-Jun-10 20:06 
GeneralRe: Code for page ranking Pin
Peace ON4-Jun-10 21:12
Peace ON4-Jun-10 21:12 
RantRe: Code for page ranking Pin
saini arun4-Jun-10 20:03
saini arun4-Jun-10 20:03 
Questionhow to restrict the user not to redirect to other page when check box is checked in asp.net with c# Pin
developerit4-Jun-10 19:08
developerit4-Jun-10 19:08 
AnswerRe: how to restrict the user not to redirect to other page when check box is checked in asp.net with c# Pin
Peace ON4-Jun-10 19:52
Peace ON4-Jun-10 19:52 
hi,

First thing you need to take care is that
do not add any record to database unless and until user
is pressing add button.
(Hope you are already doing that)

Second is on gridview page navigation event you need to cancel
add operation if there is no any data added to any of the column
in new row that is added.

You can also add validation controls to gridview so that your user
cannot add record that has all the fields blank.

Find following links useful.

ASP.NET GridView - Add a new record[^]

http://www.asp.net/data-access/tutorials/adding-validation-controls-to-the-editing-and-inserting-interfaces-vb[^]

http://geekswithblogs.net/dotNETvinz/archive/2009/02/22/gridview-insert-edit-update-and-delete--the-ado.net-way.aspx[^]


You will find more help by little googling regarding
how to cancel adding of new blank record.

That's it.


HTH
Jinal Desai - LIVE
Experience is mother of sage....

AnswerRe: how to restrict the user not to redirect to other page when check box is checked in asp.net with c# [modified] Pin
Ankur\m/4-Jun-10 21:32
professionalAnkur\m/4-Jun-10 21:32 
Questionhow to send all pages from gridview control to email using asp.net with c# Pin
developerit4-Jun-10 19:00
developerit4-Jun-10 19:00 
AnswerRe: how to send all pages from gridview control to email using asp.net with c# Pin
Peace ON4-Jun-10 19:43
Peace ON4-Jun-10 19:43 
Questiondatetime question Pin
Edward Topalian4-Jun-10 14:14
Edward Topalian4-Jun-10 14:14 
AnswerRe: datetime question Pin
Rutvik Dave4-Jun-10 14:24
professionalRutvik Dave4-Jun-10 14:24 
QuestionRe: datetime question Pin
Edward Topalian4-Jun-10 14:37
Edward Topalian4-Jun-10 14:37 
AnswerRe: datetime question Pin
Rutvik Dave4-Jun-10 15:51
professionalRutvik Dave4-Jun-10 15:51 
GeneralRe: datetime question Pin
Edward Topalian5-Jun-10 6:06
Edward Topalian5-Jun-10 6:06 
QuestionHow to make fixed header in gridView inside asp:panel? Pin
mittalpa4-Jun-10 8:34
mittalpa4-Jun-10 8:34 
AnswerRe: How to make fixed header in gridView inside asp:panel? Pin
Yusuf4-Jun-10 13:38
Yusuf4-Jun-10 13:38 
GeneralRe: How to make fixed header in gridView inside asp:panel? Pin
Sandeep Mewara4-Jun-10 20:07
mveSandeep Mewara4-Jun-10 20:07 
GeneralRe: How to make fixed header in gridView inside asp:panel? Pin
Yusuf5-Jun-10 11:38
Yusuf5-Jun-10 11:38 

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.