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

ASP.NET

 
AnswerRe: How to access HTML Controls property in codebehind Pin
Vijayitsb22-May-08 18:56
Vijayitsb22-May-08 18:56 
QuestionDownloading Open office documents from ASP.Net Applciaiton Pin
M. J. Jaya Chitra22-May-08 18:38
M. J. Jaya Chitra22-May-08 18:38 
QuestionShowing PPT in Webpage Pin
Tiger45622-May-08 18:28
Tiger45622-May-08 18:28 
AnswerRe: Showing PPT in Webpage Pin
Vasudevan Deepak Kumar22-May-08 20:15
Vasudevan Deepak Kumar22-May-08 20:15 
GeneralRe: Showing PPT in Webpage Pin
Anish Gopi23-May-08 0:43
sitebuilderAnish Gopi23-May-08 0:43 
QuestionGridView add a row at end Pin
mpavas22-May-08 8:41
mpavas22-May-08 8:41 
AnswerRe: GridView add a row at end Pin
gnjunge22-May-08 20:27
gnjunge22-May-08 20:27 
QuestionSQLdatareader problem Pin
defreek22-May-08 8:27
defreek22-May-08 8:27 
When the page loads, the datareader fills in the textboxes with data.

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        Conn.Open()
        Dim strSQL As String = "SELECT  tblNieuws.ID, tblNieuws.Titel, tblNieuws.Inhoud, tblGebruikers.Naam, tblNieuws.Datum FROM tblGebruikers INNER JOIN tblNieuws ON tblGebruikers.GebruikerID = tblNieuws.GebruikerID WHERE ID='" & Session("ID") & "'"
        Dim cmdLogin As New System.Data.SqlClient.SqlCommand(strSQL, Conn)
        Dim reader As System.Data.SqlClient.SqlDataReader

        reader = cmdLogin.ExecuteReader()

        While reader.Read()
            berichtid = reader.GetValue(0)
            txtTitel.Text = reader.GetValue(1)
            txtBericht.Text = reader.GetValue(2)
            DropDownList1.SelectedValue = reader.GetValue(3)
            txtdatum.Text = reader.GetValue(4)
        End While

        reader.Close()

        Conn.Close()

    End Sub


When the data is filled in by the reader, the textboxes can be altered by the user.
But for some reason, when the button is clicked after the new user input is filled in, the .text of the textboxes is still outputting the data from the reader instead of the user input.

Protected Sub btnverzenden_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnverzenden.Click

        Dim strtitel As String = txtTitel.Text
        Dim strbericht As String = txtBericht.Text
        Dim strdatum As String = txtdatum.Text

... 


I don't know what the problem is.
Thanks for any help!
AnswerRe: SQLdatareader problem Pin
keyboard warrior22-May-08 9:03
keyboard warrior22-May-08 9:03 
GeneralRe: SQLdatareader problem Pin
defreek22-May-08 9:47
defreek22-May-08 9:47 
AnswerRe: SQLdatareader problem Pin
Krazy Programmer22-May-08 20:15
Krazy Programmer22-May-08 20:15 
QuestionGridView Pin
kpg12322-May-08 6:46
kpg12322-May-08 6:46 
AnswerRe: GridView Pin
keyboard warrior22-May-08 7:22
keyboard warrior22-May-08 7:22 
QuestionC# & ASp.Net writing to Excel Files Pin
Jacob Dixon22-May-08 6:23
Jacob Dixon22-May-08 6:23 
AnswerRe: C# & ASp.Net writing to Excel Files Pin
Christian Graus22-May-08 13:43
protectorChristian Graus22-May-08 13:43 
QuestionHow do i Print and Export Crystal Report??? Pin
keroed_edmond22-May-08 5:26
keroed_edmond22-May-08 5:26 
AnswerRe: How do i Print and Export Crystal Report??? Pin
keyboard warrior22-May-08 6:05
keyboard warrior22-May-08 6:05 
GeneralRe: How do i Print and Export Crystal Report??? Pin
keroed_edmond22-May-08 7:38
keroed_edmond22-May-08 7:38 
GeneralRe: How do i Print and Export Crystal Report??? [modified] Pin
keyboard warrior22-May-08 7:46
keyboard warrior22-May-08 7:46 
QuestionASP.net calendar control questions? Pin
pankazmittal22-May-08 5:05
pankazmittal22-May-08 5:05 
AnswerRe: ASP.net calendar control questions? Pin
Laddie22-May-08 18:12
Laddie22-May-08 18:12 
Question[Message Deleted] Pin
Saba0222-May-08 4:26
Saba0222-May-08 4:26 
AnswerRe: How i can Compare date for new releases ? Pin
eyeseetee22-May-08 4:34
eyeseetee22-May-08 4:34 
AnswerRe: How i can Compare date for new releases ? Pin
N a v a n e e t h22-May-08 4:52
N a v a n e e t h22-May-08 4:52 
GeneralRe: How i can Compare date for new releases ? [modified] Pin
Saba0222-May-08 4:59
Saba0222-May-08 4:59 

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.