This is what i want 2 form in my navigation bar. First is for Search Box second is for username and password.login button problem is if i put search box and login in same form then it gives weird look and formation error. Second Now I want to use buttons in master page That needs to be run on server but can't run without 2nd form running on server. Is there any alternative to use Textbox control button link button searchbox control without using <Form> Running on server.? Here is the code I'm using Bootstrap <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" …

Member Avatar
Member Avatar
+0 forum 2

Hello, Something really weird started happening in my web application. I have some buttons defined in a Master Page File and then I have a lot of pages that derive from this Master Page file. One of the buttons (In the master page file) closes the user session. This means that this button is present in all the pages that derive from the master page. Here is the weird thing, the buttons works in all pages except for one. This page works perfectly but the button does not work. Obviously the page is deriving from the master page (checked in …

Member Avatar
Member Avatar
+0 forum 1

Hi, I have one navigationmenu on my masterpage. Whenever a user logins, the navigationmenu should display the menuitems as per the users permission. eg: i have three navigationmenu items i.e. menuitem1, menuitem2, menuitem3. a normal user has access only to two menuitems i.e. menuitem1 and menuitem2. And the third menuitems is either disable or hidden to him. So when a user logins, he can only see two menuitems i.e. menuitem1 and menuitem2. My Program: wht I did is I wrote user authentication code on my login.aspx page i.e. If lbl.Text = "user" Then nwperm() Response.Redirect("Home.aspx") end if HERE nwperm is …

Member Avatar
Member Avatar
+0 forum 2

I have a masterpage and a default page in a project in VS2010. I am trying to import a javascript file. If I import the .js file the project compiles and loads but the whole browser screen is blank. If I comment out the javascript import line the page displays correctly. Below is the two versions of the 'view source' of the page... [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><title> </title> <script type="text/javascript" src="Include/jquery-1.5.1.min.js"/> </head> <body > <form name="aspnetForm" method="post" action="Default.aspx" id="aspnetForm"> <div> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTY1NDU2MTA1MmRkGAEJI5+bs1wRmkRMJFsLRxPPhT7Z7NvrME9cYWjxI7s=" /> </div> <div> new test </div> </form> </body> …

Member Avatar
Member Avatar
+0 forum 3

actually I'm developing a template using ASP.net and C#. as you can see in attached picture, my template include 3 part and i want to have partial refreshing, that's why i'm using updatepanel. in this template once the user click at the top menu it will refresh the side menu then when the user click on the side menu it will refresh the middle content page. i'm using masterpage in this scenario because i'm going to load aspx page at the middle content page. based on my code the normal page easily load at this part but when i want …

Member Avatar
Member Avatar
+0 forum 1

Hi I am a bit confused at how to approach this little basic issue. I have developed a web site that uses the masterpage - main.master So, Basically I want to add a control to the web page .But all I can see is contentplace holders and they are not allowing me to add the control . Please advise me how can I add a control to the web page.

Member Avatar
Member Avatar
+0 forum 1

Hi, I'm a newbie to C sharp and ASP.Net. I have created a web form header.aspx, so i would like know to how to make that header page appear on the master page so that it will appear all the time when the content is loaded. On the header page it's image and ASPxmenu. Please advice. Thanks. Regards, Malini

Member Avatar
+0 forum 0

Hi there guys, I'm currently trying ti build a site and I cant seem to get the positioning of my page as I want it. Simply pu I want all the items centered instead of as they are (justified left). Here is the sauce: [CODE]<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <asp:ContentPlaceHolder id="head" runat="server"> </asp:ContentPlaceHolder> </head> <body bgcolor="#292929"> <form id="form1" runat="server"> <div style="left: 0px; width: 150px; position: absolute; top: 95px; height: 1000px;"> <asp:contentplaceholder id="ContentPlaceHolder1" runat="server"> </asp:contentplaceholder> </div> <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/thumbs-up.jpg" style="z-index: 1; left: 0px; top: 0px; position: …

Member Avatar
Member Avatar
+0 forum 1

Hi All I'm new to dot Net but I have developed a master page template. Within this, I want to add contentplaceholders. Within those contentplaceholders, I'd like to add commented out HTML or example HTML so that my interns can see directions (such as what class to add, what to put there, etc.). When I try to create a new page, however, and reference the master page, it ignores the content I've placed within the contentplaceholder from the master page. Is there any way to fix this? I can't be the only one with this problem (though I can't find …

Member Avatar
Member Avatar
+0 forum 4

I am currently working in an ASP.Net application where i need to implement ASP.Net Membership and Roles. I have used Login controls in my pages. Also I am using a menu in the master page, which is getting data bindings from database. For data bindings I am using XMLDatasource and a transform file (.xslt file). I need to bind the data to the Menu based on the user roles. My issue is that the generated Menu is not behaving consistently. Sometimes it will show the correct menu for a particular role and some times it will show previously loaded data. …

Member Avatar
+0 forum 0

I am creating a asp.net master page with a menu (asp:Menu) that is populated from a web.sitemap. My client wants the format of the page to meet his already existing html pages. I'm trying to manipulate the borders surrounding the menu items. So far, all I've found is the ability to manipulate the thickness and color of the borders. However, I need to hide, or eliminate the borders to the left and right, but keep the border in between the individual items. Thanks

Member Avatar
+0 forum 0

Hello again. Default.aspx [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class contact : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { State.Enabled = false; ShowCaptchaNums(); } protected void Country_SelectedIndexChanged(object sender, EventArgs e) { if (Country.Text == "United States") { State.Enabled = true; } else { State.Enabled = false; } } protected int GenerateFirstNum() { int firstNum; Random rand = new Random(); firstNum=rand.Next(4); return firstNum; } protected int GenerateSecondNum() { int secondNum; Random rand = new Random(); secondNum = rand.Next(5); return secondNum; } protected void ShowCaptchaNums() { lblFirstNum.Text = GenerateFirstNum().ToString(); lblSecondNum.Text = …

Member Avatar
+0 forum 0

Hi, I want to access a textbox in content page (contentplaceholder1) from a .JS file. From inline javascript i am to do so using [ICODE]document.getElementById('<%=TextBox1.ClientID%>')[/ICODE] But from .JS file this throws an error. Although here following does work.. [ICODE]document.getElementById('ctl00_ContentPlaceHolder1_TextBox1') [/ICODE] Is there anyway to make this dynamic so as to avoid hardcoding as above in the JS file? Thanks in advance.

Member Avatar
+0 forum 0

The End.