Click here to Skip to main content
16,004,479 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to install IE Web Control in VS.NET 2003 Pin
minhpc_bk19-Dec-06 19:06
minhpc_bk19-Dec-06 19:06 
QuestionRe: How to install IE Web Control in VS.NET 2003 Pin
prakash_21019-Dec-06 21:49
prakash_21019-Dec-06 21:49 
AnswerRe: How to install IE Web Control in VS.NET 2003 Pin
minhpc_bk20-Dec-06 14:16
minhpc_bk20-Dec-06 14:16 
QuestionRe: How to install IE Web Control in VS.NET 2003 Pin
prakash_21020-Dec-06 17:50
prakash_21020-Dec-06 17:50 
Questionpagination Pin
pavanik19-Dec-06 16:51
pavanik19-Dec-06 16:51 
AnswerRe: pagination Pin
_AK_19-Dec-06 17:07
_AK_19-Dec-06 17:07 
QuestionUser Controls, Master Pages, CSS and putting it all together Pin
RX Maverick19-Dec-06 16:40
RX Maverick19-Dec-06 16:40 
AnswerRe: User Controls, Master Pages, CSS and putting it all together Pin
Anbuselvan19-Dec-06 18:05
Anbuselvan19-Dec-06 18:05 
Hi,

There are two ways available to resolve your issue.

1. Simple and easy way.
Put all your CSS styles in a style sheet and save into your project.
<your script> string should be:
<link href="your css path" type="text/css" rel="stylesheet" />
Add the following code to your control's page load event:
Page.ClientScript.RegisterClientScriptBlock(GetType(), <unique string identifier>, <your script>, false);

2. Some more work but efficient.
Create a function in for your master page like,
public void AddCssLink(string cssfile)
{
HtmlGenericControl styleCtrl = new HtmlGenericControl("link");
styleCtrl.Attributes.Add("href", "Styles/" + cssfile);
styleCtrl.Attributes.Add("rel", "stylesheet");
styleCtrl.Attributes.Add("type", "text/css");
Page.Header.Controls.add(styleCtrl);
}

from your control's page load event,
Master.AddCssLink("<your css file>");

Happy programming.

With Best Regards,


P.Anbuselvan
IT Consultant
Emirates Group IT, UAE
AnswerRe: User Controls, Master Pages, CSS and putting it all together Pin
minhpc_bk19-Dec-06 19:25
minhpc_bk19-Dec-06 19:25 
QuestionUsing 'Money' Datatype of SQL in ASP.NET Pin
Vsree19-Dec-06 15:28
Vsree19-Dec-06 15:28 
AnswerRe: Using 'Money' Datatype of SQL in ASP.NET Pin
Amit Kumar G19-Dec-06 15:51
Amit Kumar G19-Dec-06 15:51 
GeneralRe: Using 'Money' Datatype of SQL in ASP.NET Pin
Vsree19-Dec-06 15:58
Vsree19-Dec-06 15:58 
AnswerRe: Using 'Money' Datatype of SQL in ASP.NET Pin
Dayekh19-Dec-06 23:16
Dayekh19-Dec-06 23:16 
GeneralRe: Using 'Money' Datatype of SQL in ASP.NET Pin
Vsree20-Dec-06 0:27
Vsree20-Dec-06 0:27 
GeneralRe: Using 'Money' Datatype of SQL in ASP.NET Pin
Dayekh20-Dec-06 1:23
Dayekh20-Dec-06 1:23 
GeneralRe: Using 'Money' Datatype of SQL in ASP.NET Pin
Vsree20-Dec-06 18:08
Vsree20-Dec-06 18:08 
QuestionUSER CONTROL IN ASP.NET Pin
Amit Kumar G19-Dec-06 15:01
Amit Kumar G19-Dec-06 15:01 
AnswerRe: USER CONTROL IN ASP.NET Pin
minhpc_bk19-Dec-06 19:15
minhpc_bk19-Dec-06 19:15 
GeneralRe: USER CONTROL IN ASP.NET Pin
Amit Kumar G20-Dec-06 3:38
Amit Kumar G20-Dec-06 3:38 
GeneralRe: USER CONTROL IN ASP.NET Pin
minhpc_bk20-Dec-06 14:35
minhpc_bk20-Dec-06 14:35 
QuestionCheck User Pin
shapper19-Dec-06 10:37
shapper19-Dec-06 10:37 
AnswerRe: Check User Pin
Pete O'Hanlon19-Dec-06 11:14
mvePete O'Hanlon19-Dec-06 11:14 
QuestionClient side validation of server controls Pin
DanB198319-Dec-06 10:14
DanB198319-Dec-06 10:14 
AnswerRe: Client side validation of server controls Pin
Pete O'Hanlon19-Dec-06 11:15
mvePete O'Hanlon19-Dec-06 11:15 
AnswerRe: Client side validation of server controls Pin
Amit Kumar G19-Dec-06 14:45
Amit Kumar G19-Dec-06 14:45 

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.