I'm trimming the dealer to enter the repeater to hide the button based on the status column, but that data Iteem.dealstatus comparison is having trouble obtaining
Check here for what I code
protected mine myrepeater_ItemCreated (Object Sender, RepeaterItemEventArgs e) {if (e Item.DataItem.DealStatus = is in = "Pending Sale") {e.item.FindControl ("LinksDownloads"). Visible = false; } If (E.Eight.Detitam.Delstats == "quote") (EITMFundControl ("link downloads)" visible = false; E.Item.FindControl ("LinkPurchase") .Visible = false ;}}
< P> And here is my repeater code
& lt; ASP: repeater id = "SearchRepeater" runat = "server" OnItemCreated = "myrepeater_ItemCreated"> gt; ItemTemplate & gt; LT; tr & gt; td class = "sorting_1" & gt; ASP: linkbutton runat = "server" command agreement = '& lt;% # Eval ("DealId")% & gt;' onclic = ' OnClCl "" "& gt; & lt;% # Eval (" Full Name ")%> gt; & lt;% # Eval ("model")% & gt; & lt; / td & Gt; & lt; td class = "" & gt; & lt;% # Eval ("Win")%> & lt; td class = "" & gt; & lt; % # Eval ("Dt")%> gt; & lt; / td & gt; & lt; td class = "" & gt; & Lt;% # Eval ("DelSTatus")% & gt; & Lt; / Td> & Lt; Td square = "" & gt; & Lt; Asp: LinkButton id = "PlanButton" CommandErment = '& lt;% # Eval ("DealID")% & gt; Class = "btn btn-default btn-xs btn-block scheme" runat = "server" onclick = "linkPlan_OnClickkPlan_OnClick" & gt; Plan & lt; / ASP: LinkButton & gt; & Lt; ASP: LinkButton ID = "LinkPurchase" class = "btn btn-default btn-xs btn-block purchase" runat = "server" & gt; Purchase & lt; / ASP: LinkButton & gt; & Lt; / TD & gt; & Lt; Td square = "" & gt; & Lt; ASP: LinkButton ID = "LinkDownloads" class = "btn btn-default btn-xs btn-block download" runat = "server" & gt; Download & lt; / ASP: LinkButton & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; / ItemTemplate & gt; & Lt; / ASP: Repeater & gt; Here is the answer object DI = E. ITEM Datatoms; String position = databender.value (DI, "DelStatus"). Toasting (); Use a lable instead. Inside the Repeater & lt; ASP: Labels ID = "DealStatus_Lbl" runat = "Server" text = '& lt;% # Eval ("DealStatus")% & gt; / & Gt; Code being labeled lblA = (label) e.Item.FindControl ("DealStatus_Lbl"); If (lbla.Text ==) {}
Popular posts from this blog
I have a little code here. Could you please tell me what this code really does? please. Here in the AJAX call: $ .ajax ({url: "{% url} upload_document '%}", type: "POST", data : {Csrfmiddletoken: document.getElementsByName ('csrfmiddletoken') [0] Price, Title: document.getElementById ('title'). Value, // document: document: document.getElementById ('document'),}, datatype: "Jason", success: function (feedback) {if (feedback == "true") {// success} other {// attachment errors}}}); How AJAX works in the Django and how we can see the AJAX request. Here is the idea of my thoughts def upload_document (requested): Print request. POTT print request FILES if request.is_ajax (): If request.method == 'POST': form = UploadForm (request.POST, request.FILES, user = request.user) if form.is_valid (): Form.save () return HTTPPCS (SimpleJason Dumps ('True'), Mime Type = 'App / Jason') Other:...
I have the following ControlTemplate that is the same for all my custom controls. & amp; the lift; ControlTemplate x: key = "PssFunctionControlBaseHorizontal" TargetType = "Local: PssFunctionControlBase" & gt; & Lt; Grid & gt; & Lt; Threshold Threshold = "1" & gt; & Lt; Content Control X: Name = "Inner Content" Template = "{Static Resources Inner Contentbase Horizontal}" /> & Lt; / Border & gt; & Lt; Control x: name = "PART_ResizeDecorator" visibility = "short" template = "{static resource resize deccurratematet}" /> & Lt; / Grid & gt; & Lt; ControlTemplate.Triggers & gt; & Lt; Data Trigger Value = "True" Binding = "{Binding Editing Moded, Relative Soros = {ResolveSource Search Engineer, Instant Type = {x: Type Local: PssViewLayoutControl}}}" & gt; & Lt; Setter target name = "PART_ResizeDecorator" ...
I have 31 topics (S1, S2, S3, S4, etc.) 3 images in each topic, opposite 1 IMG, Contrast 2 IMG and Contrast 3 Are IMG I p In a NX1 cell named P, I would like to use a loop to get all the paths of contrasts from all the subjects: data / S1 / contrast1.img / S1 / contrast2.img data / S1 / contrast3.img data / s2 / contrast1.img data / S2 / contrast2.img Data / S2 / contrast3.img ... Data / S31 / contast3.img This is what I've tried: A = {'S1', 'S2', 'S3', ..., 'S31'}; % All topics C = {'contrast1.img', 'contrast2.img', 'contrast3.img'}; For each = P = cell (31 * 3,1) for each topic, the required contrast images: Length = A for Jammu = 1: Length (C) P {j} = spm_select ('FPList', Fullfile (data_path, q {i}) sprint ('% s', cell2mat (c))); % Of each topic is to select three contrast images, it works in my script, it is probably not 100% correct, because I had to simplify this example. End of ...
|
Comments
Post a Comment