Solved

Values assignin to text boxes through coding not saving in database

Posted on 2004-10-18
4
190 Views
Last Modified: 2010-04-23
Sir,

I am using VB.net.  Through coding I bound textboxes and datagrid to dataset columns.  I am not using controls for dataadapter, dataset and connection.  through coding I am assignin some values to some text boxes.  and in some text boxes user will input the values.  During the save, I found values which assigned to text boxes through coding is not saved in database.  After assgining values to text boxes if I am clicking that text boxes values are saved in databse.  Why it is happening like this ? what is solution for this problems??

Please Help

Thanks
0
Comment
Question by:adwat
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 18

Accepted Solution

by:
tusharashah earned 250 total points
ID: 12337841
Make sure you assign your Value while IsPagePostBack is false....

--------------------------------------------------------------------------------------------------

Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
 If Not IsPostBack Then
     ' Fill your textbox here...
 End If
End Sub

--------------------------------------------------------------------------------------------------

Otherwise the values will be replaced by the time you hit Submit/Save.

-tushar
0
 
LVL 8

Assisted Solution

by:wguerram
wguerram earned 250 total points
ID: 12338367
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB.NET - Refactor Class per SOLID principles 2 40
.Net remove carriage returns, line feeds and tabbs 5 33
vb.net dbnull syntax 1 49
Read top line from CSV file 14 56
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question