Click here to Skip to main content
16,021,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai
Here, i open a page in new window. its working fine but page content is editable mode, i want to open page just for showing data not editable. so, for that how can i put it in readonly or disable mode. This is my code,

Please help me



string str = HttpRuntime.AppDomainAppVirtualPath;
string path = Page.Request.Url.ToString();
string url = Page.Request.Url.GetLeftPart(UriPartial.Authority) + str + "/ApplicationMgmt/NewRegistration.aspx";
StringBuilder sb = new StringBuilder();
sb.Append("window.open('");
sb.Append(url);
sb.Append("');");
ScriptManager.RegisterClientScriptBlock(this, typeof(Page), "Registration", sb.ToString(),true);
Posted

Try this Link
 
Share this answer
 
Hi In ur registration page u disable all control in design time,then it open using window.open u can see the page but cant type anything in the text box .Or try like this if u show new registration page without editable just disable all controls run time and open page,if need to register that time enable all control in run time itself.
Otherwise if u want show only,just show all data in labels.

I think u use NewRegistration page for register details and same page show as information showing page.If u show information in separat page or show in data in labels,dont use textbox
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900