Click here to Skip to main content
15,887,275 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: bgcolor Pin
Dalek Dave24-Mar-10 11:25
professionalDalek Dave24-Mar-10 11:25 
Questionhow to remove toolbar at runtime Pin
raghvendrapanda24-Mar-10 5:48
raghvendrapanda24-Mar-10 5:48 
AnswerRe: how to remove toolbar at runtime Pin
Not Active24-Mar-10 6:39
mentorNot Active24-Mar-10 6:39 
GeneralRe: how to remove toolbar at runtime Pin
raghvendrapanda24-Mar-10 7:40
raghvendrapanda24-Mar-10 7:40 
GeneralRe: how to remove toolbar at runtime Pin
Not Active24-Mar-10 7:42
mentorNot Active24-Mar-10 7:42 
AnswerRe: how to remove toolbar at runtime Pin
Amar Chaudhary24-Mar-10 9:37
Amar Chaudhary24-Mar-10 9:37 
AnswerRe: how to remove toolbar at runtime [modified] Pin
/randz25-Mar-10 21:54
/randz25-Mar-10 21:54 
Questionputting code behind onto client side ascx, aspx pages Pin
DeepToot24-Mar-10 5:16
DeepToot24-Mar-10 5:16 
I am using the asp.net mvc framework and like it so far, however there are times that I need to use a code behind page. mainly for my gridview events and such. MVC does not use or recommend using code behind pages. So my question is, how would I put the events for my gridview, or any code that is in my code behine, in my usercontrol and aspx pages?

Would it be as simple as this:

UserControl sample:
<br />
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ai_dcs_isets.Models.dcs_users>" ><br><br />
<%@ Register Src="PopUpBox.ascx" TagName="PopUpBox" TagPrefix="uc1" ><Br><br />
<uc1:PopUpBox ID="PopUpBox" runat="server" ShowCloseButton="true" /><br><br />
<br />
<script language="C#" runat="server"><br><br />
    void page_load(Object sender, EventArgs args)<br><br />
    {<br />
<br />
<br />
    }<br />
<br />
</script><br />


if so, what is going to keep these events in order if my user control is apart of a page that has it's own page_load or other events? Would my gridview events be a mere copy and paste from code behind to the script area?

Sorry if this is a basic question, web development has never really been my main development.

Thanks for the help.
AnswerRe: putting code behind onto client side ascx, aspx pages Pin
Not Active24-Mar-10 6:21
mentorNot Active24-Mar-10 6:21 
GeneralRe: putting code behind onto client side ascx, aspx pages Pin
DeepToot24-Mar-10 6:37
DeepToot24-Mar-10 6:37 
GeneralRe: putting code behind onto client side ascx, aspx pages Pin
Not Active24-Mar-10 6:53
mentorNot Active24-Mar-10 6:53 
GeneralRe: putting code behind onto client side ascx, aspx pages Pin
DeepToot24-Mar-10 7:53
DeepToot24-Mar-10 7:53 
GeneralRe: putting code behind onto client side ascx, aspx pages Pin
Not Active24-Mar-10 8:09
mentorNot Active24-Mar-10 8:09 
GeneralRe: putting code behind onto client side ascx, aspx pages Pin
DeepToot24-Mar-10 11:22
DeepToot24-Mar-10 11:22 
QuestionHow to open PDF from server? Pin
raghvendrapanda24-Mar-10 5:13
raghvendrapanda24-Mar-10 5:13 
AnswerRe: How to open PDF from server? Pin
Not Active24-Mar-10 6:25
mentorNot Active24-Mar-10 6:25 
GeneralRe: How to open PDF from server? Pin
raghvendrapanda24-Mar-10 7:42
raghvendrapanda24-Mar-10 7:42 
GeneralRe: How to open PDF from server? Pin
Not Active24-Mar-10 8:12
mentorNot Active24-Mar-10 8:12 
GeneralRe: How to open PDF from server? Pin
Member 450194024-Mar-10 11:49
Member 450194024-Mar-10 11:49 
QuestionIE8:: Text is missing from text box while print preview on IE8 environment.!!?? Pin
chetan_agarwal24-Mar-10 3:12
chetan_agarwal24-Mar-10 3:12 
Questiondynamic textbox postback Pin
test-0924-Mar-10 2:21
test-0924-Mar-10 2:21 
AnswerRe: dynamic textbox postback Pin
PSK_24-Mar-10 2:30
PSK_24-Mar-10 2:30 
GeneralRe: dynamic textbox postback Pin
test-0924-Mar-10 2:55
test-0924-Mar-10 2:55 
GeneralRe: dynamic textbox postback Pin
PSK_24-Mar-10 3:25
PSK_24-Mar-10 3:25 
AnswerRe: dynamic textbox postback Pin
Amar Chaudhary24-Mar-10 9:39
Amar Chaudhary24-Mar-10 9:39 

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.