Click here to Skip to main content
15,893,381 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionasp.net application configuration - setting up roles and membership Pin
Guy Harwood12-Nov-06 11:24
Guy Harwood12-Nov-06 11:24 
AnswerRe: asp.net application configuration - setting up roles and membership Pin
Guy Harwood14-Nov-06 1:37
Guy Harwood14-Nov-06 1:37 
QuestionC# and ASP.NET Pin
mough12-Nov-06 4:39
mough12-Nov-06 4:39 
Questioncheck Box List and SelectedValue prob.? [modified] Pin
Naif_Prof12-Nov-06 3:59
Naif_Prof12-Nov-06 3:59 
QuestionEvent problem Pin
shapper12-Nov-06 3:56
shapper12-Nov-06 3:56 
AnswerRe: Event problem Pin
CWIZO12-Nov-06 11:17
CWIZO12-Nov-06 11:17 
GeneralRe: Event problem Pin
shapper12-Nov-06 12:17
shapper12-Nov-06 12:17 
Question<form> on masterpage and user controls Pin
moazzamahmed11-Nov-06 20:35
moazzamahmed11-Nov-06 20:35 
OMG | :OMG:
ok so I didnt think this would be such a big deal, but Im having trouble (errors etc.)
accessing a on a masterpage, within a user control:

1. masterpage has


<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">



2. then I have a aspx page that inherits from this master page, I have
<asp:content id="Content1" contentplaceholderid="ContentPlaceHolder1" runat="Server">

<uc1:ucsaddlocation id="UcsAddLocation1" runat="server">



3. the user control's code-behind has
if (!Page.IsPostBack)
{
RadioButtonList rblLocationHandle = (RadioButtonList) frmAddLocation.FindControl("rblAddLocation");

if (Request.Form["rblAddLocation"] == null)
... etc.

but when I run the page, it says "frmAddLocation" is not valid in this context.

So how do you access a form thats on the masterpage, in the user control?

also, when my default.aspx page, which is part of ANOTHER masterpage, posts to the AddLocation.aspx page, Request.Form["rblAddLocation"] is always null! but Request.Form[4] isnt! how come? thing is, when I use [4], and I go to AddLocation page directly, meaning without a post, it bombs on [4].

now, I can catch it, and move on, but what the heck is going on? how do you use <forms> on master pages and user controls?

thanks in advance!

Moazzam
AnswerRe: &lt;form> on masterpage and user controls Pin
Guffa12-Nov-06 0:33
Guffa12-Nov-06 0:33 
GeneralRe: &lt;form> on masterpage and user controls Pin
moazzamahmed13-Nov-06 11:52
moazzamahmed13-Nov-06 11:52 
QuestionInserting line numbers Pin
sudidela11-Nov-06 19:02
sudidela11-Nov-06 19:02 
QuestionGenerics & ViewState Pin
eggie511-Nov-06 17:41
eggie511-Nov-06 17:41 
AnswerRe: Generics & ViewState Pin
aamironline12-Nov-06 1:58
aamironline12-Nov-06 1:58 
Questionwhat is the opposite action for Fill(dataset) Pin
karanba11-Nov-06 14:48
karanba11-Nov-06 14:48 
AnswerRe: what is the opposite action for Fill(dataset) Pin
Guy Harwood12-Nov-06 11:18
Guy Harwood12-Nov-06 11:18 
Questionclosing a connection Pin
karanba11-Nov-06 14:01
karanba11-Nov-06 14:01 
AnswerRe: closing a connection Pin
Guffa11-Nov-06 14:21
Guffa11-Nov-06 14:21 
GeneralRe: closing a connection Pin
karanba11-Nov-06 14:49
karanba11-Nov-06 14:49 
QuestionPicture Gallery with paging Pin
mehrdadc4811-Nov-06 10:59
mehrdadc4811-Nov-06 10:59 
AnswerRe: Picture Gallery with paging Pin
karanba12-Nov-06 1:38
karanba12-Nov-06 1:38 
GeneralRe: Picture Gallery with paging Pin
kumarrani55529-Oct-12 21:56
kumarrani55529-Oct-12 21:56 
Questionweb.config Pin
neojapanese11-Nov-06 6:58
neojapanese11-Nov-06 6:58 
GeneralRe: web.config Pin
Guffa11-Nov-06 7:35
Guffa11-Nov-06 7:35 
GeneralRe: web.config Pin
RichardGrimmer13-Nov-06 2:59
RichardGrimmer13-Nov-06 2:59 
QuestionExcluding controls from localization Pin
Dario Solera11-Nov-06 4:28
Dario Solera11-Nov-06 4:28 

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.