Click here to Skip to main content
16,008,075 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how i can update web application on client hosting server Pin
wasimsharp3-Jun-08 20:18
wasimsharp3-Jun-08 20:18 
GeneralRe: how i can update web application on client hosting server Pin
Vasudevan Deepak Kumar3-Jun-08 20:21
Vasudevan Deepak Kumar3-Jun-08 20:21 
General[Message Deleted] Pin
wasimsharp3-Jun-08 20:27
wasimsharp3-Jun-08 20:27 
GeneralRe: how i can update web application on client hosting server Pin
Vasudevan Deepak Kumar3-Jun-08 20:32
Vasudevan Deepak Kumar3-Jun-08 20:32 
GeneralRe: how i can update web application on client hosting server Pin
eyeseetee3-Jun-08 21:42
eyeseetee3-Jun-08 21:42 
GeneralRe: how i can update web application on client hosting server Pin
wasimsharp4-Jun-08 0:52
wasimsharp4-Jun-08 0:52 
QuestionHow can I get the HTML of a ASP control before rendering? Pin
Venkatesh Mookkan3-Jun-08 18:31
Venkatesh Mookkan3-Jun-08 18:31 
AnswerRe: How can I get the HTML of a ASP control before rendering? Pin
RajeevKumarSharma3-Jun-08 18:47
RajeevKumarSharma3-Jun-08 18:47 
try this


namespace MyProject.ViewManeger
{
///
/// Summary description for ViewManager
///

public class ViewManager
{
public static string RenderView(string path)//path of the user control
{
return RenderView(path, null);
}

public static string RenderView(string path, object data)
{
Page pageHolder = new Page();
UserControl viewControl = (UserControl)pageHolder.LoadControl(path);

if (data != null)
{
Type viewControlType = viewControl.GetType();
FieldInfo field = viewControlType.GetField("Data");

if (field != null)
{
field.SetValue(viewControl, data);
}
else
{
throw new Exception("View file: " + path + " does not have a public Data property");
}
}

pageHolder.Controls.Add(viewControl);

StringWriter output = new StringWriter();
HttpContext.Current.Server.Execute(pageHolder, output, false);

return output.ToString();
}
}

Rajeev Kr. Sharma
VRI Software Pvt.Ltd.
New Delhi India
HumOnline.com
Stay Connected

GeneralRe: How can I get the HTML of a ASP control before rendering? Pin
Venkatesh Mookkan3-Jun-08 19:14
Venkatesh Mookkan3-Jun-08 19:14 
GeneralRe: How can I get the HTML of a ASP control before rendering? Pin
eyeseetee3-Jun-08 21:40
eyeseetee3-Jun-08 21:40 
QuestionPassing of data from one form to another Pin
Nicole_H3-Jun-08 11:39
Nicole_H3-Jun-08 11:39 
AnswerRe: Passing of data from one form to another Pin
Jacob Dixon3-Jun-08 16:26
Jacob Dixon3-Jun-08 16:26 
QuestionOk, this is driving me insane Pin
Mustafa Ismail Mustafa3-Jun-08 8:20
Mustafa Ismail Mustafa3-Jun-08 8:20 
AnswerRe: Ok, this is driving me insane Pin
Yusuf3-Jun-08 9:23
Yusuf3-Jun-08 9:23 
GeneralRe: Ok, this is driving me insane Pin
Mustafa Ismail Mustafa4-Jun-08 11:32
Mustafa Ismail Mustafa4-Jun-08 11:32 
Questionvigener cipher code Pin
LoLo73-Jun-08 7:40
LoLo73-Jun-08 7:40 
AnswerRe: vigener cipher code Pin
Yusuf3-Jun-08 9:40
Yusuf3-Jun-08 9:40 
QuestionMailMessage [modified] Pin
Assaf823-Jun-08 6:16
Assaf823-Jun-08 6:16 
AnswerRe: MailMessage Pin
SomeGuyThatIsMe3-Jun-08 7:55
SomeGuyThatIsMe3-Jun-08 7:55 
GeneralRe: MailMessage Pin
Assaf823-Jun-08 10:51
Assaf823-Jun-08 10:51 
GeneralRe: MailMessage Pin
SomeGuyThatIsMe3-Jun-08 11:08
SomeGuyThatIsMe3-Jun-08 11:08 
GeneralRe: MailMessage Pin
w2093-Jun-08 21:46
w2093-Jun-08 21:46 
AnswerRe: MailMessage Pin
Gayani Devapriya3-Jun-08 8:20
Gayani Devapriya3-Jun-08 8:20 
QuestionDetailsView Fields Pin
DanB19833-Jun-08 5:03
DanB19833-Jun-08 5:03 
AnswerRe: DetailsView Fields Pin
DanB19833-Jun-08 5:27
DanB19833-Jun-08 5:27 

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.