|
User Control Won't be going to help anymore.
And Yes First U.C will be loaded and then Page.
Put a Break point on U.C's Page Load. U will get it.
Believe Yourself™ :->™
|
|
|
|
|
OK, either way, I'd be removing the database stuff, it just makes sense to work out if the DB is the source of hte problem or not, even if it's just a starting point to fixing it with the DB. I presume you've checked that the CSS is in the final HTML.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanks for the reply.
I am certain the DB is fine.
I am stuck with the following:
My index.aspx is basically filled with user controls. Some of the CSS settings also applies to the user controls. Therefore I have external Style sheet links within the user control files too.
My question is when the index.aspx is loaded, does it first load the user control files that are linked with the index.aspx, then it loads the Page_Load of the index.aspx, where the database codes are stored.
This is the only reasonable explanation I can come up with, since when the User Controls are loaded the DB connection codes aren't executed yet.
Any ideas? Double thanks! This is driving me nuts....
|
|
|
|
|
Infernojericho wrote: My question is when the index.aspx is loaded, does it first load the user control files that are linked with the index.aspx, then it loads the Page_Load of the index.aspx, where the database codes are stored.
In Page Life Cycle Page Initialization is fired from child control to parent control means User control will get initilazed first then Page
but Page load will always fire from Parent control to child means
Page Load will occur first then user control load will occur
do one thing just try to debug your application and check are you able to set style sheet in page load ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Thanks for the reply.
This is the entire content of the CSS style sheet. The code worked when it was an internal style sheet (inside the . I simply copied and pasted it to a new file, styles.css. Or am I missing something here?
<br />
<style type="text/css"><br />
<!--<br />
<br />
#navlist<br />
{<br />
padding: 3px 0;<br />
margin-left: 0;<br />
border-bottom: 1px solid <%=Session["common_borderlinecolor"]%>; <br />
font: <%=Session["tab_fontstyle"] + " " + Session["tab_fontsize"] + "px " + Session["common_fontname"]%>, sans-serif; <br />
}<br />
<br />
#navlist li<br />
{<br />
list-style: none;<br />
margin: 0;<br />
display: inline;<br />
}<br />
<br />
#navlist li a<br />
{<br />
padding: 3px 0.5em;<br />
margin-left: 3px;<br />
border: 1px solid <%=Session["tab_borderlinecolor"]%>; <br />
border-bottom: none;<br />
background: <%=Session["tab_mouseawaybgcolor"]%>; <br />
text-decoration: none;<br />
}<br />
<br />
#navlist li a:link<br />
{ <br />
color: <%=Session["tab_unvisitedfontcolor"]%>;<br />
}<br />
<br />
<br />
#navlist li a:visited<br />
{<br />
color: <%=Session["tab_visitedfontcolor"]%>;<br />
}<br />
<br />
#navlist li a:hover<br />
{<br />
color: <%=Session["tab_mouseoverfontcolor"]%>; <br />
background: <%=Session["tab_mouseoverbgcolor"]%>; <br />
border-color: <%=Session["tab_mouseoverbordercolor"]%>; <br />
}<br />
<br />
#navlist li a#current<br />
{<br />
background: <%=Session["tab_currentbgcolor"]%>;<br />
border-bottom: 1px solid white;<br />
}<br />
<br />
--> <br />
</style><br />
|
|
|
|
|
My Friend you are adding Style sheet dynamically.
i think you should do that before page gets load i think Page Pre init is good event to do this.
Just try to put your code there it shouild work i think there ia no problem in your CSS
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Thanks for the reply.
Here's the problem. The database connection codes are at the page load section. What the DB codes does is it connects to the db, retreives the CSS values, then stores the CSS values in a session variable.
However if the CSS style sheet goes before the db connection then the CSS style sheet won't receive any values???!!!
Thanks
|
|
|
|
|
U can use css in Your VS2003,
It will save all this session problems that curruntly u have so it will be better to Include Css in Project itself.
And yes what u say
"external style sheets, since updating them would make my life easier"
While running the project u don't need to restart it again if u make changes in css.
So it is not the case while codding in Code behind file.
Believe Yourself™ :->™
|
|
|
|
|
Hi,
What is the difference between the Security Application Block and the ASP.NET Membership Provider? I normally use the ASP.NET Membership Provider to handle my logins, but where and how does the Security Application Block fit in?
I hope some can advise?
Thanks
Brendan
|
|
|
|
|
I have an HTML table rendered by a Repeater control on a UserList page. It displays a list of Users, and to the right of each user, a delete and an edit image button. I have JavaScript that executes on the page load, that binds event handlers to the onblur event of each cell in each table row. The event handler posts an Ajax request to the server, so any updates the user makes are almost instantly persisted to the DB.
Only selected, frequently used, User fields are displayed in the table for the 'in-place' editing described above. To edit other fields, the user clicks the Edit button at the right of a User row, and another, UserDetails page opens in a pop-up, which the user closes by clicking Cancel or Save after any editing of the User details.
I now need to modify the UserList page so that when the user clicks the Edit icon, a User Details edit area becomes visible still on the UserList page, i.e. an invisible/collapsed area for user details expands/becomes visible when Edit is clicked, then collapses/becomes invisible again when Save or Cancel is clicked.
How could I best achieve this?
|
|
|
|
|
I think u need a table Which is has a Button or kinda Icon.. While Clicking on that Icon Ur that Html Table should Be Close and Again Clicking on that Icon It should again Expand?
Is it something that u want or anything else?
Believe Yourself™ :->™
|
|
|
|
|
Yes, that is what I described as needed, but I'm asking how best to do it.
|
|
|
|
|
Hi
This can be achieved with the help of some CSS and ofcourse A Javascript.
U can Take Two Tables.
For Instance One for Storing An Icon[Image] and it will hold the Title for ur table, On which you are going to click[This table has hight approximatly 22px and we can use a div tag for firing a javascrip here and an Image which] and Second table which is going to lied Exactly beneath the Upper table,
And this table is made for Expand/Collapsible and all the controls and other things are going to put in this table.
i think this will be better...
any doubt.....
Believe Yourself™ :->™
|
|
|
|
|
Hi to all
I have check date in textbox using regular expression validator and my
format is (MM/DD/YYYY) but if user select date from calender control
and if the select date is 1/1/2008 then it display error message because
i specified the format is (MM/DD/YYYY)
Thanks.
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
modified on Thursday, February 07, 2008 4:44:36 AM
|
|
|
|
|
|
Thanks Guffa
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
Did that link worked?
Believe Yourself™ :->™
|
|
|
|
|
I am working on that. But i have one query. If i select date from
calender control then it show selected date as 1/1/2008 but
i want to show it as 01/01/2008. How can i do this.
If this worked problem get solved. i have use regular expression
to check again date format.(MM/DD/YYYY)
Thanks.
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
Is it MUST condition? -> 01/01/2008.?
The thing is same if u enter 1/1/2008.. This is also feasible? What u say?
I m thinking for ur 01/01/2008 problem?
calender is suppose to show only that,
For that Problem i have to go across the huge jscript code. Let me try for that,
Don't forget to give reply.
Believe Yourself™ :->™
|
|
|
|
|
Thanks Gandalf - The White,
For your help.While selecting date from calender control i have
specify the format as (MM/DD/YYYY).
I have done it.
Rahul.
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
It's Good U have done it ....
Now check for the validations. Are that Correct?
If any problem i will guide you.
Have a good day.
Believe Yourself™ :->™
|
|
|
|
|
Hi
Yes i have checked everything. Its working fine.
Thanks for your kind reply.
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
hello....
I m developing one web site in which i want donot want to use updatepanel is is there any other option like javascript or else.....
please help me.
|
|
|
|
|
Your question is incomplete ..
Why you don't want to use updatepanel ?
Do you need to update the page from server side ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
I think ur question is not yet completed. That drives no question
I think u don't want ur page to postback?
Is it so?
Believe Yourself™ :->™
|
|
|
|