Click here to Skip to main content
15,914,795 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Checkboxlist Pin
n_gchaitra17-Aug-07 17:28
n_gchaitra17-Aug-07 17:28 
QuestionCan I remove Master Page in the program? Pin
J Liang15-Aug-07 16:57
J Liang15-Aug-07 16:57 
AnswerRe: Can I remove Master Page in the program? Pin
Steve Echols15-Aug-07 18:16
Steve Echols15-Aug-07 18:16 
AnswerRe: Can I remove Master Page in the program? Pin
nandhububbly15-Aug-07 19:23
nandhububbly15-Aug-07 19:23 
GeneralRe: Can I remove Master Page in the program? Pin
Michael Sync15-Aug-07 20:04
Michael Sync15-Aug-07 20:04 
AnswerRe: Can I remove Master Page in the program? [modified] Pin
Michael Sync15-Aug-07 19:57
Michael Sync15-Aug-07 19:57 
AnswerRe: Can I remove Master Page in the program? Pin
ganeshvittal15-Aug-07 20:57
ganeshvittal15-Aug-07 20:57 
QuestionCan't create ASP controls from shared function Pin
chris_wanaka15-Aug-07 16:51
chris_wanaka15-Aug-07 16:51 
Hi,

I'm hoping I've just overlooked something obvious here and someone will be able to help, one of those things where it's pretty simple and *should* work but doesn't...

I originally had this code on a page, which worked fine:

<div id="remote-support">
<h2>Remote Support</h2>
Pin code:
<asp:TextBox Width=80px ID="TextBox1" runat="server"></asp:TextBox>
<br /><br />
<asp:Button ID="Button1" runat="server" Text="Button" />
</div>

I replaced it with the following code on the page:

<div id="remote-support">
<% Response.Output.Write(Common.RemoteSupport(ThisPage))%>
</div>

And this is in some shared code in App_Code:

Public Shared Function RemoteSupport(ByVal ReferringPage As String) As String
RemoteSupport = "<h2>Remote Support</h2>" _
& "Pin code: <asp:TextBox Width=80px ID=""TextBox1"" runat=""server""></asp:TextBox><br />" _
& "<br />" _
& "<asp:Button ID=""Button1"" runat=""server"" Text=""Button"" />"
End Function

Now, what's happening is there's no controls appearing on the page, despite the page source containing the control tags as normal.

Suspect this has something to do with me getting something fundamental wrong, but can't quite get my head round what's going on. Surely it's possible to do this one way or another, maybe just not this way...

Any help would be greatly appreciated Smile | :)

Thanks
Chris
AnswerRe: Can't create ASP controls from shared function Pin
Michael Sync15-Aug-07 17:30
Michael Sync15-Aug-07 17:30 
GeneralRe: Can't create ASP controls from shared function Pin
chris_wanaka15-Aug-07 18:10
chris_wanaka15-Aug-07 18:10 
QuestionSetup project with custom actions Pin
steve_rm15-Aug-07 7:47
steve_rm15-Aug-07 7:47 
Questionmisc asp.net questions [modified] Pin
algoaddict15-Aug-07 7:27
algoaddict15-Aug-07 7:27 
AnswerRe: misc asp.net questions Pin
Jpuckett15-Aug-07 7:44
Jpuckett15-Aug-07 7:44 
GeneralRe: misc asp.net questions Pin
algoaddict15-Aug-07 8:16
algoaddict15-Aug-07 8:16 
GeneralRe: misc asp.net questions Pin
Jpuckett15-Aug-07 8:54
Jpuckett15-Aug-07 8:54 
Questionproblem with code downloaded from codeproject [modified] Pin
algoaddict15-Aug-07 9:34
algoaddict15-Aug-07 9:34 
QuestionAccessing Web User Controls Pin
Brendan Vogt15-Aug-07 6:21
Brendan Vogt15-Aug-07 6:21 
AnswerRe: Accessing Web User Controls Pin
ToddHileHoffer15-Aug-07 7:13
ToddHileHoffer15-Aug-07 7:13 
QuestionProblem with scalar variable [modified] Pin
aqzman_15-Aug-07 6:09
aqzman_15-Aug-07 6:09 
AnswerRe: Problem with scalar variable Pin
Guffa15-Aug-07 7:06
Guffa15-Aug-07 7:06 
GeneralRe: Problem with scalar variable Pin
aqzman_15-Aug-07 7:44
aqzman_15-Aug-07 7:44 
AnswerRe: Problem with scalar variable Pin
Guffa15-Aug-07 13:52
Guffa15-Aug-07 13:52 
Questionproblem in work with javascript Pin
mr.mohsen15-Aug-07 5:57
mr.mohsen15-Aug-07 5:57 
AnswerRe: problem in work with javascript Pin
leckey15-Aug-07 6:14
leckey15-Aug-07 6:14 
GeneralRe: problem in work with javascript Pin
mr.mohsen15-Aug-07 7:15
mr.mohsen15-Aug-07 7:15 

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.