?
Solved

Values assignin to text boxes through coding not saving in database

Posted on 2004-10-18
4
Medium Priority
?
196 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 1000 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 1000 total points
ID: 12338367
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

801 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