w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
getting title field from the process array in the webform
You should try this, echo $form[#node]->title; var_dump($form[#node]);// to test it your node data As from your array Array ( [#attached] => Array ([css] => Array ( [0] => sites/all/modules/webform/css/webform.css ) [js] => Array ( [0] => sites/all/modules/webform/js/webform.js )) [#process] => Array ( [0] => webform_client_form_includes ) [#node] => stdClass Object ( [vid] => 22 [uid] => 2 [title] => title of this webform goes here!!! [log] => [status] => 1 [comment] => 1 [promote] => 1 [sticky] => 0 [nid] => 22 [type] => webform [language] => en [created] => 1373585579 [changed] => 1374117294 [tnid] => 0 [translate] => 0 [revision_timestamp] => 1374117294 [revision_uid] => 8 [body] =>

Categories : PHP

How to select an option from a dropdown list in one webform and view the result in a gridview in another webform?
You can just store the selected item text in onw variable, like the below: dim selText as string = DropDownList1.SelectedItem.Text and on the click of submit button, perform your required tasks and then redirect page to another page along with the department name. Like the below code: Response.Redirect("Page2.aspx?department=" + selText) and on the second page i.e. Page2.aspx, just receive this value in query string, using below code.. wherever it is necessary either on page load or at your required place. If Request.QueryString("department") <> Nothing Then dim departmt as string = Request.QueryString("department") End If And use the above variable's value in your database query and get the related data to the department selected in the previous form. I hope it will h

Categories : Asp Net

Hide Panel on Child MasterPage Inside MasterPage ContentPlaceHolder using Child Content Page
I think you have type cast the Content control into ContentPlaceHolder control in your first approach. I believe the code should be like below: Content cpHolder = this.Master.FindControl("Content7") as Content; Hope this will help !!

Categories : C#

slidify layouts: title-only, title-and-body, title-and-two-cols, title caption, and blank
Slide layouts are mustache templates that can make use of objects returned by the parser. You can find a list of objects returned by the parser here. Coming to the question raised, here is how one would go about building the layouts for the slides. Title Only <slide class="segue nobackground {{ slide.class }}" id="{{ slide.id }}"> <hgroup> {{{ slide.header }}} </hgroup> </slide> The two column layout inherits from the parent layout, and the column widths are configurable. Two Columns --- layout: slide replace: slide.content --- {{{ slide.content }}} <div class='left' style='float:left;width:{{{ slide.left.w }}}'> {{{ slide.left.html }}} </div> <div class='right' style='float:right;width:{{{ slide.right.w }}}'> {{{ slide.right

Categories : R

Iframe, MasterPage C#
Yeah, I wouldn't use iframes in that context. At one point they were used to give the impression of something akin to Ajax, but you'll really only find them used these days for embedding videos, audio, etc. from other sites (e.g. YouTube, Soundcloud). Master pages should suffice - you'll have a master page with the menu itself, and any menu selection will load an entirely different page, albeit with the same menu provided by the master page. If you're looking to provide navigation without an entire page refresh, then you're getting into the realm of SPAs (single page applications), which will require the use of Ajax.

Categories : C#

Using MasterPage disadvantages
I don't think we should check session for user login manually in code. ASP.NET provides us with Forms Authentication which already does that for us. Authentication is another concern that should not be mixed with page logic (separation of concerns)

Categories : Asp Net

The MasterPage's behind code is not called
Use Label if you want to see respective HTML markup on your page. Literal control is different from Label control. As there is not Text assigned to your Literal control, you don't see any thing on the page there. Literal control simply emits static text. Unlike Label, this cannot be styled. This is a light weight control.

Categories : C#

Display XDocument on a MasterPage
Maybe you can use the Literal control and set its content to the content of your outputDoc XDocument Code for .aspx page <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!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>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <asp:Literal ID="Literal1" runat="server" /> <asp:Literal ID="Literal2" runat="server" /> <asp:Literal ID="Literal3" runat="server" /> </div> </form> </body> </html&g

Categories : C#

Looping through controls on a page using a masterpage
To access the controls in your child page do the following steps: 1-declare a variable of the type you want to access. For example if you want to access a Label in your child page use: Label lbl_child=this.ContentPlaceHolder1.findcontrol("your label id in child page") as Label; Now you have your label and you are free to make changes on it. Every change on this control will be reflected on the child control. ContentPlaceHolder1 is your contentplace holder id so change it with your content id.

Categories : C#

jquery fadeIn fails with asp masterpage
The button is probably causing a postback, try preventing the default action like this: function switchForm(event) { event.preventDefault(); $("#div1").fadeIn(); $("#div2").fadeIn("slow"); $("#div3").fadeIn(3000); }; And your handler, add event as a parameter: onclick="switchForm(event)"

Categories : Jquery

AjaxControlToolkit does not work for pages using MasterPage
no bug, just bad advice from another forum. The following lines were the culprit - either one messes up things: <asp:ScriptReference Assembly="AjaxControlToolkit" Name="ExtenderBase.BaseScripts.js" /> <asp:ScriptReference Assembly="AjaxControlToolkit" Name="Common.Common.js" />

Categories : Ajax

Add css template in other than index.html(masterpage) in asp.net
if you link same master page to another blank page say - Default.aspx then it will automatically use css apply in master page read master page related tutorial here http://www.asp.net/web-forms/tutorials/master-pages

Categories : Asp Net

can I change masterpage's css for an especific aspx?
Sure you can, make sure to load another .css file with the changes that you want. ( It has to be loaded after the .css file for the masterpage) Basically, you are overriding the css rules in your first .css file for example masterpage.css #someid{ background-color:Orange; } specificstyle.css #someid{ background-color:White; } So you should only add changes to specificstyle.css. Masterpage <link id="Link1" runat="server" href="~/Styles/masterPage.css" rel="stylesheet" type="text/css" /> Page.aspx <link runat="server" href="~/Styles/specificstyle.css" rel="stylesheet" type="text/css" /> Note: if the styles are not being overridden, then use the !important keyword in the css #someid{ background-color:White !important; }

Categories : HTML

Call Ajax from MasterPage with WebService
Your ListaCategoriasMethod() is a static web method, and those don't work in a web service. Check this Stackoverflow question Why are Static Methods not Usable as Web Service Operations in ASMX Web Services? for more details.

Categories : C#

Apply masterPage to SearchCenter on Subsite
You get to profit from my pain Tito... If you try to use the default OOTB teamsite-like masterpage (default.master) on a search template, you get all types of errors. You need to base your custom masterpage off out minimal.master. Try not to modify the original minimal.master. Make a copy of minimal.master, then add your custom HTML, JS, CSS and SharePoint placeholders to the copy. Afterwards, goto Site Settings, and set your custom minimal.master copy as the custom masterpage for the search center.

Categories : Sharepoint

  • active masterpage jQuery not working
  • Check you havve added jQuery successfully and bind the event in document.ready event. you code seems to work. You also missed the closing quotes here class="navtop Adding jQuery <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script> Putting code in document.ready Live Demo $(document).ready(function(){ $("li").click(function (event) { event.preventDefault(); if ($("li").hasClass('active')) { $("li").removeClass('active'); } $(this).addClass('active'); }); });

    Categories : Javascript

    c# Accessing MasterPage elements from Child Page
    I think this is what you need. http://www.aspdotnet-suresh.com/2012/06/access-master-page-control-from-content.html

    Categories : C#

    My Masterpage uses a viewmodel that all my other models inherit from, how to simplify this?
    You can create a decorator function for the Controller.View function, that would initialize the session for you. Something like - internal ActionResult ExtendedView(object model) { Session = this.GetSession(); return View(model); } Then, instead of using the return View(model), use return ExtendedView(model).

    Categories : C#

    How to highlight active page in a masterpage menu?
    There are many ways to do this. There are some easy and some ugly hacky ones: Solution 1: Use a Menu Control. The standard .NET Menu Control has an easy solution to do this. This is the cleanest and fastest solution in my opinion. Have a look at this post. Maby it'll help you if you choose this solution. Solution 2: You coud use some sort of javascript to highlight the current item. jQuery would make that easier if you dont want to write everything by yourself. For this solution have a look at this page. It's outdated but still effective. Solution 3: This is kinda ugly solution and you can do that in many different ways: You could change the <a> elements to HyperLink controls and set some sort of session or cookie when you click on them. When set you could change the style based o

    Categories : HTML

    dynamically apply title of html document into the title fields of images
    var title = document.title; $('.sth').attr('title',title); Edit, but I don't really see the point of doing this. The title of the site has little to do with the images, if it's added to all of them, what is the point anyways?

    Categories : PHP

    Javascript Slider title replace html for title just working on 1st item
    I found a couple of issues with your script, but first you have invalid markup in your page since you have multiple <div> elements with the same ids of tbtit and tbdescp. Id attributes should be unique in a HTML page so should change those to classes instead. Now in your script you need to change the part where you retrieve the values of the title and the description of the image that is hovered to reference the sibling elements: //THIS var tbtit = $("#tbtit").html(); var tbdesc = $("#tbdescp").html(); //SHOULD NOW BE THIS var tbtit = $(this).siblings('.tbtit').text(); var tbdesc = $(this).siblings('.tbdescp').text(); Finally when you update the text for your main image you want to set the content for your <h4> and <p> tags and not replace them completely, so use .t

    Categories : Javascript

    (javascript / google scripts) How to get the title of a page encoded with iso-8859-1 so that the title will display correctly in my utf-8 website?
    Where are you displaying the content is more important. If you are writing it to a spreadsheet, then you have to change the settings of the spreadsheet to the correct language (French). In addition, you can use the advanced parameters to specify what charset the original content is in. For example, var result = UrlFetchApp.fetch( url , {contentType : 'text/html; charset=utf-8'}); var wholePage = result.getContentText(); var scrap = wholePage.match( /<title>(.*?)</title>/ ); var title = scrap[1];

    Categories : Javascript

    Responsive menu with title: have a resizing title that takes up all available space
    Unfortunately, this is not possible with CSS only — not if you want to work with IE8. You have to calculate the available space to fill the divs within, and the calc()'s function just work on modern browsers. I created two topics to search a responsive solution to percentage containers, and the results are here and here. The JavaScript's final solution is this: /** Centralize the main container **/ function calculateMainContainerWidth() { $realWidth = $(".main-container").width() - $(".right").outerWidth(), $containerContent = $(".left"); $containerContent.css("width", $realWidth); }; $(window).on("resize", function() { calculateMainContainerWidth(); }); calculateMainContainerWidth(); Also available in FiddleJS. I hope it helps.

    Categories : Jquery

    How to replace the jQuery library set in the MasterPage, from a Content Page?
    On your Master Page, add a ContentPlaceHolder to wrap the jQuery library script: <asp:ContentPlaceHolder ID="jqContentPlaceHolder" runat="server"> <script type="text/javascript" src="js/jquery-1.6.2.min.js"></script> </asp:ContentPlaceHolder> On every single Content Page that uses the default library, you just ignore the ContentPlaceHolder - by not putting it on the page, because if it's there and it's empty, you'll have no jQuery library whatsoever. For the page you need a different library, just do this: <!-- This will replace the default contents set on the Master Page --> <asp:Content ID="Content1" ContentPlaceHolderID="jqContentPlaceHolder" runat="server"> <script type="text/javascript" src="js/jquery-1.5.2.min.js"></script>

    Categories : C#

    Page call its masterpage's properties and public methods
    Page.Master refers to the current page's MasterPage. You can cast this to the relevant type and access the property that way. In the master page: <%@ Master Language="C#" ClassName="MasterExample" %> <script runat="server"> public string SiteName { get { return "My Site Name"; } } </script> Then, in the page: protected void Page_Load(object sender, EventArgs e) { MasterExample m = (MasterExample)Page.Master; mylabel.Text = m.SiteName; } See the bottom of http://msdn.microsoft.com/en-us/library/system.web.ui.masterpage(v=vs.110).aspx.

    Categories : Asp Net

    Using CsQuery in MasterPage code-behind to modify HTML output?
    There is an example in the CsQuery project that shows how to do this (which I just made sure was working right!) in the CsQuery.WebFormsApp project. The core of the usage looks like this. You must override the Render method in a class that inherits Page, and use this instead of Page as the base class for the codebehind in an aspx page: public class CsQueryPage: System.Web.UI.Page { public CQ Doc { get; protected set; } protected override void Render(System.Web.UI.HtmlTextWriter writer) { // most of the work is done for you with the // `CsQuery.WebForms.CreateFromRender` method var csqContext = WebForms.CreateFromRender(this, base.Render, writer); // if you are using update panels, this lets you also manipulate that // HTML, otherwis

    Categories : Asp Net

    Redirecting to a page in MasterPage when Authenticaion Fails not working
    Since your AuthenticationFailure page is using the masterpage that redirects if the user is not authenticated, the page will never be displayed, since it will redirect before it reaches the page. Either handle this in code in your master page, or don't use the master page for your authenticationfailure page. You can check the path that is requested using the Request.FilePath variable, and avoid redirection if it's already at the AuthenticationFailure page. if(!IsPostBack) { const string FailurePage = "AuthenticationFailure.aspx"; string page = Request.FilePath.Substring(Request.FilePath.LastIndexOf('/')); if(Session["UserDetails"] == null && page != FailurePage) { Response.Redirect(FailurePage); } }

    Categories : C#

    View Pager Title Strip to show one title Only
    get pagerTitleStripe (pagerTitleStripe=(PagerTitleStrip) findViewById(R.id.pager_title_strip);) set alpha to 0 in secondary views (pagerTitleStripe.setNonPrimaryAlpha(0);) y listo!

    Categories : Android

    Handle Click Event Masterpage Control on content Page
    Instead of testlinkbutton.Click += New EventHandler(AddressOf LinkButton1_Click) you may try AddHandler testlinkbutton.Click, AddressOf LinkButton1_Click See How to: Add an Event Handler Using Code

    Categories : Asp Net

    Change label in masterpage from content page on button click
    Use a Session to keep track of your authentication result. Since you don't have the class name in your sample code, lets assume its AuthenticationResult. In your login page, do the authentication, then set a session variable that the MasterPage can read: protected void Login_Click(object sender, EventArgs e) { var result = Utilities.AuthenticateUser(txtUserName.Text, txtPassword.Text); if (result.Authenticated) { Session["AuthenticationResult"] = result; FormsAuthentication.RedirectFromLoginPage(result.Username, false); } } In your MasterPage's Page_Load, have it check the Session variable and set the Label text: public partial class DDC : System.Web.UI.MasterPage { public string lblLogin_Text { get { return lblLogin.Text; } set

    Categories : C#

    Asp.net webform to pdf
    itextsharp is free to use for non-commercial development, but if you use for commercial development then you either need to obtain a license or make your code available under the GPL license. Here are some alternatives to itextsharp: PDFSharp is a free option, however its latest release is from 2009. There is an open-source version of PDFjet. PDF Clown

    Categories : C#

    Difference between window.title and document.title
    The window object doesn't have a title property. http://www.w3schools.com/jsref/obj_window.asp Hope this helps! Cheers, LC

    Categories : Javascript

    Page Title and Site Title Configuration DNN 7
    The default behavior is automatic if you leave the "Page Title" setting blank within the settings for the individual page. To accomplish what you desire you will need to customize the settings on a page-by-page basis.

    Categories : Asp Net

    Get the URI of a specific webform
    This should work for what you need: string url = Request.Url.Scheme + System.Uri.SchemeDelimiter + Request.Url.Host + (Request.Url.IsDefaultPort ? "" : ":" + Request.Url.Port) + ResolveUrl("~/ContactMe.aspx"); In my case it returns: http://localhost:3165/WebSite88/ContactMe.aspx

    Categories : C#

    how to get js POST in asp.net webform?
    Thanks for the tips in the comments. After much perusal of the internet and hair pulling, I walked away for a bit and came back with this solution. Made the button just a standard html input (not the asp:Button) Got the posted back information that was being sent via the JavaScript in the Page_Load event like so Code Behind: protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { StripeConfiguration.SetApiKey("[API Secret Key"); NameValueCollection nvc = Request.Form; string amount = nvc["amount"]; var centsArray = amount.Split('.'); int dollarsInCents = Convert.ToInt32(centsArray[0]) * 100; int remainingCents = Convert.ToInt32(centsArray[1]); string tokenId = nvc["stripeToken"]; var tokenServic

    Categories : C#

    WebForm's Gridview in MVC4?
    Check out jQuery DataTables. There is an actively developed ASP.NET MVC Helper for jQuery DataTables.

    Categories : C#

    Refresh Dropdownlist in webform
    DataSourceID isn't enough. Its not a "must" property. The property you need is DataSource. At server side, create an object that contains the data you want to add and do ddlNewJobOrder.DataSource = dataObject; ddlNewJobOrder.DataBind();

    Categories : C#

    Cant get DataValueField with AutoCompleteBox WebForm
    From the RadControls for ASP.NET AJAX Documentation, it looks like you need to handle the EntryAdded event, like this: protected void RadAutoCompleteBox1_EntryAdded(object sender, AutoCompleteEntryEventArgs e) { // Label1 is made up here just for example's sake // e.Entry.Text will give you the name selected // e.Entry.Value will give you the ID selected Label1.Text = e.Entry.Value + " was added."; }

    Categories : C#

    fill out drupal webform automatically
    You can use drupal_form_submit() to submit a webform. See this answer over at drupal.stackexchange.com for instructions. When you've got that working, it should just be a matter of looping over the webforms you want to fill in.

    Categories : PHP

    How post a value on a webform using HttpPost in android app
    You can refer this - > http://www.vogella.com/articles/ApacheHttpClient/article.html#example_post It will take you through http get & post requests.

    Categories : Android



    © Copyright 2017 w3hello.com Publishing Limited. All rights reserved.