I have a web page (Orders.aspx) that gets some orders and show them in a Gridview .The orders list I get from DB is depend on a field named Status. The page has a master page that contains a Tab user control. The user control has several tabs and every tab has a different Status. Therefor, when the user clicks on every tab, I want to pass a value as status to my content page (Orders.aspx) and then select the orders from DB based on status.
I have a master page containing menu items and if i click on any menu item then postback happens(it's not an asynchronous postback) that page loads in the content area. Now, if the page has taken some time to load and the user again clicks some other menu, then at some cases, it is crashing. So what i want to do is when postback is happening, I want to restrict the user to click anywhere on the master page or content page. We have achieved this on asynchronous postback.... But cant find a solution during postback.
I have a ShoppingCart UserControl on MasterPage. I have a following functionality: User adds item to the cart. after clicking the button "Complete Sale" in UserControl the page is redirected to "CustomerInfo.aspx" and after filling the Customer information and clicking on submit which is on CustomerInfo.aspx page i want to call the "Complete Sale" click event of UserControl from "Customerinfo.aspx" page.
how to remove master page prefix from control ID after rendering content page
i m using master page in my web application, i am using a java script that works on one of my div id and i am genrating div at run time using C# code, problem is that one one of my content page rendred a prefix ct100 attached on that div,
How can i remove that prefix from my server side control (assume panel) id
and I want change it's color in behind code so I wrote:
(this.Master.FindControl("HyperLink1") as HtmlGenericControl).Style["color"] = "black";
but below error happen:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.Source Error:
Line 13: Line 14: (this.Master.FindControl("ADMenuMessage") as HtmlGenericControl).Style["background-image"] = Page.ResolveUrl("~/Image/ADactivmenu.png"); Line 15: (this.Master.FindControl("HyperLink1") as HtmlGenericControl).Style["color"] = "black"; Line 16: } Line 17: }
how I can change hyperlink textcolor in behind code?
Can I modify the properties of a content page control from an event fired from the master page?create a delegate and event on master page wire up the master page in the content page create the event handler (function) on the content page modify for example:
contents of the Text property of a textbox render a control visible (or hidden) etc...