|
1.
public partial class Default : System.Web.UI.Page<br />
{<br />
protected void Page_PreInit()<br />
{<br />
if(IsPostBack)<br />
{<br />
this.MasterPageFile = "MasterPage2.master";<br />
}<br />
}<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
<br />
}<br />
protected void Button1_Click(object sender, EventArgs e)<br />
{<br />
}<br />
}
I'm not sure that is what you are looking, but remember the ID ContentPlaceHolder in Master1 and Master2 must be the same.
2.
You can send a adres of previous page in hidden field or in viewstate or remember in session or in cache.
Sorry for my english
|
|
|
|
|
Yes, that's what I was looking for. I just have a casting problem:
I've put this line on top of the aspx page:
<%@ MasterType VirtualPath="~/MainMasterPage.master"%>
The problem is that it's good for one of the masterpages (MainMasterPage) and not for the other, and I can put only one line of this type in the page.
Without the MasterType line, when I try to do the casting in the code behind page, for example:
(UserMasterPage)this.MasterPageFile = "~/UserMasterPage.master";
Then the string on the right side of the equation should be cast to UserMasterPage. Any suggestions?
|
|
|
|
|
Hmmm
Please, describe me briefly what are you trying to do? Because it seems be a bit complicated or maybe you are trying to do very simple thing in very complicated way
|
|
|
|
|
Sir,i want to disable some of dates in a month.Disable means
particular dates should not perform any event(click event)when
u want to click on it.Actually What my intension is particular dates should behave like a labelcontrol...
Thanq for ur valuable reply to my previous questions...
Neelima
|
|
|
|
|
Neelima,
for this you need to write an event with parameters object sender and system.web.ui.webcontrol.calender... args.....
here you can check your conditions like
if(e.day.date=1....)
e.day.enabled=false..
...
basic structure, not sure of the synatx hope this works
Gautham
|
|
|
|
|
Hi
Guys i am having a problem wioth drop down list in data grid, there is horiziontal scroll with the grid when i scroll the grid down wards then the drop down list in the gird retain there position and do not move down wards with the other controls in grid such as text boxes, and the drop down lists comes in the header of the data grid, can any one let me know any solution about this , please reply ASAP, thankx in advance,
regards.
|
|
|
|
|
Hi,
We have suppose 10 aspx pages and a business class (containing business logic) and data access class.
The Business class and data access class each have multiple methods which accept more than 7-8 paramaters as input.
Now when we need to call any business class function from any aspx page which in turn will call the data access class for retrieving data, then how should be the structure of the code.
As we know we can define public properties and set property values and then instantiate an object of the class to actually call the method.
Another way is to directly pass the parameter values inline with the method call for all the methods defined in the called class.
Which approach is preferred according to OOP standards and which one to use when ? I am slightly confused regarding the OOP usage in ASP.NET domain.
Pls guide me on this.
Omkar Ghaisas
|
|
|
|
|
HI
Its nice to having different layer in the application. create a object of the class and set all varaibles by public properties and used them in function directly instead of passing them if they are not going to update in that context. If the method is going to used by many times and in different context then it is good to have method as static
<l>Thanks and Regards
Sandeep
|
|
|
|
|
how can i creat abussnies cass after making adta access class .
and waht is partial class.
and do u vahve any advises whn i use such way?
If I HaD OnE sInglE wIsh IwIll gO back for thE fIrst tIme i sEE yOu
|
|
|
|
|
Hi all,
Could anybody please tell me a good forum like this for Biztalk server. Please give me that information, if anybody knows it. Thank you.
Regards,
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
How often have I asked you to not spam the site ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I've already exhauted my knowledge of ultraseek,
is there a sample for asp.net web app ?
who can give me same idea?
please help me.
Thanks.
0575zwf
|
|
|
|
|
HI, I am also a new user to ultraseek. How to implement this search in my C# website ? pls help. I am stuck.
|
|
|
|
|
|
Seems invisible query ?
<l>Thanks and Regards
Sandeep
|
|
|
|
|
Hai all,
I am using a login form in my project...I have created a DB for login form .. my problem is i want to add a priority project i.e:for eg: if a person with login name 'a' logins he can access only pageX.aspx..... can anyone help me with this............
with Regards,
Imthiyas Ahamed.A
|
|
|
|
|
Forms Authentication????
Gautham
|
|
|
|
|
yes using authorization only........ can u help me with this
with Regards,
Imthiyas Ahamed.A
|
|
|
|
|
hi
this is suresh
As best of my knowledge i am sugesting u that
u r asking that u want to give a page access to a particular person.So just go too authorization part there u can specify the user name as accept user.
|
|
|
|
|
hi
this is suresh
As best of my knowledge i am sugesting u that
u r asking that u want to give a page access to a particular person.So just go to authorization part there u can specify the user name as accept user.
suresh
|
|
|
|
|
I am new to asp.net programming.i want to use the sitemap path control in my web from could any one suggest some site for it.i idi my best,but i am little bit confused in this case.
thanks in Advance
|
|
|
|
|
Its very simple drag and drop the site map and edit its file i.e xml file by giving the title , path ..........
you can also search it on google
<l>Thanks and Regards
Sandeep
|
|
|
|
|
this is the error I am getting
LoginView1:Only one <configsections> element allowed per config file and if present must be the first child of the root <configuration> element
I am using the defaut web.config for AJAX site with Master pages and a SQL connection string. I have seen some brief post on AJAX/Master pages having problems, but nothing that seemed to fit my situation. any ideas?
Thanks
|
|
|
|
|
hi,
please can oneyone tell me why we use xhtmlConformance tag in web.config file and if we set the mode ="Legacy" in xhtmlConformance tag, what does it mean??
Thanks,
Rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|