Click here to Skip to main content
15,922,584 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionError on uploaded website, fine on the local system [modified] Pin
Sangeetha .v15-Jun-06 20:30
Sangeetha .v15-Jun-06 20:30 
AnswerRe: Error on uploaded website, fine on the local system Pin
Paddy Boyd15-Jun-06 23:50
Paddy Boyd15-Jun-06 23:50 
QuestionMail Error Pin
kirthikirthi15-Jun-06 20:04
kirthikirthi15-Jun-06 20:04 
QuestionReading Contents of a Word/Excel File. Pin
deepaks315-Jun-06 19:16
deepaks315-Jun-06 19:16 
QuestionInsert from GridView to DetailsView record Pin
kmeyer15-Jun-06 19:15
kmeyer15-Jun-06 19:15 
AnswerRe: Insert from GridView to DetailsView record Pin
minhpc_bk17-Jun-06 20:48
minhpc_bk17-Jun-06 20:48 
GeneralRe: Insert from GridView to DetailsView record Pin
kmeyer19-Jun-06 0:42
kmeyer19-Jun-06 0:42 
GeneralRe: Insert from GridView to DetailsView record Pin
minhpc_bk19-Jun-06 16:40
minhpc_bk19-Jun-06 16:40 
If the Creator said the DataBound event is the best way, then it should be be your choice Smile | :) . There are a couple of things things that you might want to check:

+ Make sure the execution gets in the body of the if statement in the DetailsView1_DataBound event handler, I just want to ensure that your code does assign the default value to the input textbox.

+ Make sure you get reference to the right input textbox to set the default value. For example, make sure you do not assign a value to the input textbox of the BoundField or TemplateField with the InsertVisible property is set to false.

+ Make sure the Text property of the input textbox is not overwritten somewhere else.

Basically, when you get reference to the textbox with the DefailsView is in the Insert mode, you'll have 2 common options:

+ Use the rowindex and cellindex values, for example when you use the BoundField in the DetailsView control.

+ Use the FindControl method, and you use this way when define a TemplateField in the DetailsView control.

Perhaps, if you still cannot figure out the root cause, you might want to post your code snippets, that might help. In addition, I don't know off any book containing lots of examples about the GridView, DetailsView controls, but you may find online from the sites:

http://www.gridviewgirl.com[^]
http://www.gridviewguy.com/[^]

GeneralRe: Insert from GridView to DetailsView record Pin
kmeyer19-Jun-06 20:35
kmeyer19-Jun-06 20:35 
QuestionEmail validation Pin
Uma Kameswari15-Jun-06 18:48
Uma Kameswari15-Jun-06 18:48 
AnswerRe: Email validation Pin
Suamal15-Jun-06 19:10
Suamal15-Jun-06 19:10 
GeneralRe: Email validation Pin
Uma Kameswari15-Jun-06 19:52
Uma Kameswari15-Jun-06 19:52 
AnswerRe: Email validation Pin
psid2315-Jun-06 19:22
psid2315-Jun-06 19:22 
GeneralRe: Email validation Pin
Uma Kameswari15-Jun-06 20:01
Uma Kameswari15-Jun-06 20:01 
Question.net Pin
surshbabuk15-Jun-06 18:19
surshbabuk15-Jun-06 18:19 
AnswerRe: .net Pin
surshbabuk15-Jun-06 18:20
surshbabuk15-Jun-06 18:20 
GeneralRe: .net Pin
surshbabuk15-Jun-06 18:22
surshbabuk15-Jun-06 18:22 
AnswerRe: .net Pin
surshbabuk15-Jun-06 18:21
surshbabuk15-Jun-06 18:21 
GeneralRe: .net Pin
surshbabuk15-Jun-06 18:22
surshbabuk15-Jun-06 18:22 
AnswerRe: .net Pin
minhpc_bk15-Jun-06 23:43
minhpc_bk15-Jun-06 23:43 
QuestionEmail SMTP settings. [modified] Pin
Kenzy8615-Jun-06 16:52
Kenzy8615-Jun-06 16:52 
QuestionRandom password generation Pin
pitturamakrishna15-Jun-06 11:25
pitturamakrishna15-Jun-06 11:25 
AnswerRe: Random password generation Pin
Elina Blank15-Jun-06 12:23
sitebuilderElina Blank15-Jun-06 12:23 
AnswerRe: Random password generation Pin
Mircea Grelus15-Jun-06 12:51
Mircea Grelus15-Jun-06 12:51 
QuestionNewbie: Questions on datagrid, editing and datbinding Pin
leckey15-Jun-06 10:24
leckey15-Jun-06 10:24 

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.