|
I don't see lblGrandTotal label in the DOM??
|
|
|
|
|
Your given HTML doesn't contains that label. So where you placed that label, inside the listview or outside?
Parwej Ahamad
|
|
|
|
|
I want to write some tracking information to a cookie. When the cookie reaches it's max size I want to overwrite the final value or 2.
How do I check the size of a cookie though.
|
|
|
|
|
I guess the logical solution is to read the cookie into a string and check the length of the string using the LEN() Function.
As long as you know waht the MAX permitted cookie size is, its simple to know if its at the maximum size.
|
|
|
|
|
Thanks for the advice.
What I've done is check for a little less than the max value though to allow for the other information (expiry etc) that is written with the cookie data.
|
|
|
|
|
Given that you know already the NAME and VALUE of the data to be written to the cookie,
Its not so difficult to check the length of the data (to be written) including the name and then subtract that from the maximum size allowable for the cookie and then you will know EXACTLY how space you have remaining (in the cookie) to work with.
|
|
|
|
|
Hello guys !
I have this CheckBoxList control and to each ListItem of it, have set the Text property to the img HTML tag so it displays an image.
I am trying to remove the tick/check box from the checkboxes of a ASP.NET CheckBoxList control when i click on each item.
My code does this. Every time i click on some check box, the **SelectedIndexChanged** event fires up and it does some saving of some data in my database. And when the saving is done and the page is refreshed i want to check/tick box of the checkbox item that was clicked not to be there anymore and the checkbox to be disabled cause i don't want the user to able able to click it again. I have tried to tried to set the Enable and Selected properties to False, and also add an attribute to the CheckboxList control, but without success. Here is my code.
<asp:CheckBoxList ID="Services" runat="server" RepeatColumns="5" CellPadding="10"
CellSpacing="15" RepeatLayout="Table"
Font-Size="Large" RepeatDirection="Vertical" TextAlign="Right"
AutoPostBack="true" EnableViewState="true">
<asp:ListItem Value="Facebook" Text="<img src='/ServiceIcons/facebook.png'
title='Facebook' />" />
<asp:ListItem Value="Googleplus" Text="<img src='/ServiceIcons/googleplus.png'
title='Google+' />" />
<asp:ListItem Value="LinkedIn" Text="<img src='/ServiceIcons/linkedin.png'
title='LinkedIn' />" />
<asp:ListItem Value="RSS" Text="<img src='/ServiceIcons/rss.png' title='RSS' />" />
<asp:ListItem Value="Skype" Text="<img src='/ServiceIcons/skype.png' title='Skype' />"
/>
</asp:CheckBoxList>
And in the code behind i do this:
Private Sub Services_SelectedIndexChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Services.SelectedIndexChanged
-----Storing to database code here------
Services.Items(Services.SelectedIndex).Enabled = False
Services.Items(Services.SelectedIndex).Attributes.Add("class",
"displayCheckBox")
Services.Items(Services.SelectedIndex).Selected = False
End Sub
And the css class here:
.displayCheckBox input{background:Green;}
After the the event does the storing in the databse, page refreshed the checkbox that was selected is disabled but it shows the tick/check box, and i don't want it to show it if is selected.
Any one has an idea. I have searched a lot, but it seems that the CheckBoxList control doesn't provide much costumizing options.
Thank you in advance !
|
|
|
|
|
I don't feel like reproducing the control, but did you try
Services.Items(Services.SelectedIndex).checked = False
|
|
|
|
|
We are in the process of developing an inventory tracking system and one part of this system is the automation of the Change of Location (COL) form. We have the database developed; we have the electronic form developed; we are now at a halt because we need this web service in order to move forward.
1We are in need of a web service to transmit information between Sharepoint and an Infopath form.
2.We will set up your web service as a data connection and work with the form through this connection
|
|
|
|
|
|
Hi,
My procedure return multiple result set. I need to assign it to generic list.
How can i work a generic list like dataset do?
I am using it in web service, so i avoid using dataset. I want the result in List<>
Thankyou
YPKI
|
|
|
|
|
How about returning a list of XmlDocuments.
Inside each node, you can store anything you want.
Maybe not the best idea, but it should work.
Good luck.
|
|
|
|
|
<dxpc:ASPxPopupControl ID="mdlFileDupCheck" runat="server" PopupHorizontalAlign="WindowCenter"
CloseAction="CloseButton" PopupVerticalAlign="WindowCenter" AllowDragging="True"
EnableAnimation="False" AutoUpdatePosition="true" EnableViewState="true" ShowHeader="false"
ClientInstanceName="mdlFileDupCheck" Modal="true" ShowPageScrollbarWhenModal="true" BackColor="#F3F3F3">
<ContentCollection>
<dxpc:PopupControlContentControl ID="PopupControlContentControl1" runat="server">
<dxp:ASPxPanel ID="Panel1" runat="server" CssClass="box nomargin">
<PanelCollection>
<dxp:PanelContent ID="PanelContent1" runat="server">
<asp:Panel runat="server" ID="pnlFileDupCheck" DefaultButton="btnFileDupCheck" Style="width: 825px;
display: ">
<asp:Button ID="btnFileDupCheck" runat="server" Style="display: none;" />
<dx:ASPxPageControl ID="pageControl" runat="server" ActiveTabIndex="0" Width="100%"
TabSpacing="9px" CssPostfix="myTheme" OnActiveTabChanged="pageControl1_ActiveTabChanged"
AutoPostBack="true">
<ClientSideEvents TabClick="function(s, e) {
var index=s.GetActiveTabIndex();
if(index==e.tab.index)
{
e.Cancel = true;
}
else
{
LoadingPanel.Show();
}
}" />
<TabPages>
<dx:TabPage Text="File Information" TabStyle-Width="135px">
<ContentCollection>
<dx:ContentControl ID="ContentControl4" runat="server">
<div class="withborder">
<div class="box nomargin">
<table cellpadding="0" cellspacing="0" style="width: 100%" border="0">
<tr>
<td class="cFormHeader">
<h3>
Enter File Information</h3>
</td>
<td class="required" align="right">
* Required
</td>
</tr>
</table>
<div class="hr">
</div>
<div class="cMessageArea">
<asp:Label ID="lblMdlErrorMsg" runat="server" CssClass="cError"></asp:Label>
</div>
<table class="cChildTable" width="100%">
<tr>
<td style="width: 10%">
<div class="required">
*<asp:Label ID="lblFile" runat="server" Text="File #:" CssClass="cLabel"></asp:Label>
</div>
</td>
<td style="width: 50%">
<asp:TextBox ID="txtFileNumber" runat="server" CssClass="cText" Width="150px" MaxLength="40"
TabIndex="1"></asp:TextBox>
</td>
<%----%>
</tr>
<tr>
<td style="width: 10%">
<div class="required">
*<asp:Label ID="lblOffice" runat="server" Text="Office:" Width="" CssClass="cLabel"></asp:Label></div>
</td>
<td style="width: 50%">
<asp:DropDownList ID="ddlOffice" runat="server" CssClass="cSelect" AutoPostBack="true"
TabIndex="6" OnSelectedIndexChanged="ddlOffice_SelectedIndexChanged" Width="380px"
onchange="LoadingPanel.Show();">
</asp:DropDownList>
</td>
<td style="width: 15%">
<div class="required">
*<asp:Label ID="lblUnderwriter" runat="server" Text="Underwriter:" Width=""
CssClass="cLabel"></asp:Label></div>
</td>
<td>
<asp:DropDownList ID="ddlUnderwriters" runat="server" CssClass="cSelect" OnSelectedIndexChanged="ddlUnderwriters_SelectedIndexChanged"
AutoPostBack="true" TabIndex="9" Width="150px" onchange="LoadingPanel.Show();">
</asp:DropDownList>
</td>
</tr>
<tr>
<td style="width: 10%">
<div class="required">
*<asp:Label ID="lblState" runat="server" Text="State:" Width="" CssClass="cLabel"></asp:Label></div>
</td>
<td style="width: 50%">
<asp:DropDownList ID="ddlJurisdictionStates" runat="server" CssClass="cSelect" TabIndex="7"
OnSelectedIndexChanged="ddlJurisdictionStates_SelectedIndexChanged" AutoPostBack="true"
onchange="LoadingPanel.Show();">
</asp:DropDownList>
</td>
<td style="width: 15%">
<div class="required">
*<asp:Label ID="lblAccount" runat="server" Text="Account #:" Width=""
CssClass="cLabel"></asp:Label></div>
</td>
<td>
<asp:DropDownList ID="ddlAccount" runat="server" CssClass="cSelect" TabIndex="10">
</asp:DropDownList>
</td>
</tr>
</table>
<div id="divDuplicateFiles" runat="server" visible="false">
<div class="Space">
</div>
<div class="cFormHeader">
<h3>
File # Validation</h3>
</div>
<div class="hr">
</div>
<div class="Space">
</div>
<div class="cMessageArea">
<asp:Label ID="lblDuplicateFileMsg" runat="server" CssClass="cError" Text="">
</asp:Label>
</div>
<div class="Space">
</div>
<div>
<dx:ASPxGridView ID="dgDuplicateFile" runat="server" AutoGenerateColumns="False"
EnableCallBacks="False" Visible="True" Width="100%" KeyFieldName="FileId" OnHtmlRowCreated="dgDuplicateFile_HtmlRowCreated"
OnBeforeColumnSortingGrouping="dgDuplicateFile_BeforeColumnSortingGrouping" OnPageIndexChanged="dgDuplicateFile_OnPageIndexChanged"
OnRowCommand="dgDuplicateFile_RowCommand">
<Columns>
<dx:GridViewDataTextColumn FieldName="FileId" Visible="False" VisibleIndex="0">
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn Caption="File #" FieldName="FileNumber" VisibleIndex="1">
<HeaderCaptionTemplate>
<div class="cGridHeaderLink" onmouseout="RemoveMouseOverClass(this)" onmouseover="addMouseOverClass(this)">
File #</div>
</HeaderCaptionTemplate>
</dx:GridViewDataTextColumn>
<dx:GridViewDataColumn Name="Office" Caption="Office" VisibleIndex="2" FieldName="Office"
CellStyle-HorizontalAlign="Left">
<HeaderCaptionTemplate>
<div class="cGridHeaderLink" onmouseover="addMouseOverClass(this)" onmouseout="RemoveMouseOverClass(this)">
Office</div>
</HeaderCaptionTemplate>
<DataItemTemplate>
<div>
<asp:Label ID="lblOfficeName" runat="server">
</asp:Label></div>
</DataItemTemplate>
</dx:GridViewDataColumn>
<dx:GridViewDataDateColumn Caption="Open Date" FieldName="OpenDate" VisibleIndex="3"
Settings-SortMode="Value" SortOrder="Descending" SortIndex="1">
<PropertiesDateEdit DisplayFormatString="MM/dd/yyyy" EditFormat="Custom" EditFormatString="MM/dd/yyyy"
UseMaskBehavior="true">
</PropertiesDateEdit>
<HeaderCaptionTemplate>
<div class="cGridHeaderLink" onmouseout="RemoveMouseOverClass(this)" onmouseover="addMouseOverClass(this)">
Open Date</div>
</HeaderCaptionTemplate>
</dx:GridViewDataDateColumn>
<dx:GridViewDataTextColumn Caption="Address" FieldName="FullAddress" VisibleIndex="4">
<HeaderCaptionTemplate>
<div class="cGridHeaderLink" onmouseout="RemoveMouseOverClass(this)" onmouseover="addMouseOverClass(this)">
Address</div>
</HeaderCaptionTemplate>
</dx:GridViewDataTextColumn>
<dx:GridViewDataColumn Name="ProductDesc" Caption="Buyer/Seller" VisibleIndex="5"
FieldName="Buyer" CellStyle-HorizontalAlign="Left">
<HeaderCaptionTemplate>
<div class="cGridHeaderLink" onmouseover="addMouseOverClass(this)" onmouseout="RemoveMouseOverClass(this)">
Buyer/Seller</div>
</HeaderCaptionTemplate>
<DataItemTemplate>
<div>
<asp:Label ID="lblBuyerSeller" runat="server">
</asp:Label></div>
</DataItemTemplate>
</dx:GridViewDataColumn>
<dx:GridViewDataColumn VisibleIndex="6" Caption="Action">
<HeaderCaptionTemplate>
<div class="cGridHeaderStyle">
Action</div>
</HeaderCaptionTemplate>
<DataItemTemplate>
<div class="cLinkButton">
<asp:LinkButton ID="lblFileOpen" runat="server" Text="Open" CommandArgument="Open"
CommandName="Open" />
</div>
</DataItemTemplate>
<Settings AllowSort="False" />
</dx:GridViewDataColumn>
<dx:GridViewDataTextColumn FieldName="FirmLocationId" Visible="False" VisibleIndex="7">
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn FieldName="FileExists" Visible="False" VisibleIndex="8"
SortOrder="Descending" SortIndex="0">
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn FieldName="FirmLocationJurisdictionID" Visible="False"
VisibleIndex="9">
</dx:GridViewDataTextColumn>
</Columns>
<Styles Header-CssClass="dxgvHeader" HeaderPanel-Cursor="hand">
<RowHotTrack BackColor="#DAE0E6">
</RowHotTrack>
<Header CssClass="dxgvHeader">
</Header>
<Cell>
<BorderRight BorderStyle="None" />
</Cell>
<HeaderPanel Cursor="hand">
</HeaderPanel>
</Styles>
<SettingsPager AllButton-Visible="true" FirstPageButton-Visible="true" LastPageButton-Visible="true"
PageSize="10" Position="Top" ShowDefaultImages="true">
<AllButton Visible="True">
</AllButton>
<FirstPageButton Visible="True">
</FirstPageButton>
<LastPageButton Visible="True">
</LastPageButton>
</SettingsPager>
<SettingsDetail IsDetailGrid="True" />
<SettingsBehavior AllowSort="true" EnableRowHotTrack="true" ProcessSelectionChangedOnServer="True"
SortMode="Custom" />
<Styles Cell-BorderRight-BorderStyle="None">
<RowHotTrack BackColor="#dae0e6">
</RowHotTrack>
</Styles>
<SettingsLoadingPanel Text="Loading,Please wait..." />
</dx:ASPxGridView>
</div>
</div>
</div>
<div class="buttons">
<span id="span3" class="cBtnLeft"><span class="cBtnRight">
<asp:Button ID="btnDupCheck" runat="server" OnClientClick="LoadingPanel.Show();"
OnClick="btnDupCheck_Click" Text="Next" CssClass="cBtnRight" Width="60px" TabIndex="11" />
</span></span><span id="span4" class="cBtnLeft"><span
class="cBtnRight">
<asp:Button ID="btnCncl" runat="server" Text="Cancel" OnClick="btnCncl_OnClick" OnClientClick="LoadingPanel.Show();"
CssClass="cBtnRight" Width="60px" TabIndex="12" />
</span></span>
<input type="hidden" id="hidtxtFileNumber" runat="server" />
<input type="hidden" id="hidtxtOfficeId" runat="server" />
<input type="hidden" id="hidtxtStateId" runat="server" />
<input type="hidden" id="hidtxtPropertyType" runat="server" />
</div>
</div>
</dx:ContentControl>
</ContentCollection>
</dx:TabPage>
<dx:TabPage Text="Property Information" TabStyle-Width="140px">
<ContentCollection>
<dx:ContentControl ID="ContentControl5" runat="server">
<table border="0" width="100%">
<tr>
<td style="height: 90%">
<uc1:findAddress ID="ctlFindAddress" runat="server"></uc1:findAddress>
</td>
</tr>
</table>
</dx:ContentControl>
</ContentCollection>
</dx:TabPage>
</TabPages>
</dx:ASPxPageControl>
</asp:Panel>
</dxp:PanelContent>
</PanelCollection>
</dxp:ASPxPanel>
</dxpc:PopupControlContentControl>
</ContentCollection>
</dxpc:ASPxPopupControl>
|
|
|
|
|
You have to wrap your control in a panel, and set the panels default button to the button you want to press enter on. Use the buttons ID value, and not the name you gave it.
Dim panel_Container as Panel
With panel_Container
.ID = "_panel_Container"
.DefaultButton = "bt_Submit"
|
|
|
|
|
Hi
i want to develop application like hootsuite . com
Schedule the FaceBook wall using ASP.Net
now i am geting this error
my new facebook code is : AQCk3-RCylaaLxWxl9HInFJYAP0Cm-v0nXjWhwEI9cswEMXuKvibzJWYb6tlSqPlFYbpYapEiP0t1Sir6f2A76QR67LcVNXOSq-cfTEW-56HXNIJUFkvJsjnLU-Brs_x6YtAnEs3H6bBOjGwq8zCWhkMbXK8I6kag6HPqU406DzenPZx3QyYJzUjFrl9_zbJrLK7qv4CsifWrtL19oKQaIDU#_=_
so, my url like https:
but , still i get error like
{
"error": {
"message": "Malformed access token AQCk3-RCylaaLxWxl9HInFJYAP0Cm-v0nXjWhwEI9cswEMXuKvibzJWYb6tlSqPlFYbpYapEiP0t1Sir6f2A76QR67LcVNXOSq-cfTEW-56HXNIJUFkvJsjnLU-Brs_x6YtAnEs3H6bBOjGwq8zCWhkMbXK8I6kag6HPqU406DzenPZx3QyYJzUjFrl9_zbJrLK7qv4CsifWrtL19oKQaIDU",
"type": "OAuthException",
"code": 190
}
}
modified 21-Nov-12 4:14am.
|
|
|
|
|
Hello
Can you give me a "Code" & redirect url which is return while we doing facebook login
let me know if any query
Thanks
Gaurav Dhol
|
|
|
|
|
this is newly generated code
AQAEjc8fhCUXpniD47XhRQosJBc8RtvzumNsm10b_bdpG26XblRKZ76voic8G5Nqia5lGzcPJItJo-7nIKIQ6-zdW_jmMNAoHF82XthVeSiHzbuKavGJwFz8m0N9TBgU6tRvbQPILkvsYpCUiUg7mS4YcmMRhwZbD8NeeQbl9D3SPTfEsxj9NkQSmpT-yhq1DxFbcBW9N8MX8Y8tXaKJ74dv
is this code are you looking for this?
also old code is here
AQCk3-RCylaaLxWxl9HInFJYAP0Cm-v0nXjWhwEI9cswEMXuKvibzJWYb6tlSqPlFYbpYapEiP0t1Sir6f2A76QR67LcVNXOSq-cfTEW-56HXNIJUFkvJsjnLU-Brs_x6YtAnEs3H6bBOjGwq8zCWhkMbXK8I6kag6HPqU406DzenPZx3QyYJzUjFrl9_zbJrLK7qv4CsifWrtL19oKQaIDU#_=_
application url : [^]
modified 21-Nov-12 4:40am.
|
|
|
|
|
Just a guess, but you need to URL-encode your access token.
Your token ends with IDU#_=_ , and the error message reports that it ends with IDU . This is because # is not valid in a query-string. Your URL should end with IDU%23_%3d_ instead.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I use VS2010. When I try to add WCF service to my project and rebuild the solution, I receive COMPILATION error
"object reference not set to an instance of an object"
Without WCF service everything looks fine.
|
|
|
|
|
AnnLogan wrote: When I try to add WCF service to my project and rebuild the solution
What do you mean by that? Are WCF file? Project? Service reference?
No more Mister Nice Guy... >: |
|
|
|
|
|
I am adding WCF service with Visual Studio Wizard:
add new item -> WCF Service.
It creates 3 files -
2 in App_Code - Service1.cs and IService1.cs
1 in root - Service1.svc
|
|
|
|
|
Well you need to explain (and show) the code where this message is generated. We cannot see your screen, or guess what the code looks like.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Then you must be doing something to that pure service before compilation and after add it to solution.
Or you have compilation service in entirely different place.
That what I can say without more info.
No more Mister Nice Guy... >: |
|
|
|
|
|
Hi All,
When i am hitting Enter key after focused to a button with tab key , nothing is happening , but when i am hitting spacebar ,it is working (in Firefox) . What will be the issue . Please help
Thanks
Rks
|
|
|
|
|
You should ask this question to folks at Mozilla or at least add some code or link to demo AND version of browser.
No more Mister Nice Guy... >: |
|
|
|
|