Click here to Skip to main content
16,007,814 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: ASP.NET (Validation) Pin
Not Active5-Apr-07 3:53
mentorNot Active5-Apr-07 3:53 
AnswerRe: ASP.NET (Validation) Pin
Kunal P5-Apr-07 4:26
Kunal P5-Apr-07 4:26 
Questionwebparts in asp.net Pin
NidhiKanu5-Apr-07 3:21
professionalNidhiKanu5-Apr-07 3:21 
AnswerRe: webparts in asp.net Pin
Not Active5-Apr-07 3:26
mentorNot Active5-Apr-07 3:26 
QuestionAjax & ASP.Net 1.1 ? Pin
digsy_5-Apr-07 3:07
digsy_5-Apr-07 3:07 
AnswerRe: Ajax & ASP.Net 1.1 ? Pin
Not Active5-Apr-07 3:23
mentorNot Active5-Apr-07 3:23 
GeneralRe: Ajax & ASP.Net 1.1 ? Pin
digsy_5-Apr-07 3:35
digsy_5-Apr-07 3:35 
QuestionPage load to display the gridview Pin
Oga M5-Apr-07 3:04
Oga M5-Apr-07 3:04 
*This is my code
***********
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim ds As New Data.DataSet
Dim obj As Businesslayer.TimeSheet = New Businesslayer.TimeSheet
Dim str As String = "select ProjectMember, Total_Hours from Timesheet"
Dim repeater1 As Repeater
Dim NumberOfBoxes As Integer
Dim WhichBox As Integer
NumberOfBoxes = Integer.Parse(WhichBox)
Dim rows(NumberOfBoxes) As Integer



For WhichBox = 0 To NumberOfBoxes
rows(WhichBox) = WhichBox
Next

repeater1.DataSource = rows
repeater1.DataBind()

Dim bLayer As New Businesslayer.GlobalFunctions
Dim reader As Data.SqlClient.SqlDataReader = bLayer.returnRecords(str)

For WhichBox = 0 To NumberOfBoxes
Dim cmbProjectName As DropDownList = CType(repeater1.Items(WhichBox).FindControl("cmbProjectName"), DropDownList)
Dim cmbClientSite As DropDownList = CType(repeater1.Items(WhichBox).FindControl("cmbClientSite"), DropDownList)
Dim cmbProjectManager As DropDownList = CType(repeater1.Items(WhichBox).FindControl("cmbProjectManager"), DropDownList)
Dim cmbCategory As DropDownList = CType(repeater1.Items(WhichBox).FindControl("cmbCategory"), DropDownList)
Dim cmbProjectMember As DropDownList = CType(repeater1.Items(WhichBox).FindControl("cmbProjectMember"), DropDownList)
Dim cmbOccupation As DropDownList = CType(repeater1.Items(WhichBox).FindControl("cmbOccupation"), DropDownList)
Next

Session("Repeater1") = reader("Repeater")
Session("ProjectMember") = reader("ProjectMember")
Session("TotalHours") = reader("TotalHours")
GridView1.DataSource = ds
GridView1.DataBind()
End Sub
***********
*This is an error
**********
Object reference not set to an instance of an object
*****************
*I want the gridview to display selected values from the table
****************
please help me what might be the problem


oga m
AnswerRe: Page load to display the gridview Pin
Not Active5-Apr-07 3:20
mentorNot Active5-Apr-07 3:20 
AnswerRe: Page load to display the gridview Pin
ToddHileHoffer5-Apr-07 3:35
ToddHileHoffer5-Apr-07 3:35 
QuestionPlease help me with this code Pin
Oga M5-Apr-07 2:58
Oga M5-Apr-07 2:58 
AnswerRe: Please help me with this code Pin
Not Active5-Apr-07 3:05
mentorNot Active5-Apr-07 3:05 
GeneralRe: Please help me with this code Pin
Oga M5-Apr-07 3:20
Oga M5-Apr-07 3:20 
GeneralRe: Please help me with this code Pin
Not Active5-Apr-07 3:28
mentorNot Active5-Apr-07 3:28 
GeneralRe: Please help me with this code Pin
Oga M5-Apr-07 3:51
Oga M5-Apr-07 3:51 
GeneralRe: Please help me with this code [modified] Pin
Not Active5-Apr-07 4:08
mentorNot Active5-Apr-07 4:08 
GeneralRe: Please help me with this code Pin
Oga M5-Apr-07 4:19
Oga M5-Apr-07 4:19 
GeneralRe: Please help me with this code Pin
Not Active5-Apr-07 4:43
mentorNot Active5-Apr-07 4:43 
GeneralRe: Please help me with this code Pin
Oga M5-Apr-07 5:06
Oga M5-Apr-07 5:06 
GeneralRe: Please help me with this code Pin
Not Active5-Apr-07 5:12
mentorNot Active5-Apr-07 5:12 
QuestionDefaultAppPool crashing Pin
Srinu_ss55-Apr-07 2:47
Srinu_ss55-Apr-07 2:47 
AnswerRe: DefaultAppPool crashing Pin
kubben5-Apr-07 2:56
kubben5-Apr-07 2:56 
GeneralRe: DefaultAppPool crashing Pin
Srinu_ss55-Apr-07 4:28
Srinu_ss55-Apr-07 4:28 
GeneralRe: DefaultAppPool crashing Pin
kubben5-Apr-07 4:33
kubben5-Apr-07 4:33 
QuestionAdd image to gridview Pin
musicDiva5-Apr-07 2:41
musicDiva5-Apr-07 2: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.