Click here to Skip to main content
15,890,690 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Changing skins at runtime Pin
dandy7212-Jul-07 4:27
dandy7212-Jul-07 4:27 
QuestionDisplay Multiple Columns in a List Box Pin
kibromg11-Jul-07 4:00
kibromg11-Jul-07 4:00 
AnswerRe: Display Multiple Columns in a List Box Pin
Michael Sync11-Jul-07 7:59
Michael Sync11-Jul-07 7:59 
QuestionGridView Pin
.NET- India 11-Jul-07 3:49
.NET- India 11-Jul-07 3:49 
AnswerRe: GridView Pin
Michael Sync11-Jul-07 7:57
Michael Sync11-Jul-07 7:57 
QuestionFocus and Gridview Pin
.NET- India 11-Jul-07 3:48
.NET- India 11-Jul-07 3:48 
AnswerRe: Focus and Gridview Pin
Michael Sync11-Jul-07 7:54
Michael Sync11-Jul-07 7:54 
QuestionGridView and DetailsView Pin
Sarfaraj Ahmed11-Jul-07 3:42
Sarfaraj Ahmed11-Jul-07 3:42 
Hi Everybody

.aspx page I used DetailsView and GridView. GridView has three Columns ErrorID, ErrorType and ErrorDate. If I click on ErrorID then DetailsView will show the whole information (Same Page GridView then DetailsView)

Here is my code which is binding GridView1

Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound
Dim _AuditLog As AuditLog = New AuditLog()
_AuditLog = CType(e.Row.DataItem, AuditLog)

If (_AuditLog Is Nothing) Then

Else

Dim lblErrorID As Label = e.Row.FindControl("lblErrorID")
Dim lblErrorType As Label = e.Row.FindControl("lblErrorType")
Dim lblErrordate As Label = e.Row.FindControl("lblErrorDate")


lblErrorID.Text = _AuditLog.ErrorID.ToString()
lblErrorType.Text = _AuditLog.ErrorType.ToString()
lblErrordate.Text = _AuditLog.DateStamp.ToString()
End If

End Sub

Now wot should be code for DetailsView. I dont want to write any code inside .aspx file, it will be .vb or .cs

Any help will be greatful for me


Sarfarj Ahmed

AnswerRe: GridView and DetailsView Pin
Vasudevan Deepak Kumar11-Jul-07 3:46
Vasudevan Deepak Kumar11-Jul-07 3:46 
QuestionERROR:The test form is only available for requests from the local machine Pin
Sebastian T Xavier11-Jul-07 3:31
Sebastian T Xavier11-Jul-07 3:31 
AnswerRe: ERROR:The test form is only available for requests from the local machine Pin
Vasudevan Deepak Kumar11-Jul-07 3:44
Vasudevan Deepak Kumar11-Jul-07 3:44 
GeneralRe: ERROR:The test form is only available for requests from the local machine Pin
Sebastian T Xavier11-Jul-07 3:55
Sebastian T Xavier11-Jul-07 3:55 
QuestionExport a table to a csv Pin
Senseicads11-Jul-07 3:10
Senseicads11-Jul-07 3:10 
AnswerRe: Export a table to a csv Pin
Vasudevan Deepak Kumar11-Jul-07 3:24
Vasudevan Deepak Kumar11-Jul-07 3:24 
GeneralRe: Export a table to a csv Pin
Senseicads11-Jul-07 4:02
Senseicads11-Jul-07 4:02 
GeneralRe: Export a table to a csv Pin
ednrgc11-Jul-07 5:29
ednrgc11-Jul-07 5:29 
GeneralRe: Export a table to a csv Pin
Senseicads11-Jul-07 5:36
Senseicads11-Jul-07 5:36 
AnswerRe: Export a table to a csv Pin
martin_hughes11-Jul-07 8:59
martin_hughes11-Jul-07 8:59 
GeneralRe: Export a table to a csv Pin
Senseicads12-Jul-07 1:11
Senseicads12-Jul-07 1:11 
Questionhow can v write html tags in asp.net +c# code?? Pin
regin11-Jul-07 2:57
regin11-Jul-07 2:57 
AnswerRe: how can v write html tags in asp.net +c# code?? Pin
gauthee11-Jul-07 3:07
gauthee11-Jul-07 3:07 
AnswerRe: how can v write html tags in asp.net +c# code?? [modified] Pin
N a v a n e e t h11-Jul-07 3:07
N a v a n e e t h11-Jul-07 3:07 
GeneralRe: how can v write html tags in asp.net +c# code?? Pin
regin11-Jul-07 3:16
regin11-Jul-07 3:16 
GeneralRe: how can v write html tags in asp.net +c# code?? Pin
N a v a n e e t h11-Jul-07 3:21
N a v a n e e t h11-Jul-07 3:21 
GeneralRe: how can v write html tags in asp.net +c# code?? Pin
Vasudevan Deepak Kumar11-Jul-07 3:25
Vasudevan Deepak Kumar11-Jul-07 3:25 

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.