Click here to Skip to main content
15,907,905 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: One-to-many data insertion in SQL Server Pin
theblacklotus25-Aug-06 7:40
theblacklotus25-Aug-06 7:40 
GeneralRe: One-to-many data insertion in SQL Server Pin
eggsovereasy25-Aug-06 8:42
eggsovereasy25-Aug-06 8:42 
GeneralRe: One-to-many data insertion in SQL Server Pin
theblacklotus25-Aug-06 10:50
theblacklotus25-Aug-06 10:50 
AnswerRe: One-to-many data insertion in SQL Server Pin
ToddHileHoffer25-Aug-06 8:13
ToddHileHoffer25-Aug-06 8:13 
GeneralRe: One-to-many data insertion in SQL Server Pin
theblacklotus25-Aug-06 8:44
theblacklotus25-Aug-06 8:44 
Questionhow to add new webpartzone and webparts at runtime Pin
ketan.raval25-Aug-06 5:17
ketan.raval25-Aug-06 5:17 
QuestionMultiView vs panels Pin
Drathmar25-Aug-06 4:58
Drathmar25-Aug-06 4:58 
AnswerRe: MultiView vs panels Pin
minhpc_bk25-Aug-06 13:45
minhpc_bk25-Aug-06 13:45 
Drathmar wrote:
If I do a multi view, does that mean that every time the page is reloaded, that it will requery the DBF for each of the views? since they are all in existance? (thus, 3 database queries per page load?)


Only the active view makes a request to DB, and it's not for all time, basically the control in the active view is filled with data from DB for the first time it displays, and for the next postbacks it is normally recreated from the ViewState instead of DB..


Drathmar wrote:
What about if a panel that contains a gridview that is not visible. I think that the object is not even sent to the client, and I'd assume that it would not even be created, and thus no object query made. Is that a safe assumption?

The object does get created regardless of its visibility, but normally the control with the Visible=false does not bind data, it means it does not make a request to DB. However, if the Visible is set too late in the control life cycle, it still executes the Db query, but does not render.



Drathmar wrote:
Lastly, does anyone know a good way to track/count database queries made every time a page is loaded? Maybe a code snip or a log file that could be checked?


The simple way is to use the SQL Profiler to profile the current DB to see any queries sent to the database when the page is loaded. In addition, you can use your code or any library out there like log4net to log any calls that are made to your data access code.
QuestionBest Way to Serve Documents Pin
Jonathan Wood25-Aug-06 4:30
Jonathan Wood25-Aug-06 4:30 
QuestionSession Timeout - ASP.NET 2.0 Pin
seee sharp25-Aug-06 3:54
seee sharp25-Aug-06 3:54 
AnswerRe: Session Timeout - ASP.NET 2.0 Pin
minhpc_bk25-Aug-06 13:36
minhpc_bk25-Aug-06 13:36 
Questiondropdown binding Pin
bmadhura25-Aug-06 3:48
bmadhura25-Aug-06 3:48 
AnswerRe: dropdown binding Pin
Not Active25-Aug-06 4:17
mentorNot Active25-Aug-06 4:17 
AnswerRe: dropdown binding Pin
Coding C#25-Aug-06 4:44
Coding C#25-Aug-06 4:44 
QuestionProblem creating Repeater Template dynamically asp.net 2.0 [modified] Pin
Jay_se25-Aug-06 3:16
Jay_se25-Aug-06 3:16 
AnswerRe: Problem creating Repeater Template dynamically asp.net 2.0 Pin
playout25-Aug-06 10:30
playout25-Aug-06 10:30 
QuestionRe: Problem creating Repeater Template dynamically asp.net 2.0 Pin
Jay_se25-Aug-06 19:53
Jay_se25-Aug-06 19:53 
Questionpassing com parameters Pin
V.25-Aug-06 2:14
professionalV.25-Aug-06 2:14 
AnswerRe: passing com parameters Pin
minhpc_bk25-Aug-06 13:33
minhpc_bk25-Aug-06 13:33 
GeneralRe: passing com parameters Pin
V.28-Aug-06 20:28
professionalV.28-Aug-06 20:28 
Questionwebmethod call with parameter xml Pin
A M SOMAN25-Aug-06 1:29
A M SOMAN25-Aug-06 1:29 
AnswerRe: webmethod call with parameter xml Pin
Sathesh Sakthivel25-Aug-06 1:37
Sathesh Sakthivel25-Aug-06 1:37 
GeneralRe: webmethod call with parameter xml Pin
A M SOMAN27-Aug-06 20:41
A M SOMAN27-Aug-06 20:41 
AnswerRe: webmethod call with parameter xml Pin
minhpc_bk25-Aug-06 13:31
minhpc_bk25-Aug-06 13:31 
GeneralRe: webmethod call with parameter xml [modified] Pin
A M SOMAN27-Aug-06 20:43
A M SOMAN27-Aug-06 20:43 

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.