|
|
The theme applied to the page is also applied to the master page, As the master page is rendered within the pages context.
Just make sure you set the page theme on the PreInit event.
Using the wrong tool for the job is half the fun.
|
|
|
|
|
Dear All,
I have an ASP.Net applicaiton in which, the user can set some preferences and based on that the data is generated as an html report and I kept it in the server with the name "Test.htm", then I am loading the same in an iframe in that page.
In my development environment the iframe is refreshed with new data whenever I am clicking on the "Generate" button.
But when I uploaded, the html report is generated fine but it is not refreshed in the iframe for that I used the following codes in the javascript:
1. MyFrame.document.location.reload();
2. MyFrame.src = "Test.htm"
3. MyFrame.document.location.href="Test.htm"
Can any one help me to get rid of this issue?
Thanks a lot in advance.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
you can load the page from server side for that Iframe tag shoud be runat=server
and in the server you can always keep this code like this
in aspx page <iframe id="getData" height=600 width=300 runat=server scrolling=auto></iframe>
and in .CS page
getThreads.Attributes["getData"] = "Test.htm";
Sree(Sreedhar)
|
|
|
|
|
Hi Team,
While I'm going to load the content page, at runtime it gives the below given InvalidCastException error message.So, plz. help anybody how to resolve this problem.
Thanks in advance.
Error Details:
System.InvalidCastException was unhandled by user code
Message="Unable to cast object of type 'ASP.default2_aspx' to type 'Ergode.Business.BasePage'."
Source="App_Web_ddgqvo7u"
StackTrace:
at Item1.get_MyShoppingCart() in c:\Users\ergode\Documents\Visual Studio 2005\WebSites\ergodetest\Item1.master.cs:line 21
at Item1.Page_Load(Object sender, EventArgs e) in c:\Users\ergode\Documents\Visual Studio 2005\WebSites\ergodetest\Item1.master.cs:line 29
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Thanks & Regards,
Rama Krishna,
Software Developer.
|
|
|
|
|
Please explain why it is that you believe this error is invalid, and what you've done to verify it. How about posting us some code ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Actually I have one login page where when I validate the user it let me show
Default page. In that page I have some pages listed.I want to give access of
different pages to different users based on their roles. I am not using
membership and roles provider by going into ASP.Net configuration tab and
creating roles and users over there. I have two tables users and roles
already in my sql server database.
Once after validating the users and getting Default page how can I make sure
that e'g if the user is admin he has access to just administration page wwwand
sales person has access to only sales.aspx page etc
|
|
|
|
|
The obvious thing to do, is to write a base page, which all pages derive from, which checks the logged in member and if they do not have access, redirects. Then set what permissions are needed in the derived page, or create derived pages to then derive from, for each status you want to apply.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hi,
I am trying to fix an ASP.NET application that is also written is VB and uses session variables to store the information from the logging page. In Firefox, the application runs just fine, but in IE (I am using IE 8), when I summit the logging credentials, the session variables become empty (takes me back to the logging page).
The weird thing is that when I move the privacy settings in IE (doesn't matter if high to low, or low to high) and enter the logging information again, the application runs great. Also if I restart IIS 6.0 the application runs great. What's going on? Please, help me. Thanks.
|
|
|
|
|
I have been testing the application in IIS 5.0 isolation mode and the only problem is that pages that require accessing some resources in the directories don't work because of permission problem; it says something like "access to the path SOMEDIRECTORY was denied". On the other hand, the logging-session problem disappeared. Please help me. Thanks.
|
|
|
|
|
Hi, thanks for looking
I wonder...
Does the browser send all its info (cookies, ip, language, browser type...) when requesting every image in a page?
Thanks in advance
Alexei Rodriguez
|
|
|
|
|
Yes it does. It's request header will usually contain all that information for any request made of the server.
Using the wrong tool for the job is half the fun.
|
|
|
|
|
Hi,
I have generated a Data GridView and would like to populate it dynamically according to what I type into a textbox, but not after I press a Submit button or so, it must start generating instantely.
Example, as soon as I type "S", the DataGridView will display all the results which begin with an S. As soon as I add "t" in the textbox (it will now have "St"), the DataGridView will just show results begining with "St".
Anyone got a good tutorial for it pls?
|
|
|
|
|
You can do that with javascript
Also, take a look at the ajaxtoolkit controls (AutoCompleteExtender)
AutoCompleteExtender[^]
Alexei Rodriguez
|
|
|
|
|
I don't need the auto-suggest per se. I just need to solve that specific problem.
It would be better if you could illustrate me with a C# tutorial which I could follow.
Thanks
|
|
|
|
|
question, I have an jpg which I want to be my site background, but i don't want it tiled. I want it stretched. I made my jpg to have a space in the center for a contentPlaceHolder for the contents of my site. My beginners book didn't cover this and I'm kind of clueless, looking for any help whatsoever.
Thanks in advance.
|
|
|
|
|
I would say this probably isn't the way to go. What happens when the content exceeds the boundary of the "hole" in the image. It also won't scale well when the page is resized by end users.
only two letters away from being an asset
|
|
|
|
|
Sorry for the misexplanation.
I want the contentPlaceHolder to be scrollable while the background is fixed, something like nbc.com, my image is a vector image so it can be scaled to pretty much any resolution without losing quality, just being slightly warper. I tested on what I consider to be pretty popular resolutions and it works just fine, the only problem I have is how code my master page so that it acts as the site listed above.
|
|
|
|
|
Create an element, like a div, in the masterpage that is 100% and set it's background image via CSS. No need to create a hole in the image, the content will appear on top of the background image.
only two letters away from being an asset
|
|
|
|
|
Hi
When the Internet Information Service process (inetinfo.exe) receives an HTTP request, it uses the filename extension of the requested resource to determine which ISAPI program to run to process the request. When the request is for an ASP.NET page (.aspx file) IIS passes the request to the ISAPI DLL capable of handling the request for ASP.NET pages which is aspnet_isapi.dll.
This I understand in case the file name is in the requested URL like http://microsoft.com/whatsnew.aspx , But what is the process sequence if it is only http://www.microsoft.com . I understand that the default page gets called somehow but I am trying to understand the sequence.
Please advise. Thanks
Pankaj
|
|
|
|
|
same as you mentioned. It first checks the Default file for Default Web site in the host (microsoft.com)
If it is of extension .aspx then it is processed by aspnet_isapi.dll otherwise whatever configured to the IIS.
|
|
|
|
|
If no file is specified then the Default content page list is where it looks (Documents Tab in IIS). It goes through the sequence of page names set for the directory, and picks the first one that actually exists, and then processes that file exactly as if it had been called originally.
Also IIS checks the processing list before it actually looks for the file, So it goes to aspnet_isapi.dll and passes the request information to it, by default it doesn't even check that the aspx file even exists. (Its a checkbox option of whether to check the file is actually on the server.)
Using the wrong tool for the job is half the fun.
|
|
|
|
|
pankazmittal wrote: But what is the process sequence if it is only http://www.microsoft.com . I understand that the default page gets called somehow but I am trying to understand the sequence.
It is set up in IIS.
IIS has a setting where by you can set the default document to be called in the event that the web server receives only a folder path. You can set multiple defaults so that it can process them in sequence until it finds something.
Man who stand on hill with mouth open wait long time for roast duck to drop in
|
|
|
|
|
First off, i dont really like what i'm trying to do,but i'm trying to avoid putting a bunch of stuff in the session. I'm using normal hidden inputs not invisible lables. I have several update panels and have tried putting the inputs in an update panel with UpdateMode="Always" thinking it might help, but i can access the control assign it values, but the values dont persist. It all works fine with postbacks, however when the user clicks Refresh all the values go away. And all this is in a content place holder for a master page. I've tried using invisable labels, enableing and disabling the viewstate on both my page and the master page. assigning values a few different ways, moving the code that reads the values inside and outside of !Page.IsPostBack if's. I've also tried a google, but didnt see anything relevent. I can post whatever code you guys want just not sure what all would be relevent. I've used this type of method before just not sure why it isnt working with the ajax and master page.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Where is the control that is triggering the update? In the master page or the content page? Do you have the hidden fields in an UpdatePanel with a trigger for the control that should cause the refresh?
only two letters away from being an asset
|
|
|
|