|
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.
|
|
|
|
|
Thanks, still doesn't solve my problem
Let me put it this way.
I have a page with panel in it. I also have 3 user controls each with next button on it.
On page load i load the first user control on the panel.
Now i want to able to load on the page user control number 2, when i click on the button on user control 1 and so on.
Back off i am coding
|
|
|
|
|
dear all;
i need the same tab container CSS which is used in the home page of this web site
http://www.codeproject.com/
and which type of tabcontainer is used? is it ajax tabcontainer or something else in the home page of this web site
pls need feed back
Thanks in advance
|
|
|
|
|
I think some JavaScript/Dhtml menu controls are being used on the top header.
Either you love IT or leave IT...
|
|
|
|
|
dear;
thanks for reply.... still i am confused that whether DHML or ajax tabcontainer...
|
|
|
|
|
omerqq wrote: still i am confused that whether DHML or ajax tabcontainer
You want to know that only need to develop similar kind of tab control? If need to develop then you can developed it using Ajax Tab Container very quickly.
|
|
|
|