|
It is a heavy duty page but as you say is just a silly thing.
1. At any given time only a single selection is done
2. Just pass parameters to an sql data source.
3. The stored procedure(s) do the work.
4. Analyze/format/populate the data into a grid view.
5. Trigger via the selection item of the main grid 2 more detailed grid views. The process is repeated for the detailed gridviews.
Sometimes there is no page expiration. But then some times when larger datasets are called then for sure there will be a page timeout. It all way though happens on the gridview databind. The larger datasets are not that large (50 recs vs 2). The underlying data of the stored procedure contain lot of data. But how could this be relevant?
On stand alone page there is no issue. But I would hate to separate the gridviews since they provide an nice concise presentation.
|
|
|
|
|
VickyC# wrote: The underlying data of the stored procedure contain lot of data. But how could this be relevant?
It shouldn't.
VickyC# wrote: I would hate to separate the gridviews since they provide an nice concise presentation.
I wouldn't. Most sales people I've ever run into, like the big picture. Do you have any code profilers to use? You may want to look at execution paths of your code...
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
I appreciate your support. I just need to hit the sack. It has been a long day.
|
|
|
|
|
VickyC# wrote: I just need to hit the sack. It has been a long day.
That is a good debugging tool, the pillow Maybe tomorrow it'll stand out what is causing the timeouts
Have you tried to increase the timeout for both IIS and the database?
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
FYI. My method just worked. May be you should follow it.
|
|
|
|
|
Hey VickyC#,
Good morning and what was your method I should follow?
Paul
"You will see a delete button on each of your posts. Press it." - Colin Angus Mackay
|
|
|
|
|
I wasn't sure where to put this dilemma, but here it goes.
I have a web application wrapped around a state machine workflow that allows the user to pick search parameters from one content pane and then displays the results in the parallel pand via a gridview. I've wrapped both panes in <asp:updatepanels> and am using ajax extenders (Calendars and Watermark) in the search pane. I also have the search parameters saved into a Dictionary object.
Unfortunately this is slowing down this portion of the application to a crawl. I'm at a loss as to what is causeing the delays, which happen both on ititial page load and when search button is clicked. I'm using some ajax extenders in other portions of the application with no detriment. I would provide code samples if you think they'll help, just ask
Any suggestions or leads would be much appreciated.
Thanks,
An American football fan -
Go Seahawks!
Lil Turtle
|
|
|
|
|
Have you tried doing this (as a test) outside of any kind of Ajax framework? That might help you identify where the bottleneck is. How much data are you trying to load at page load/button click? Where are you getting this data from (for the search parameters & results)?
I think chances are that the problem lies in where you're getting your data from.
I think I'm going to call my next project "Chuck Norris". It's a sure way to guarantee it's unbreakable.
• • •
But fortunately we have the nanny-state politicians who can step in to protect us poor stupid consumers, most of whom would not know a JVM from a frozen chicken. Bruce Pierson
|
|
|
|
|
Dave Sexton wrote: Have you tried doing this (as a test) outside of any kind of Ajax framework?
I have, it's only about 40 - 45 K being transferred.
Dave Sexton wrote: the problem lies in where you're getting your data
I think you may be right.
Gratzi,
An American football fan -
Go Seahawks!
Lil Turtle
|
|
|
|
|
Ok, so where are you getting your data from?
I think I'm going to call my next project "Chuck Norris". It's a sure way to guarantee it's unbreakable.
• • •
But fortunately we have the nanny-state politicians who can step in to protect us poor stupid consumers, most of whom would not know a JVM from a frozen chicken. Bruce Pierson
|
|
|
|
|
SQL server Database, using Net Tiers and also MS Workflow.
An American football fan -
Go Seahawks!
Lil Turtle
|
|
|
|
|
I can't remember which property of the UpdatePanel that caused me to slow down a while back. I think it was ChildrenAsTriggers. Play around with the few properties it has as it turned out to significantly reduce the amount of time it displays. Also, try not to use the DataBoundEvent if possible. You can tweak most of column properties from the eval & '<%# ... %>' code. I found it is faster to use IIF statements with in the '<%# ... %>' than the code behind event.
Michael
I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious.
Vince Lombardi (1913-1970)
|
|
|
|
|
Hello Folks ,I am new to .net i just want to know how we diplay welcome username if the user login my data base is oracle 10g can u tell me how we display welcome username and logout link when user signin from login.aspx, i taken three hyperlinks one is login,logout and for signup and one label on the header page . Its is comman to all pages when i click login it has to go to login.aspx and for logout it has to go to logout.aspx . for sign up it redirects to register page . when the user register it goes to listing.aspx and from there i need to get welcome username and logout link untill he press signout now when user clicks logout the page refreshes and goes to login.aspx and logout and welcome username should be disable instead of that place i need login and signup.( I will tell u one example like user register with name as jack then i will get display image as welcome jack, signout ) when they press signout then this welcome jack and logout diable instead of that place comes as signin and signup.
I really need help man can u tell me how the usercontrol knows that this person is login .and displays welcome so and so name. we already created login page but before we never put signin and signup clients wants to add this and when they press signin it redirect to login page and when they register then i will get welcomeusername and signout .
Folks help me out .
|
|
|
|
|
You should have edited your existing post, instead of creating new ones.
Which bit of this is troubling you ? I'd imagine that once someone is logged in, you could store their name in the session, and create a control which renders it from there. Do you need help with that, with logging them in at all, or what ?
I assume you have a programming background in general, or are you completely new ? If the latter, you should work through a few books before you have clients. Either way, you should really know a technology before you have clients who are paying you to work in it.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello Christian, Thanks for ur reply
yeah i know we have to store there names in session , what if they are 20,0000 users and when ever signup we will show him welcome name, logout . how the user control knows can u give me one sample code . ok this is my code its working but its showing only welcome and signout , when the user not register then we will show him signin and signup. when user login then we show him welcome user , logout link. when user click logout then pages refreshes then it redirect to login.aspx and from there we will show him again i am using asp.net 1.1 with c# and our database is oracle 10g.
i am sending my code what i have written in my header page , header is comman to all pages so i put three hyper links and one label here is my code
its working but i am getting one problem its not changing i am getting every page as welcome and logout . can u help me out
if((Session["Username"])!=null)
{
HyperLink1.Visible = true;
HyperLink2.Visible = true;
HyperLink3.Visible=false;
Label1.Visible=false;
}
else
{
HyperLink1.Visible=false;
HyperLink2.Visible=false;
HyperLink3.Visible=true;
Label1.Visible=true;
}
if((Session["Displayname"])!=null)
{
Label1.Text="Welcome" + Session["DisplayName"].ToString()+"!";
}
else
{
Label1.Text="Welcome to rv's";
}
Session.Timeout=1;
Session.Abandon(); this is my code i put this one in my header page its comman to all pages . so write the code here. i am using asp.net 1.1 in asp.net 1.1 formsauthentication.signout is not there . can u help me out how is it possible
|
|
|
|
|
aditya.net wrote: yeah i know we have to store there names in session , what if they are 20,0000 users and when ever signup we will show him welcome name, logout . how the user control knows can u give me one sample code
Well, do you know how the session object works ? It doesn't sound like it. The Session is per user.
aditya.net wrote: HyperLink1.Visible = true;
HyperLink2.Visible = true;
HyperLink3.Visible=false;
Label1.Visible=false;
Why do so many people who post here seem scared to give their variables sensible names ?
I'd be inclined to create a struct that goes in the session, so that you either have all the info, or none of the info. Or, if it becomes too big, store an Id in the session and restore the rest from the DB.
Overall, I'm still going with 'buy a book and work through it' tho.
You didn't answer my question, is ASP.NET your first programming experience, and is someone really paying you to write this code ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello Christian,
Before i work as a vb developer and yes this is my first ASP.NET project , Yeah this one of my priority A so i just want to know how to do i really stuck here . Mostly i work mostly on vb.net with database sql server . i never used oracle this is my first asp.net project with oracle 10 g database can u tell me how to create and help me out with sample code . so that i can understand .Thanks once again
|
|
|
|
|
Again, buy an ASP.NET book and work through it. You don't have a problem here. The session exists per user, so every one of your 20,000 users will have their own session object, and it will contain their name.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Again, for you to be charging someone for your ASP.NET work when you don't understand how it works, is just plain wrong. But, good for my career, it seems outsourcing will continue to be a nightmare.
When someone logs out, clear the object in the session. Then, the session state tells you if they are logged in or not. That will change what controls you show, and also can be used in a base class to stop/redirect access to pages that require login.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi apurva thnks for u r mail its working but i am getting one problem its not changing i am getting every page as welcome and logout . can u help me out
if((Session["Username"])!=null)
{
HyperLink1.Visible = true;
HyperLink2.Visible = true;
HyperLink3.Visible=false;
Label1.Visible=false;
}
else
{
HyperLink1.Visible=false;
HyperLink2.Visible=false;
HyperLink3.Visible=true;
Label1.Visible=true;
}
if((Session["Displayname"])!=null)
{
Label1.Text="Welcome" + Session["DisplayName"].ToString()+"!";
}
else
{
Label1.Text="Welcome to rv's";
}
Session.Timeout=1;
Session.Abandon(); this is my code i put this one in my header page its comman to all pages . so write the code here. i am using asp.net 1.1 in asp.net 1.1 formsauthentication.signout is not there . can u help me out how is it possible
|
|
|
|
|
aditya.net wrote: am getting every page as welcome and logout
That is because you are using a user control for header and that control is being used in all the pages. If you don't want to display the same then you need to create different user controls for the purpose.
aditya.net wrote: Session.Abandon();
This has to be called when users clicks on logout button. Also you make the session values to null.
Apurva Kaushal
|
|
|
|
|
i am trying to recreate a physical form i have using crystal report which will display information for a specific record in my database.
can anyone send me to a good crystal report tutorial
kenny
|
|
|
|
|
Here are some
Google results[^], hope this helps you out...
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Hello,
I need to form string point_number + point_name and display it in my DropDownList as text.
I have a string of blanks form rezul string like this:
rez = point_number + blanks.substring(0,length(blanks) - length(point_number)) + point_name
Unfortunatly I saw that in DropDownList the string is displayed with only 1 blank between number and name : ((
Then I replace blanks to _ and everything was allright.
What I need to change in DropDownList to force it display blanks?
Thank you
|
|
|
|
|
If I am not mistaken this is because HTML removes any duplicate spaces. Try replacing spaces with & nbsp; to force them in there.
-- modified at 17:05 Thursday 12th July, 2007
Darroll
|
|
|
|