Click here to Skip to main content
16,004,901 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow to populate datagrid from dataset manually Pin
shah zad13-Jun-06 21:42
shah zad13-Jun-06 21:42 
AnswerRe: how to populate datagrid from dataset manually Pin
Paddy Boyd13-Jun-06 22:38
Paddy Boyd13-Jun-06 22:38 
QuestionDisplaying Repeater control value..... Pin
Nagraj Naik13-Jun-06 21:30
Nagraj Naik13-Jun-06 21:30 
AnswerRe: Displaying Repeater control value..... Pin
Paddy Boyd13-Jun-06 22:42
Paddy Boyd13-Jun-06 22:42 
GeneralRe: Displaying Repeater control value..... Pin
Nagraj Naik14-Jun-06 0:05
Nagraj Naik14-Jun-06 0:05 
QuestionRadio button Pin
acodman13-Jun-06 20:57
acodman13-Jun-06 20:57 
AnswerRe: Radio button [modified] Pin
Guffa13-Jun-06 21:07
Guffa13-Jun-06 21:07 
QuestionData Access Layer Pin
guitardave7813-Jun-06 20:57
guitardave7813-Jun-06 20:57 
Hi all.
I would like to develop a DAL to work with MySQL and the .net connector for asp.net 2.0
I create a dataset with the correct data in it and return that as a function. The object datasource can see it and will connect it to a gridview. When the page is run the gridview is populated correctly.
The problem comes when i try to edit the grid view. The columns do not display inside VWD 2005, so i cannot edit them at all.
Is it possible to force a schema on the objectdatasource that the IDE can use.
I have seen it done with custom collections, but as I do not understand them yet I wanted to use a dataset.

The code I have so far is
Private Sub dbConn()
If Not conn Is Nothing Then conn.Close()

Dim connStr As String
connStr = "Server=localhost;Database=dls;Uid=blag;Pwd=blahblah;"

conn = New MySqlConnection(connStr)

End Sub
Public Function selectAllMessages() As DataTable
dbConn()
Dim da As MySqlDataAdapter
Dim Data = New DataTable("messages")

da = New MySqlDataAdapter("SELECT * FROM tbl_messages", conn)

conn.Open()

da.Fill(Data)

Return Data
End Function

Questionadding rows manually in a datagrid to implement tree structure [modified] Pin
shah zad13-Jun-06 20:46
shah zad13-Jun-06 20:46 
QuestionUrgent guidance required reg. Session [modified] Pin
kumar.m13-Jun-06 20:25
kumar.m13-Jun-06 20:25 
QuestionFileIOPermission failed when uploading to hosted app Pin
travyjeremus13-Jun-06 19:47
travyjeremus13-Jun-06 19:47 
AnswerRe: FileIOPermission failed when uploading to hosted app Pin
Paddy Boyd13-Jun-06 23:43
Paddy Boyd13-Jun-06 23:43 
QuestionSaving Excel from Template urgent Pin
Suamal13-Jun-06 19:20
Suamal13-Jun-06 19:20 
QuestionProblem saving excel Urgent Pin
Suamal13-Jun-06 19:11
Suamal13-Jun-06 19:11 
QuestionCss problem Pin
sagarv_shinde@yahoo.com13-Jun-06 18:47
sagarv_shinde@yahoo.com13-Jun-06 18:47 
AnswerRe: Css problem Pin
Guffa13-Jun-06 20:31
Guffa13-Jun-06 20:31 
GeneralRe: Css problem Pin
sagarv_shinde@yahoo.com13-Jun-06 23:05
sagarv_shinde@yahoo.com13-Jun-06 23:05 
GeneralRe: Css problem Pin
Guffa14-Jun-06 1:47
Guffa14-Jun-06 1:47 
Questionhow to create a chat application Pin
NZack NAs13-Jun-06 18:35
NZack NAs13-Jun-06 18:35 
QuestionRestricting datagrid When Bind with Arraylist Pin
varshavmane13-Jun-06 18:20
varshavmane13-Jun-06 18:20 
AnswerRe: Restricting datagrid When Bind with Arraylist Pin
Suamal13-Jun-06 19:31
Suamal13-Jun-06 19:31 
GeneralRe: Restricting datagrid When Bind with Arraylist Pin
varshavmane13-Jun-06 19:44
varshavmane13-Jun-06 19:44 
AnswerRe: Restricting datagrid When Bind with Arraylist Pin
minhpc_bk13-Jun-06 22:45
minhpc_bk13-Jun-06 22:45 
QuestionXmlDataSource using an aspx DataFile [modified] Pin
RX Maverick13-Jun-06 17:47
RX Maverick13-Jun-06 17:47 
AnswerRe: XmlDataSource using an aspx DataFile Pin
minhpc_bk13-Jun-06 21:34
minhpc_bk13-Jun-06 21:34 

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.