|
no the image not related to database
it is on folder in my project
MD_NADA
|
|
|
|
|
in your template column your image control would be there right! Just set the properties accordingly there, give your image url i.e. the folder path where the image is saved to the imageurl property of the image control.....
Gautham
|
|
|
|
|
1. How do I switch between 2 master pages for the same content page? For example: one master page for a logged in user and a different one for a visitor.
2. In a function in a code-behind page in c#, how do I navigate back one page, like in the "Back" button of the browser?
|
|
|
|
|
Ad.1
You can set the MasterPage file in PreInit event.
2. What exactly would you like to do?
|
|
|
|
|
1. Using Visual Web Developer 2005 Express Edition, how do I link a function to the PreInit event?
2. I want to create a button that does a few things, and then redirects the user to the page he was previous to the current page (could be any page).
|
|
|
|
|
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
|
|
|
|