Could you provide us with the C# solution of the default.aspx.vb ?
meaning:
Protected Sub btnAddStudent_Click(sender As Object, e As System.EventArgs) Handles btnAddStudent.Click Dim StudentAdapter As New DataSet1TableAdapters.StudentsTableAdapter StudentsAdapter.Insert(FirstName:=txtbxStudentFirstName.Text, LastName:=txtbxStudentLastName.Text, Teacher:=ddlTeacherFullName.Text) lblStudentAdded.Text = "Student Added Successfully!" End Sub
Error 1 Handles clause requires a WithEvents variable defined in the containing type or one of its base types. C:\Users\magindexter\Documents\Visual Studio 2008\WebSites\PracticeDatabase\Default.aspx.vb 5 94 C:\...\PracticeDatabase\
@Mutikira when creating a table adapter in the dataset xsd file, you should select all the fields you need with the query builder unless you're writing the query yourself. In your case your query should look something like this: "select UserName, anotherField from yourtable". If the intelisense doesn't show your field, just type it in manually like so: "UserName:=". What helps sometimes is to start typing the name of the field and then backspace one character and the intelisense kick in.
@Mutikira soryy for the late reply, if you list asp controls in the insert statement in the same order as the sql statement in your xsd, it will insert properly even if you don't manually map them like: username:=txtUser.text.
I just like to do it to make sure everything matches.
This has been flagged as spam show
Could you provide us with the C# solution of the default.aspx.vb ?
meaning:
Protected Sub btnAddStudent_Click(sender As Object, e As System.EventArgs) Handles btnAddStudent.Click Dim StudentAdapter As New DataSet1TableAdapters.StudentsTableAdapter StudentsAdapter.Insert(FirstName:=txtbxStudentFirstName.Text, LastName:=txtbxStudentLastName.Text, Teacher:=ddlTeacherFullName.Text) lblStudentAdded.Text = "Student Added Successfully!" End Sub
Fizd 4 months ago
Comment removed
Fizd 4 months ago
This has been flagged as spam show
can you tell me why and what does not appear in my data source to configure anything on the part chosse your bussines object.
0rnetH 10 months ago
can you tell me why and what does not appear in my data source to configure anything on the part chosse your bussines object
0rnetH 10 months ago
Error 1 Handles clause requires a WithEvents variable defined in the containing type or one of its base types. C:\Users\magindexter\Documents\Visual Studio 2008\WebSites\PracticeDatabase\Default.aspx.vb 5 94 C:\...\PracticeDatabase\
Someone please help me with this error???
jepipay 11 months ago
wen was that FirstName:= etc declared ?
because my visual cant find my UserName:=
pls help...
and pls make an tutorial of register and tutorial pls
Mutikira 1 year ago
@Mutikira when creating a table adapter in the dataset xsd file, you should select all the fields you need with the query builder unless you're writing the query yourself. In your case your query should look something like this: "select UserName, anotherField from yourtable". If the intelisense doesn't show your field, just type it in manually like so: "UserName:=". What helps sometimes is to start typing the name of the field and then backspace one character and the intelisense kick in.
ASPToday 1 year ago
@ASPToday hmm wat i did is i remove the username:=. but i still put the txtusername.Text...and it works normally. is it fine to remove it?
but i will try wat u've said to me^^tnx for the reply :]
Mutikira 1 year ago
@Mutikira soryy for the late reply, if you list asp controls in the insert statement in the same order as the sql statement in your xsd, it will insert properly even if you don't manually map them like: username:=txtUser.text.
I just like to do it to make sure everything matches.
ASPToday 1 year ago
wen was that FirstName:= etc declared ?
because my visual cant find my UserName:=
pls help...
Mutikira 1 year ago
hope u make more of it^^
nice Tutorial:D
Mutikira 1 year ago
Thanks! Your tutorial is very helpful.
blazer072 1 year ago
@rsmandudeguy unfortunately I don't program in c#.
ASPToday 1 year ago
@ASPToday So basicly from the beginning allready we should create a new default page choosing .VB instead of C# ?
Fizd 4 months ago
Could you please show this tutorial in C#?
rsmandudeguy 1 year ago
reduce your screen resolution i can not see anything
donzaliko 1 year ago