Click here to Skip to main content
15,896,063 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Gridview-checkbox Pin
amitamit09911-Jul-10 19:24
amitamit09911-Jul-10 19:24 
AnswerRe: Gridview-checkbox Pin
Mangesh412-Jul-10 1:43
Mangesh412-Jul-10 1:43 
QuestionMessage Removed Pin
9-Jul-10 21:00
Mansi Arora9-Jul-10 21:00 
AnswerRe: How to Read ID and Value of dynamic buttons on submit button click Pin
Sandeep Mewara10-Jul-10 3:28
mveSandeep Mewara10-Jul-10 3:28 
Questioncrystal report images not display on live Pin
vid nandha9-Jul-10 20:52
vid nandha9-Jul-10 20:52 
AnswerRe: crystal report images not display on live Pin
Sandeep Mewara10-Jul-10 3:26
mveSandeep Mewara10-Jul-10 3:26 
Questionusing Recurrence Rule with google calendar Pin
sunit_829-Jul-10 20:12
sunit_829-Jul-10 20:12 
QuestionEmbedded CSS not working during designtime [modified] Pin
Fayu9-Jul-10 7:48
Fayu9-Jul-10 7:48 
I have an embedded css resource which contains styling info for a table. When I run my app, the table is shown with the styles specified. During design time, these styles are not applied to my table. More info below. I think my problem may be that the OnPreRender may not be run during design time. What are my options?

Thanks in advance.

assembly.cs:
[assembly: WebResource("MyNamespace.StyleSheet.css", "text/css", PerformSubstitution=true)]

MyControl.cs:
void RegisterStyleSheet()
{
    string includeTemplate =
        "<link rel='stylesheet' text='text/css' href='{0}' />";
    string includeLocation =
          Page.ClientScript.GetWebResourceUrl(this.GetType(), "MyNamespace.StyleSheet.css");
    LiteralControl include =
          new LiteralControl(String.Format(includeTemplate, includeLocation));
    ((System.Web.UI.HtmlControls.HtmlHead)Page.Header).Controls.Add(include);
}

protected override void OnPreRender(EventArgs e)
{
    RegisterStyleSheet();


    base.OnPreRender(e);
}


modified on Friday, July 9, 2010 1:54 PM

AnswerRe: Embedded CSS not working during designtime Pin
Fayu9-Jul-10 8:06
Fayu9-Jul-10 8:06 
Questioncheckbox viewstate disable and checked changed Pin
mark_me9-Jul-10 6:46
mark_me9-Jul-10 6:46 
AnswerRe: checkbox viewstate disable and checked changed Pin
T M Gray9-Jul-10 10:21
T M Gray9-Jul-10 10:21 
Questionform submit Pin
netJP12L9-Jul-10 6:25
netJP12L9-Jul-10 6:25 
AnswerRe: form submit Pin
shreekar9-Jul-10 6:41
shreekar9-Jul-10 6:41 
GeneralRe: form submit Pin
netJP12L9-Jul-10 7:01
netJP12L9-Jul-10 7:01 
Questionproblem in implementing validations in dynamically generated textboxes in Desktop vb.net application Pin
Amit Spadez9-Jul-10 2:03
professionalAmit Spadez9-Jul-10 2:03 
AnswerRe: problem in implementing validations in dynamically generated textboxes in Desktop vb.net application Pin
Not Active9-Jul-10 2:48
mentorNot Active9-Jul-10 2:48 
QuestionNested Master Page Problem Pin
Ravindra Bisen9-Jul-10 1:13
Ravindra Bisen9-Jul-10 1:13 
AnswerRe: Nested Master Page Problem Pin
Not Active9-Jul-10 2:45
mentorNot Active9-Jul-10 2:45 
GeneralRe: Nested Master Page Problem Pin
Ravindra Bisen9-Jul-10 3:19
Ravindra Bisen9-Jul-10 3:19 
GeneralRe: Nested Master Page Problem Pin
Not Active9-Jul-10 4:08
mentorNot Active9-Jul-10 4:08 
GeneralRe: Nested Master Page Problem Pin
shreekar9-Jul-10 6:48
shreekar9-Jul-10 6:48 
GeneralRe: Nested Master Page Problem Pin
Not Active9-Jul-10 8:05
mentorNot Active9-Jul-10 8:05 
QuestionGet Client side printer list Pin
Hum Dum9-Jul-10 1:08
Hum Dum9-Jul-10 1:08 
AnswerRe: Get Client side printer list Pin
shreekar9-Jul-10 6:59
shreekar9-Jul-10 6:59 
Questiongridview rowupdating Pin
sudheesh kumar s9-Jul-10 0:49
sudheesh kumar s9-Jul-10 0:49 

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.