|
hi
Yes, i agree can you give me some example how can we do that .,
|
|
|
|
|
Hi everyone,
I have one question I can't seem to find an answer for...
Is there a simple way to ensure an aspx file deployed to a remote server has not been modified?
I'm thinking of something a bit like strong name signing: a way to detect at run time if the aspx file has been modified after deployment.
I mean: I can compile every aspx.cs file into a dll and sign the resulting file, but it seems I cannot do something similar with aspx files.
Thank you all in advance.
Alberto
|
|
|
|
|
When you pre-compile the application the code behind and aspx files placed into the assembly, there are aspx files also but they are merely placeholders (even says so in the file)
If you have are worried about someone changing the aspx after deployment then I think you have other concerns that need to be addressed first.
I know the language. I've read a book. - _Madmatt
modified on Wednesday, September 1, 2010 1:44 PM
|
|
|
|
|
Mark Nischalke wrote: When you compile the application the code behind and aspx files placed into the assembly, there are aspx files also but they are merely placeholders (even says so in the file)
IIRC that is a build option and not the default option?
|
|
|
|
|
Correct, I should have clarified that.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Thank you Mark and Ennis!
Yes, I know that I have a lot of things to watch for before.
In fact, taking care of them is my current concern.
I was simply investigating if it's possible to secure this particular aspect of a webapp.
Thank you much for answering to my question.
I think I can't find the exact option you two are referring to; could you tell me how it's called (I should probably RTFM, I know).
Thank you much!
|
|
|
|
|
|
|
Hi All,
I am currently fighting with a problem with regards to finding controls within ContentPlaceHolders.
The scenario is that I want to be able to set the class on a control with a specified ID, which is on one of the Master pages which the page inherits from. There is no limit to how many levels up the tree the control can be, and the code searches recursively until the root master page. This part I have working.
The issue that I am having is that I can only find a control if it is on the root master page.(I.e. not within a ContentPlaceHolder). If the control is on any other page then FindControl() does not find the control. In this example, the control would only be found if on DefaultMaster.
DefaultMaster
--> SectionMaster
--> PageMaster
--> Page.aspx
I have investigated further, and found that controls within a Content control are being retured as null, although they clearly exist. Obviously as these are null, FindControl can't find them. I have tried attempting to find a control within the content section also, but I have the same issue.
Unfortunately, if you take the above example, then my control would be in SectionMaster, as I dont have access to the root master page. (I'm using Umbraco currently for this project.)
Does anyone have any suggestions to how to get these values from content controls?
Thanks in advance,
DM.
|
|
|
|
|
What event in the Page Lifecycle is your code running? Child controls generally will not be available until after the load event fires for said control.
That said, code is not supposed to access controls up the hierarchy only below it. If you need to access something from your parent container, the parent should provide a method to perform said action. Otherwise you introduce unmanageable dependencies.
|
|
|
|
|
I'm using the Page_Load event on the User Control.
What I do at first is a FindControl() on the current control, if its not found, it does a a FindControl() on the page which the control is on. If thats not found, it looks at the Master for that Page and continues to do this until the control is found, or it is the root masterpage.
It only seems to find controls outwith the content place hold on the root masterpage or nested content controls. Interestingly, on the Controls collection, it shows the correct number of the page, however some are shown as null. I'm sure the nulls are where my controls I need to find are.
Thanks
DM
|
|
|
|
|
Hi All,
I am new to Windows7 and IIS7 environments. Here at client site, I have a machine in which I am not finding ASP.Net state service in my services list. Is there any way to add ASP.Net state service to the services list. I need this service to be added because the application I am running is using ASP.Net state server services. Any link or any explanation would be great helpfull.
I need this support for Windows7 and IIS7.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
Windows 7 isn't a server operating system. If your site is big enough to require state services it should be running on a server OS. Also depending on how you use the website you may be violating the license agreement for the desktop OS if you are serving a website for multiple users.
|
|
|
|
|
Hi,
I am getting System.Web.HttpCompileException from my application randomnly. it gets fixed randomnly too. sometimes i refresh the IIS and it starts working, other times, i change timestamp on the control mentioned in exception and my application starts working. My code looks like:
Private utilityMethods As ASP.mywebsite_utilitymethods_ascx 'Declaration , This line is throwing error. Note this is global declaration of the reference
after the above line i create the object and use it to call methods in the utilitymethods control. The Products page has this declaration. Sometimes when i make changes to Products page and copy it to the testbox, this exception starts happening: Please not that line 55 is the declaration line that i have copied above
Message: System.Web.HttpCompileException: D:\MyWebsite\Products.ascx.vb(55): error BC30002: Type 'ASP.mywebsite_utilitymethods_ascx' is not defined. at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at Website.MyWebsite.RadTabStrip.RadMultiPage1_PageViewCreated(Object sender, RadMultiPageEventArgs e) in D:\Websites\RadTabStrip.ascx.vb:line 906 at Telerik.Web.UI.RadMultiPage.OnPageViewCreated(RadMultiPageEventArgs eventArgs) at Telerik.Web.UI.RadMultiPage.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at Telerik.Web.UI.RadPageViewCollection.Add(RadPageView pageView) at MyWebsite.RadTabStrip.AddPageView(RadTab tab) in website\RadTabStrip.ascx.vb:line 1074 at MyWebsite.RadTabStrip.Page_Load(Object sender, EventArgs e) in D:\Websites\RadUCTabStrip.ascx.vb:line 668
Please note that the application is working. This happens sometimes when i make changes to Products page. When this happens, i change timestamp on utility methods or radtabstip page and copy it over and it starts working. I know my statement is rediculous. This is a bug but i am not sure why its happening .
Please provide help and advise.
Thanks,
Mark
|
|
|
|
|
Quick question:
A department I am working for has asked that I come some functionality on their web site for their users. The site holds student data broken down by schools. The users with schools that have a large number of students want to be able to go from the page that lists all of their students to the student's information page and then back to the list starting where they left off. The list of students is presented in a gridview control, so I was wondering if there was a way I could save where the user was in the gridview so that when they finish looking at a student's information they can start back on the gridview from where they started from.
|
|
|
|
|
Yes there are numerous ways to get at your goal.
|
|
|
|
|
|
Your link requires a registered user.
|
|
|
|
|
Oops. When I first clicked on it from google it worked without registration. Either use the cached version or look for one of the other of hundreds of articles about using the MaintainScrollPositionOnPostback directive.
|
|
|
|
|
Cookie
I've never used them, but I believe you could create a cookie with "key" information like the student ID so that when you come back to the Grid page, you could load it at the right location.
Session variable
Same idea as a cookie, but the implementation is a bit different
Pop-Up
You could make the Student Detail window appear as a new browser window, so they can see the student info in one window and the grid remains untouched in another window.
Just some ideas ...
|
|
|
|
|
Yeah, I tried the pop up idea, but the more I think about it I get fears of calls in the middle of the night about users not being able to use the site because they have turned off their pop up blocker. I'm using Session variables already, so that and cookies aren't a stretch for me.
Thanks for the advice.
|
|
|
|
|
It's easy enough, assuming you're creating links for each student in the RowDataBound event based on their ID number. Then simply add (Attributes.Add) a "name" property to each link also based on their ID, and append this anchor name to the "Back" link url on their student info page (....aspx#s123, for example)
|
|
|
|
|
This seems to be the easiest to add in my current situation, and an obvious no-brainer. If I had thought of this before spending days messing with javascript and jQuery pop ups then I would be closer to being finished. Thanks for the advice!
|
|
|
|
|
Hey I used iTextSharp to get the output data in pdf form. But How do I insert header, footer and page number in each page of that pdf file ?
suchita
|
|
|
|
|