|
Thnks for your reply.
But it is not what i want to know.
The line which is not clear to me is
"
You can cast the Master property to be of your type of master page and access it's properties. I'd make such a property available via a base class so you can always access it.
"
Thats what i want to know in detail i.e How do we do that.
|
|
|
|
|
Create a new class, derived from the page class. Derive your pages from this class. In this class, add a property that returns your typed MasterPage, and tat converts the page master to be of this type. Then you can access it from the whole project.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
How to add a property in class file
that returns the typed MasterPage.
|
|
|
|
|
By writing actual code, in the manner I described. You just return the build in Master property, cast to your derived master page class.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi friends
i have three web user control
one is top banner
one is sidelinks
one is center part of the page
if drag drop ,the user control go to top only.
how can i position side and center in the page
regards
saravanan
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
What do you mean by drag drop ? To position your controls, put them in some css so they go where you want.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have 4 html radio buttons. I want to select only one out of 4 controls. How I have to control this. We can do by giving same group name in asp.net control. What is the option in html radio button like group name of asp.net control. Thanks in advance
Balasubramanian K.
|
|
|
|
|
Exactly the same, actually. ASP.NET just uses those names to generate the names passed to the client. Whever you have a question like this, write an ASPX, run it and look at the html to see what ASP.NET does to get the result you want.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanks Mr.Christian Graus. But I am not clear. Pls clear me.
Balasubramanian K.
|
|
|
|
|
Perhaps you should buy a book on HTML ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi Subra,
What Mr Graus suggested is somewhat like this ...
All ASP.NET control generates HTML control the time ASP.NEN control is rendered into browser. Therefore if you see the HTML generared from your ASP.NET page ..( by right clicking and selecting View Source in browser) you can see HTML code.
If you can write your code for ASN.NET web control, then follow the above process so that you can see what the code would be for HTML controls !!! And now write htnl controls accordingly
(FYI web control checkbox is converted as )
Hope it would be helpful.
Thanks,
Arindam D Tewary
|
|
|
|
|
To all those radio buttons add a property,
name="a"
|
|
|
|
|
Hi ,
I want to use LoginStatus control in master page.
How do i use LoginStaus Control in master page without ' Membership provider' and with out 'Configure Security Using the Website Administration Tool '.
What are the changes to be done on web.config.
i have not used any Login Control for Login. I designed a separate page for Login. 'LoginPage.aspx'.
Thanks in advance.
|
|
|
|
|
I am not able to place radiobutton control in a proper manner. My table has five columns. In first column, there is a lable for question. From the second column I have to place 4 radio buttons for answers like (a,b,c,d - for choose the best one). In the second column (cell), I want to place my radio button. I place the control in between only. Though, I am not able to place for proper view. Please guide me. Thanks in advance
Balasubramanian K.
|
|
|
|
|
I am not sure of the issue here. You position stuff in tables by putting them in the right cells. Either way, you fine tune the position with css. What are you trying and what is wrong ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
Select a control, then goto Format Tab(VS IDE)
Choose option Position.
Then Select PositionStyle as Absolute. Click on OK.
From DesignPage select a that control, hold it, and move to where ever you want.
|
|
|
|
|
Thanks Mr.Sekhar
As you told, If I set absolute position, it will display proper at deisgn time only. It is changing at run time.
If I select position as normal flow, then only I can give the proper position at run time.
Balasubramanian K.
|
|
|
|
|
Use Html table / ASP.net table and place controls as you required.
|
|
|
|
|
Your question doesn't made any sense to me. Are you getting the controls not aligned ? Follow W3C standards when designing.
|
|
|
|
|
Hi,
I am trying to grab XML contents using ASP.Net page . But i think i am not getting all the contents of XML but only half. I am using this code.
Response.ContentType = "text/xml";
Response.BufferOutput = true;
//Reads the request and load the string
StreamReader reader = new StreamReader(Request.InputStream);
StrDS = reader.ReadToEnd();
reader.Close();
Then i am putting into one XML file. But any body can guide whteher i am doing right or wrong here. According to specs of the server i should get the more contents.
Then i need to send some response to server like <success> tag. I am sending it but i don't want it to display on the Internet page. Becasue i am displaying some usefull data on it. Code i am using is.
Response.ContentType = "text/xml";
Response.Write("<ErrorList><Success>WEBAPP.dll/XMLPost</Success></ErrorList>");
Response.End();
But this text is always displayed. Can anu body tell me how to send the response without displaying it on IE page
Thanks
Shailesh
|
|
|
|
|
I want to only show a textbox when the clicks a checkbox, i use the autopostback and it shows the textbox, but i want it to hide it if the user deselects the checkbox, any help!!!
Ferron
|
|
|
|
|
Hi,
Heres the code
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.ControlVisible();
}
}
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
ControlVisible();
}
private void ControlVisible()
{
if (CheckBox1.Checked)
{
TextBox1.Visible = true;
}
else
{
TextBox1.Visible = false;
}
}
Thx,
Gayani
|
|
|
|
|
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
if (CheckBox1.Checked)
{
TextBox1.Visible = true;
}
else
{
TextBox1.Visible = false;
}
}
|
|
|
|
|
Hey guys i am not sure why but suddenly i cannot add controls to my webform.. i tried reinstalling but still not possible.
|
|
|
|
|
Check if the VS is in Debug mode.
|
|
|
|