Click here to Skip to main content
15,889,808 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Print web page using ASP.NET Pin
NTheOne22-Jul-10 22:48
NTheOne22-Jul-10 22:48 
GeneralRe: Print web page using ASP.NET Pin
Peace ON23-Jul-10 4:29
Peace ON23-Jul-10 4:29 
QuestionViewstate not updated after TransmitFile Pin
KittyKit22-Jul-10 10:53
KittyKit22-Jul-10 10:53 
AnswerRe: Viewstate not updated after TransmitFile Pin
Yusuf22-Jul-10 13:52
Yusuf22-Jul-10 13:52 
AnswerRe: Viewstate not updated after TransmitFile Pin
Prosanta Kundu online22-Jul-10 19:54
Prosanta Kundu online22-Jul-10 19:54 
AnswerRe: Viewstate not updated after TransmitFile Pin
T M Gray23-Jul-10 8:44
T M Gray23-Jul-10 8:44 
AnswerRe: Viewstate not updated after TransmitFile Pin
KittyKit24-Jul-10 2:32
KittyKit24-Jul-10 2:32 
QuestionHTML Print of Selected Tab using RenderControl Method Pin
NTheOne21-Jul-10 21:17
NTheOne21-Jul-10 21:17 
Hi To All,

Can anybody help me how to print the selected tab in the Ajax tab container in HTML format?

On Button click I have to print the selected tab in HTML format.
So I have written one method for that.
public void RenderControl(Control ctrl)
{   
StringWriter tw = new StringWriter();   
HtmlTextWriter hw = new HtmlTextWriter(tw);   
ctrl.RenderControl(hw);   
String sb = tw.ToString();   
Response.Write(sb);   
Response.End(); 
}

protected void Button2_Click(object sender, EventArgs e)
{   
TabPanel tbPnl = TabContainer1.ActiveTab;   
RenderControl(tbPnl);
}

But I got the bellow mentioned exception when I click on the button in the application.

Script control 'TabPanel2' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl



Any Help regarding this will be greatly appreciated..

Thanks in Advance...


AnswerRe: HTML Print of Selected Tab Pin
Peace ON21-Jul-10 21:30
Peace ON21-Jul-10 21:30 
QuestionGlobal Distribution System in ASP.NET website Pin
Ahamed Azeem21-Jul-10 20:55
Ahamed Azeem21-Jul-10 20:55 
AnswerRe: Global Distribution System in ASP.NET website Pin
Peace ON21-Jul-10 21:15
Peace ON21-Jul-10 21:15 
QuestionGridview Column colors Pin
codingrocks21-Jul-10 18:40
codingrocks21-Jul-10 18:40 
AnswerRe: Gridview Column colors Pin
Prosanta Kundu online21-Jul-10 19:01
Prosanta Kundu online21-Jul-10 19:01 
AnswerRe: Gridview Column colors Pin
Peace ON21-Jul-10 19:44
Peace ON21-Jul-10 19:44 
QuestionGetting sessions to ASMX webservice Pin
Matt Cavanagh21-Jul-10 8:40
Matt Cavanagh21-Jul-10 8:40 
AnswerRe: Getting sessions to ASMX webservice Pin
Yusuf21-Jul-10 9:01
Yusuf21-Jul-10 9:01 
QuestionRe: Getting sessions to ASMX webservice [modified] Pin
Matt Cavanagh21-Jul-10 9:30
Matt Cavanagh21-Jul-10 9:30 
Questionproblem writing in doc file Pin
Dhyanga21-Jul-10 5:39
Dhyanga21-Jul-10 5:39 
AnswerRe: problem writing in doc file Pin
Yusuf21-Jul-10 6:06
Yusuf21-Jul-10 6:06 
GeneralRe: problem writing in doc file [modified] Pin
Dhyanga21-Jul-10 6:14
Dhyanga21-Jul-10 6:14 
QuestionJava script reset problem Pin
immu521-Jul-10 5:37
immu521-Jul-10 5:37 
AnswerRe: Java script reset problem Pin
Yusuf21-Jul-10 6:18
Yusuf21-Jul-10 6:18 
AnswerRe: Java script reset problem Pin
Not Active21-Jul-10 8:53
mentorNot Active21-Jul-10 8:53 
GeneralRe: Java script reset problem Pin
immu521-Jul-10 8:59
immu521-Jul-10 8:59 
GeneralRe: Java script reset problem Pin
Not Active21-Jul-10 9:26
mentorNot Active21-Jul-10 9:26 

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.