Click here to Skip to main content
16,006,749 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Delete Request.QueryString variable Pin
The Web Developer19-Aug-08 0:30
The Web Developer19-Aug-08 0:30 
AnswerRe: Delete Request.QueryString variable Pin
omlac19-Aug-08 0:42
omlac19-Aug-08 0:42 
AnswerRe: Delete Request.QueryString variable Pin
Tripathi Swati19-Aug-08 0:50
Tripathi Swati19-Aug-08 0:50 
AnswerRe: Delete Request.QueryString variable Pin
N a v a n e e t h19-Aug-08 3:05
N a v a n e e t h19-Aug-08 3:05 
QuestionLoad new record on scroll Pin
Jagwinder Walia18-Aug-08 22:57
Jagwinder Walia18-Aug-08 22:57 
AnswerRe: Load new record on scroll Pin
Sandeep Akhare18-Aug-08 23:22
Sandeep Akhare18-Aug-08 23:22 
AnswerRe: Load new record on scroll Pin
Sathesh Sakthivel19-Aug-08 0:08
Sathesh Sakthivel19-Aug-08 0:08 
QuestionFunction byval parameters does not work with datatable type?? Pin
Hanssel18-Aug-08 22:52
Hanssel18-Aug-08 22:52 
I'm having a problem with datatable after i passed it to a function using byval in the page load. Inside the function I remove some of the rows that are not needed for that function. But i noticed that the original datatable rows in the page load was also deleted.


Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim ds as New datatable
Dim data as New datatable

'This part loads the data from the database using oracledatareader with a name "reader"
'Total datatable rows = 50

data.load(reader)
ds.Tables.Add(CreateOverall(data))

'Call the next function and pass the same datatable.
'Total datatable rows became 40
'Is byVal not working???

ds.Tables.Add(CreateDetails(data))


End Sub

Public Shared Function CreateOverall(ByVal record As DataTable) As DataTable
'I remove 10 rows in this functions
for i as integer = 0 to record.rows.count-1
record.Rows.RemoveAt(i)
next

return record.

End Function

Public Shared Function CreateDetails(ByVal record As DataTable) As DataTable
'Received 40 rows only


End Function

Anyone knows how to retain the original values in page load?
Thanks.

Hans
AnswerRe: Function byval parameters does not work with datatable type?? Pin
NeverHeardOfMe19-Aug-08 0:30
NeverHeardOfMe19-Aug-08 0:30 
QuestionDisplying data into formview on link button click Pin
Rameez Raja18-Aug-08 22:37
Rameez Raja18-Aug-08 22:37 
AnswerRe: Displying data into formview on link button click Pin
AhsanS18-Aug-08 23:06
AhsanS18-Aug-08 23:06 
GeneralRe: Displying data into formview on link button click Pin
Rameez Raja19-Aug-08 1:32
Rameez Raja19-Aug-08 1:32 
QuestionRetrieving data from a site? Pin
ddspliting18-Aug-08 22:33
ddspliting18-Aug-08 22:33 
AnswerRe: Retrieving data from a site? Pin
AhsanS18-Aug-08 23:14
AhsanS18-Aug-08 23:14 
GeneralRe: Retrieving data from a site? Pin
ddspliting19-Aug-08 2:30
ddspliting19-Aug-08 2:30 
GeneralRe: Retrieving data from a site? Pin
N a v a n e e t h19-Aug-08 3:07
N a v a n e e t h19-Aug-08 3:07 
GeneralRe: Retrieving data from a site? Pin
ddspliting19-Aug-08 3:45
ddspliting19-Aug-08 3:45 
QuestionCrystal Report Error in ASP.net Pin
N.Surendra Prasad18-Aug-08 22:06
N.Surendra Prasad18-Aug-08 22:06 
Questiondisplay 1,00,000 record in asp.net Pin
Jagwinder Walia18-Aug-08 21:59
Jagwinder Walia18-Aug-08 21:59 
AnswerRe: display 1,00,000 record in asp.net Pin
N.Surendra Prasad18-Aug-08 22:11
N.Surendra Prasad18-Aug-08 22:11 
AnswerRe: display 1,00,000 record in asp.net Pin
J4amieC18-Aug-08 22:14
J4amieC18-Aug-08 22:14 
AnswerRe: display 1,00,000 record in asp.net Pin
Abhijit Jana18-Aug-08 22:18
professionalAbhijit Jana18-Aug-08 22:18 
AnswerRe: display 1,00,000 record in asp.net Pin
Jagwinder Walia18-Aug-08 22:54
Jagwinder Walia18-Aug-08 22:54 
GeneralRe: display 1,00,000 record in asp.net Pin
AhsanS18-Aug-08 23:05
AhsanS18-Aug-08 23:05 
AnswerRe: display 1,00,000 record in asp.net Pin
Christian Graus19-Aug-08 1:17
protectorChristian Graus19-Aug-08 1:17 

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.