|
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
|
|
|
|
|
The controls that are causing the updates are all in the content page. The hidden fields are in an update panel with UpdateMode="Always" so it should always postback, though i did get the info from msdn so it may not be accurate. Any other control that can cause a postback is in an update panel with its update mode set to conditional.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
So, trying to follow along. You have two UpdatePanels, and you are trying to update controls in one from events in another? Have you added the controls that trigger the update to the triggers collection of the other?
only two letters away from being an asset
|
|
|
|
|
You are correct. No i have not tried that, reading the msdn doc on it didnt make it sound necessary. I have gotten it to work with the 2 values in the session. I can put a function in the masterpage so that it clears out any unnecessary items when the navigation bar is used. Its not the best way, but i'm not sure if its any better or worse than using hidden fields in the html. If you or anyone else has an opinion on that or any insight into a better way i'd love to hear it. Thanks for all your help so far.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Although the controls are available during the postback, the UpdatePanel, call it the refresh panel, knows nothing about the controls in the other UpdatePanel, call it the trigger, and vis versa. Add the trigger control to the Triggers collection of the refresh panel.
only two letters away from being an asset
|
|
|
|
|
I see what you're saying, I made the mistake of assuming msdn was correct. It said it would always go back on any postback sync or async, I figured it was handeled by the script manager or some other automagical thing.
Thanks for the help.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
SomeGuyThatIsMe wrote: Any other control that can cause a postback is in an update panel with its update mode set to conditional.
I didn't get your point, If the Update Mode of Update Panel is set to conditional you can call the UpdatePanel.Update() in post back of any other control.
|
|
|
|
|
The hidden fields are in an UpdateMode="Always" panel, all the controls that can cause a postback are in an UpdateMode="Conditional" panel. Those panels all 3 or 4 of them work fine, its the controls UpdateMode="always" panel that isnt working properly, but i belive i have it solved w/ 2 values in the session, i know its a bad practice, but i dont know if its much worse than using hidden fields in the html since the data i'm storing there isnt sensitive at all.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Short version
All I need is that, in a ModalPopUp, when the DoubleClick event of a ListItem fires, the click event of my OK button should be executed.
Detail
I have a ModalPopUpExtender, which hosts a user control. The user control has an OK and a Cancel button. Along with that, it has a dynamic ListBox added to it(may be more). So far, I've considered the following possible solutions:
1. Use Ajax.Net. But, I cannot afford to have a WebMethod.
2. Use a ClientScriptCallBack. This will need a lot of JavaScript, since I have made almost every control dynamic.
Is there any other way apart from using an UpdatePanel?
जय हिंद
|
|
|
|
|
That's easy. Assuming there is a double click event at all ( and if not, you could fake one ), you just hook that up to javascript, which calls the script to fire the OK button.
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
|
|
|
|
|
How I wish it was that easy, unfortunately some browsers disable that ability and even then for some reason it doesn't always work.
You can however you Page.ClientScript.GetPostBackEventReference(Control, String) to do this.
Using the wrong tool for the job is half the fun.
|
|
|
|
|
Christian Graus wrote: Assuming there is a double click event at all ( and if not, you could fake one )
Done that and its working fine.
Christian Graus wrote: you just hook that up to javascript, which calls the script to fire the OK button.
Are you referring to PageMethods.MethodName() ? I don't want to use it since it will make the event a WebMethod.
जय हिंद
|
|
|
|
|
Hi i added tag in masterpage and i added same tagprefix & tagname in which i declred globally..just go through my code..i added tagprefix users & tagname Menus..
The error coming like Menus is not a known element...
can anyone answer?
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="NDIMaster.master.cs" Inherits="NDI.NDIMaster" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<%@ Register TagPrefix="user1" TagName="Menus" Src="~/UserControl/Menus.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server" id="nMaster">
<link href="NDI.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="fmaster" runat="server">
<asp:ScriptManager ID="smNDI" runat="server"/>
<div class="content1"> <asp:ContentPlaceHolder ID="Cph1" runat="server" /> </div>
<div class="header1"><user1:Menus runtat="server" vissible="true" id="menu1"> </user1:Menus></div>
<div class="footer" id="footerContent">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
</tr>
</table>
</div>
</form>
</body>
</html>
|
|
|
|
|
Erm, I think your missing something from your code, I can't event see a menu tag set.
Using the wrong tool for the job is half the fun.
|
|
|
|
|
hey i copied entire design page..it din't display in the webpage...
i am just copying other part of my code..follow from above..
i mentioned my menu tag in below..just go through..i can't view this code when i add it in the codeblock..when i removed the tag i can able to view this in the webpage..
i don't know..just go through my menu tag..
div class="header1"user1:Menus runtat="server" vissible="true" id="menu1" / /div
plz answer
|
|
|
|
|
i am gettin an error in global asx file
tat theme is not an member of profile common
Protected Sub Application_PreRequestHandlerExecute(ByVal sender As Object, ByVal e As EventArgs)
Dim p As Page = TryCast(HttpContext.Current.Handler, Page)
If p IsNot Nothing Then
Dim pb As ProfileCommon = DirectCast(HttpContext.Current.Profile, ProfileCommon)
If pb IsNot Nothing Then
p.Theme = pb.Theme
End If
End If
End Sub
|
|
|
|
|
I have a page and two user controls, on page load i load first user control. The first user control has a button call next. Now all i want is to be able to click button next and load the next control which is control no 2.
Please help!!!
Back off i am coding
|
|
|
|
|
you can also load the control using code. look here[^]
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|