|
Ya, I read this about asp:content tag, but what I don't understand is I could not find asp:content tag in any of my page. Sorry this might sound silly, where should this asp:content tag suppose to be in? .master or .aspx?
|
|
|
|
|
It should be in a content page, not in master page.
I got your problem, you are trying to change a master page dynamically in a page where master page is not at all used. Try putting your ASPX page contents into
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content> . Master page should contain body, form and a content placeholder. In your content page, supply the content placeholder id to asp:content's ContentPlaceHolderID property.
Hope this helps
|
|
|
|
|
I think it wont help, if master page is not referenced when he wants it not to contain one, then it will throw error again, coz of using content control without a master page.
I dont have a solution now, gotta check that out, if i get ill let ya know..
I was born dumb!!
Programming made me laugh !!!
--sid--
|
|
|
|
|
I think I slowly get what you mean. The content page is where all my textboxes, buttons are.
This is what I did, in my aspx page's html:
<asp:content id="Content1" contentplaceholderid="ContentPlaceHolder1" runat="Server">
<body>
</body>
</asp:content>
But I got the error when change it back to design view
Content control can only be use in a content page
I guess I still missing some point you trying to tell me?
|
|
|
|
|
Let me throw some light here...
If you are using a master page, the contents you are using for a page must be inside the content template as you mentioned in the post..
However, you could only have a master page on a page or you dont have one.. and as you cant change the aspx design page at runtime, it is bound to throw an error...
I suggest you use two different pages, one with master page and another without it, so that you could use them according to the situations you have..
I was born dumb!!
Programming made me laugh !!!
--sid--
|
|
|
|
|
Oh ok, now I know that I can't include the master page during run time. Thanks for saving from turning in circle again and again.
|
|
|
|
|
Hi all,
I am generating some Excel files on the server as part of some reports generation process (I'm using the Apache POI library with IKVM). I am interested in printing them at once without involving the client-side and without having MS Excel installed on the server machine.
Is there any way to do this under the given conditions?
I would be interested even in some .NET library capable of doing this...
Thanks in advance!
Andrei
------------
Croitoriu Andrei
andrei.croitoriu@gmail.com
http://www.stud.usv.ro/~acroitoriu
http://spaces.msn.com/acroitoriu/
"No complexity beyond what is necessary"
|
|
|
|
|
Hi ,
I am having a tree view control.I want to change the css class (Background color) of the selected node of the tree view . I tried like this
<selectednodestyle cssclass="ClassName" font-underline="false" horizontalpadding="0px" verticalpadding="0px" forecolor="#5555DD">
But this is not working . Any solutions .
Thanks in advance
Jophin
jophin
|
|
|
|
|
check this out:
http://fredrik.nsquared2.com/viewpost.aspx?PostID=299
We are not a Code Charity
|
|
|
|
|
i am using .net2005 i want to fill events in dropdownlist by clicking particular date in calendar
modified on Monday, June 9, 2008 3:41 AM
|
|
|
|
|
You need an onclick event for the calendar and in there populate the dropdownlist
We are not a Code Charity
|
|
|
|
|
I have an asp.net webapplication which will send mail. The mail will be containing link to the same web application, when user click on the link it should open the same web application. But it is opening blank page. It is configured in the local intranet.
The link is something like this.. http://localhost/appname
How to solve this problem..
Please any one find me the answr as soon as possible
thanks
Jiss
|
|
|
|
|
Is the e-mail being opened from the same machine where the application is located?
If it isnt you wont be able to open the link
We are not a Code Charity
|
|
|
|
|
People will be using outlook express or microsoft outlook to check there internal mails in the organization. From there only that link should open the corresponding web application in new internet explorer window.
I am using mail sending code and embeding the url as
http://domainname/virtualdirname
but when i click onto link in mail it opens blank page.
please provide me with the proper solution
thanks in advance
shamshuddin
|
|
|
|
|
Easy way is to keep the domain name in some configuration file. Read from that configuration file while you send email. When you upload website to server, change this value to a valid one.
|
|
|
|
|
I didn't get this explanation. will you please explain. I detailed my problem down,
People will be using outlook express or microsoft outlook to check there internal mails in the organization. From there only that link should open the corresponding web application in new internet explorer window.
I am using mail sending code and embeding the url as
http://domainname/virtualdirname
but when i click onto link in mail it opens blank page.
please provide me with the proper solution
thanks in advance
shamshuddin
|
|
|
|
|
try giving the system name in place of localhost, that will work irrespective of where the set up is installed...
whereas localhost will only work on your system..
I was born dumb!!
Programming made me laugh !!!
--sid--
|
|
|
|
|
Its not a web setup program. We configuered it under IIS just by coping the folder. I detailed my problem as follows. I tried by giving name also but it doesn't work.
People will be using outlook express or microsoft outlook to check there internal mails in the organization. From there only that link should open the corresponding web application in new internet explorer window.
I am using mail sending code and embeding the url as
http://domainname/virtualdirname
but when i click onto link in mail it opens blank page.
please provide me with the proper solution
thanks in advance
shamshuddin
|
|
|
|
|
meetshums wrote: People will be using outlook express or microsoft outlook to check there internal mails in the organization. From there only that link should open the corresponding web application in new internet explorer window.
Whatever they use for opening you're link, it'll open up..
meetshums wrote: I am using mail sending code and embeding the url as
http://domainname/virtualdirname
Are you not providing a page name where this should redirect??
If not it will obviously open a blank page if youve not configured the iis for a default page..
Try giving the page name as the default in iis documents tab..
Or in the link directly provide the page name
something like this ...
http://domainname/virtualdirname/pagename.aspx
I was born dumb!!
Programming made me laugh !!!
--sid--
|
|
|
|
|
Hi all,
I am building on community portal where I want to show members family tree.
The look should be totally as tree.
I have all relation database.
I thinking that xml and flash would be useful for this but not shure.
so if anyone worked for same before or have knowledge pls help me
Thanks in advance
|
|
|
|
|
|
Hi friends
I am getting an eror and gives following description
If the applications App_Data directory already exists, the web server account only requires read and write access to the applications App_Data directory. This is necessary because the web server account will attempt to verify that the Sql Server Express database already exists within the applications App_Data directory. Revoking read access on the App_Data directory from the web server account will prevent the provider from correctly determining if the Sql Server Express database already exists. This will cause an error when the provider attempts to create a duplicate of an already existing database. Write access is required because the web server accounts credentials are used when creating the new database.
can you tell me what I need to do ?
Thanks
|
|
|
|
|
Hi all,
I have created one webservice in asp.net 2.0 and using Web Service Extenstions 3.0.
To invoke any asmx page from client, client need to create a object of that asmx page and pass 1) Microsoft.Web.Services3.Security.Tokens.UsernameToken object 2) Client policy. This is working fine when I am consuming WebService from local.
I deployed webservice in Server machine on perticular port number.
If i invoke the webmethod from client gettting excpetion as '401 Unauthorized'.
If i follow same steps locally working fine.
coders, any idea on this. why WS is giving 401 exception when invoking from network
quick response will be appriciated.
Ramana
modified on Monday, June 9, 2008 2:38 AM
|
|
|
|
|
Hi inside my update panel i have a grid...,
In that how to fire the onrowcommand event?,
And selectionindex changed event?,
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
Surely just put the commands into the gridview and they should call when the gridview is created?
We are not a Code Charity
|
|
|
|