Click here to Skip to main content
15,889,116 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionswapping of two rows in a datagrid Pin
Krishlibran10-Oct-06 19:50
Krishlibran10-Oct-06 19:50 
QuestionHow to check If the Text box is Blank Pin
sabby200610-Oct-06 19:41
sabby200610-Oct-06 19:41 
AnswerRe: How to check If the Text box is Blank Pin
Nizha J10-Oct-06 19:49
Nizha J10-Oct-06 19:49 
GeneralRe: How to check If the Text box is Blank Pin
sabby200610-Oct-06 19:57
sabby200610-Oct-06 19:57 
AnswerRe: How to check If the Text box is Blank Pin
minhpc_bk10-Oct-06 20:00
minhpc_bk10-Oct-06 20:00 
AnswerRe: How to check If the Text box is Blank Pin
Aashutoshkumar11-Oct-06 23:57
Aashutoshkumar11-Oct-06 23:57 
Questiondisplaying data in a textbox by clicking a row in datagrid Pin
pranavcool10-Oct-06 19:30
pranavcool10-Oct-06 19:30 
AnswerRe: displaying data in a textbox by clicking a row in datagrid Pin
Nizha J10-Oct-06 19:45
Nizha J10-Oct-06 19:45 
datagrid has a property called columns.. in that choose button column and choose edit,update and camcel... then go to the codebehind window and selet datagrid name in class name combo box and edit command in method name combo box.. then write this..

Private Sub dg_EditCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles dg.EditCommand
dg.EditItemIndex = e.Item.ItemIndex
Dim ds As DataSet = getdata()
bindgrid(ds)
End Sub
Public Function getdata() As DataSet
Try
con.Open()
ada = New OleDbDataAdapter("select * from topic", con)
ada.Fill(ds1)
Return ds1
Catch ex As Exception
Response.Write(ex.Message)
Finally
con.Close()
End Try
End Function
Public Function bindgrid(ByVal ds As DataSet)
dg.DataSource = ds
dg.DataBind()
End Function
this will automatically replace a texbox with the respective values

Nizha

AnswerRe: displaying data in a textbox by clicking a row in datagrid Pin
Nizha J10-Oct-06 20:01
Nizha J10-Oct-06 20:01 
Question"dispaly in exel" Pin
ravikiranreddydharmannagari10-Oct-06 19:12
ravikiranreddydharmannagari10-Oct-06 19:12 
AnswerRe: "dispaly in exel" Pin
miniThomas10-Oct-06 23:52
miniThomas10-Oct-06 23:52 
QuestionRe: "display in exel" Pin
ravikiranreddydharmannagari11-Oct-06 2:10
ravikiranreddydharmannagari11-Oct-06 2:10 
QuestionASP.NET's Future Pin
analytiks10-Oct-06 18:12
analytiks10-Oct-06 18:12 
QuestionRecordcount Pin
Socheat.Net10-Oct-06 17:51
Socheat.Net10-Oct-06 17:51 
AnswerRe: Recordcount Pin
Jay_se10-Oct-06 19:05
Jay_se10-Oct-06 19:05 
AnswerRe: Recordcount Pin
_AK_10-Oct-06 20:28
_AK_10-Oct-06 20:28 
QuestionIf data duplicate help me plz. Pin
isis_preaw10-Oct-06 17:44
isis_preaw10-Oct-06 17:44 
AnswerRe: If data duplicate help me plz. Pin
minhpc_bk10-Oct-06 20:21
minhpc_bk10-Oct-06 20:21 
QuestionPrinting Paper Size Pin
YeHtut10-Oct-06 17:22
YeHtut10-Oct-06 17:22 
QuestionHow to check the database the given value is in the database or not Pin
dhulipudi10-Oct-06 16:33
dhulipudi10-Oct-06 16:33 
AnswerRe: How to check the database the given value is in the database or not Pin
minhpc_bk10-Oct-06 20:16
minhpc_bk10-Oct-06 20:16 
GeneralRe: How to check the database the given value is in the database or not Pin
dhulipudi31-Oct-06 18:37
dhulipudi31-Oct-06 18:37 
QuestionMasterpage and Content page Pin
Ken.A10-Oct-06 15:02
Ken.A10-Oct-06 15:02 
AnswerRe: Masterpage and Content page Pin
minhpc_bk10-Oct-06 20:10
minhpc_bk10-Oct-06 20:10 
QuestionRe: Masterpage and Content page Pin
Ken.A10-Oct-06 22:41
Ken.A10-Oct-06 22:41 

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.