Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all 11571 articles
Browse latest View live

Join DataTables to SharePoint List

$
0
0

Dear All, 
Does Anyone can show me how to join DataTables (from https://www.datatables.net/) to SharePoint 2010 List? I am not good with JavaScript. 

I have Sharepoint List with 5 Column) 

Best

Lasantha


Showing filter icon on a column in list view

$
0
0

Hi All,

I have a list view webpart on a page and I want to show a filter icon only on Month Column, how can this be done ?

Get count Using SPService

$
0
0

Hi All,

My list is as follows :

Application name Month Test cases
A Jan 100
B Feb 200
A Jan 300
       

I want to find total test cases for Application A in Jan and so on, there are different instances(as in list items) of data and display it in HTML data 

So I already know how to use SPServices but I dont know how to write a loop with SPServices to get data for each unique month.

meaning Application A, Month Jan, count | Application A, month Feb,count and so on 

need to get data for each month for each application and need to add loop 

please guide.

interact with List through web part code behind

$
0
0

Hi ,

i have to develop a web part in which i have to construct a list of images dinamically. Every image will have a link to another page .

The source of this configuration will be stored in a Sharepoint list (eg. image link, list of parameters to pass etc etc).

It is possible to interact with this list by page code behind?

If yes, anyone have a sample code? 

Thanks a lot!


Bulk Undeclare documents as Records in Records Center

$
0
0

I need to undeclare everything in the Records Library (Records Center Site) as not a record, so I can delete all documents in the library.  Is there a way to do this all at once (bulk)?  This is a SharePoint 2010 Online site, so cannot use SharePoint Object Model code.  Would need to be client side.  The code snippet below works in an on-prem environment.  Note, Microsoft.Office.RecordsManagement.RecordsRepository is in Microsoft.Office.Policy dll. Does anyone know if there is an equivelant in client side libraries? 

Or is there another way to delete all documents in a Records Library effciently/quickly?


using (SPSite siteCollection = new SPSite(site))
using (SPWeb web = siteCollection.OpenWeb())
{
SPList list = web.Lists[libraryName];
foreach (SPListItem item in list.Items)
{
if (Microsoft.Office.RecordsManagement.RecordsRepository.Records.IsRecord(item))
        Microsoft.Office.RecordsManagement.RecordsRepository.Records.UndeclareItemAsRecord(item);
}


0x80070057 on web.GetListItem(url);

$
0
0

Hi all,

For one of our customers I have a customization in which I have to determine if the page with a certain URL is published or not. To do this I run the following code with elevated priveledges:

                using (SPSite site = new SPSite(url))
                {
                    using (SPWeb web = site.OpenWeb())
                    {
                        PublishingWeb publishingWeb = PublishingWeb.GetPublishingWeb(web);
                        if (publishingWeb != null)
                        {
                            try
                            {
                                SPListItem item = web.GetListItem(url);
                                isPagePublished = item.HasPublishedVersion;
                            }
                            catch (Exception ex)
                            {
                                LogMessage("IsPagePublished: fout: " + ex.Message);
                            }
                        }
                    }
                }

When I run this code on my development environment and on my test environment it works as expected and no errors occur. But when the customer installs it in their test environment an exception is caught, the exception message is: <nativehr>0x80070057</nativehr><nativestack></nativestack>

I have no clue why the exception occurs and how I can prevent it. Any hint would be welcome!

Thanks in advance!

Henk

SP2010 - Workflow Transaction Timeout Error

$
0
0

hi there,

I know this has been analyzed in various blogs and forums, but I still haven't found any valid solution for this. Let me get more specific: Very often (at least 9-10 times day) we are getting workflows terminated, due to the following error in the logs:

OWSTIMER.EXE (0x14E8): Error in persisting workflow: System.Transactions.TransactionAbortedException:The transaction has aborted. ---> System.TimeoutException: Transaction Timeout

We have increased event throttling and transaction timeout in our web application, and the error doesn't occur when the process that is running the workflow is IIS. However, after a delay activity,when the workflow is picked up by the timer service of our application server(you will notice that the source process of the error is ALWAYS the timer job/owstimer.exe) , our workflows very frequently crash with the above error. I think it's not coincidence that the error happens aboutone minute after it gets picked upby the timer job, which probably means that we should increase the transaction timeouts for the timer process also (the default is one minute so 99% this is the source of our problem).

As I wrote above, I have already increased the <system.transactions>entry in the web config of our web app, but this setting seems to be ignored by the timer process of our app server. I also tried to add it in the owstimer.exe.config file to no avail. So the real question is:How can the system.transaction timeout value be changed so that it affects the workflow timer job of the sharepoint timer service (owstimer.exe)?

Any help would be highly appreciated because this has turned to be a really annoying problem for our users in the production farm - imagine having to restart ~10 workflows during the work day.

Thanks,

Spyros


How to restrict people download documents in Library

$
0
0

Buddies, I got a new requirement yesterday. The customer would like to open "Read" permission to people but want to "Restrict" them to download documents in Library. To open "Restriction", they need fill a request form for approval and then move forward.

Do you guys have such similar request before?

Thanks,

Kevin


Powershell script to get all the documents libraries and Folders inside it with titles to CSV file

$
0
0

Hi,

Can any one suggest.

How to export all the Titles of "document libraries and Folders in the list" available under each site of web application to CSV file.


Thanks &amp; Regards, Krishna


How to Show/Hide sharepoint quick launch navigation bar based on SharePoint user Group C# Programmatically

$
0
0

Hi

How can we Show/Hide sharepoint quick launch navigation bar based on SharePoint User Group?

When I am trying to update  SPNavigationNode  by using C# code then I am getting below error stack-

Microsoft.SharePoint.SPException was unhandled by user code
  Message=Updates are currently disallowed on GET requests.  To allow updates on a GET, set the 'AllowUnsafeUpdates' property on SPWeb.
  Source=Microsoft.SharePoint
  ErrorCode=-2130243945
  NativeErrorMessage=FAILED hr detected (hr = 0x80004005)

  NativeStackTrace=""
  StackTrace:
       at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)
       at Microsoft.SharePoint.Library.SPRequest.UpdateNavigationNode(String bstrUrl, Int32 lNodeId, DateTime dateParented, String bstrName, String bstrNodeUrl, Object& pvarProperties, String& pbstrDateModified)
       at Microsoft.SharePoint.Navigation.SPNavigationNode.Update()
       at IPVisualWebPartProject.VisualWebPart1.VisualWebPart1UserControl.<>c__DisplayClass2.<HideNodes>b__0()
       at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
       at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
  InnerException: System.Runtime.InteropServices.COMException
       Message=<nativehr>0x80004005</nativehr><nativestack></nativestack>Updates are currently disallowed on GET requests.  To allow updates on a GET, set the 'AllowUnsafeUpdates' property on SPWeb.
       Source=""
       ErrorCode=-2130243945
       StackTrace:
            at Microsoft.SharePoint.Library.SPRequestInternalClass.UpdateNavigationNode(String bstrUrl, Int32 lNodeId, DateTime dateParented, String bstrName, String bstrNodeUrl, Object& pvarProperties, String& pbstrDateModified)
            at Microsoft.SharePoint.Library.SPRequest.UpdateNavigationNode(String bstrUrl, Int32 lNodeId, DateTime dateParented, String bstrName, String bstrNodeUrl, Object& pvarProperties, String& pbstrDateModified)
  

I have added  ospWeb.AllowUnsafeUpdates = true; to our C# code but still getting above error. Could you please help me to resolve this issue.

Thank you.

How to open Windows Authentication portal from FBA also

$
0
0

Hi,

I have created Web Application with windows authentication. Now we want to extend the same with Form based Authentication also.

Now i want to access the sites by FBA credentials which has been created already by Windows Authentication. Vise versa i want to access the sites.

How could i do it.

Thanks & Regards

Poomani Sankaran

صيانة غسالات ويرلبول 01112225250 صيانة ويرلبول شركة ويرلبول مصر WHIRLPOOL

$
0
0

توكيل ويرلبول صيانة ثلاجات ويرلبول 01112225250 – 26712611  
صيانة ثلاجات ويرلبول اصلاح غسالات ويرلبول توكيل صيانة ديب فريزر ويرلبول توكيل صيانة دراير ويرلبول
توكيل صيانة غسالات اطباق ويرلبول توكيل صيانة ويرلبول
صيانة ويرلبول مدينة نصر - صيانة ويرلبول مصر الجديدة - صيانة ويرلبول الرحاب 
صيانة ويرلبول فى شيراتون والمطار , صيانة ويرلبول فى القاهرة الجديدة 
توكيل شاشات ويرلبول توكيل افران ويرلبول توكيل ميكروويف ويرلبول توكيل غسالات اطباق ويرلبول
توكيل ديب فريزر ويرلبول توكيل ثلاجات ويرلبول الديجتال توكيل دراير ويرلبول توكيل غسالات ملابس ويرلبول
Whirlpool agent, Whirlpool refrigerators maintenance 
 Whirlpool center maintenance, Whirlpool repair, Whirlpool maintenance washers maintenance 
Whirlpool Agent lcd tvs, Whirlpool Agent led tvs, Whirlpool agent ovens
, Whirlpool agent microwave, Whirlpool agent Dish washers, Whirlpool agent Deep Freezer,
 Whirlpool refrigerators agent Aldegtal, Whirlpool agent Dreyer, Whirlpool agent washing machines
صيانة ويرلبول التجمع الخامس صيانة ويرلبول التجمع الاول صيانة ويرلبول التجمع الثالث – صيانة ويرلبول شيراتون والمطار ,
صيانة ويرلبول فى المقطم - صيانة ويرلبول فى المعادى
صيانة ويرلبول فى العجوزة صيانة ويرلبول فى حدائق الاهرام 
صيانة ويرلبول مركز صيانة ويرلبول توكيل ثلاجات ويرلبول-
توكيل ويرلبول الاسكندرية توكيل ويرلبول الساحل الشمالى تو
كيل ويرلبول مارينا توكيل ويرلبول قرية مراقيا
صيانة ويرلبول فى التجمع الاول - صيانة ويرلبول فى التجمع الثالث - صيانة ويرلبول فى التجمع الخامس –
- صيانة ويرلبول فى الزمالك - صيانة ويرلبول فى المهندسين
صيانة ويرلبول فى الدقى - صيانة ويرلبول فى روض الفرج - صيانة ويرلبول فى الهرم - صيانة ويرلبول فى فيصل
صيانة ويرلبول فى المنيل صيانة ويرلبول فى الشيخ زايد صيانة ويرلبول فى بولاق
توكيل ويرلبول فى مدينة نصر ويرلبول فى مصر الجديدة WHIRLPOOL
وكيل صيانة ويرلبول شاشات وكيل صيانة ويرلبول ميكروويف وكيل صيانة ويرلبول افران وكيل صيانة ويرلبول ثلاجات
 وكيل صيانة ويرلبول غسالات ملابس وكيل صيانة ويرلبول غسالات اطباق وكيل صيانة ويرلبول درايرFranchise 
maintenance screens Whirlpool Whirlpool microwave power of attorney 
power of attorney Maintenance Maintenance agent ovens Whirlpool 
Whirlpool refrigerators and maintenance service agent 
Whirlpool washing machines and service agent Whirlpool dishwashers, and service agent Whirlpool Dreyer
صيانة ويرلبول فى المنيل صيانة ويرلبول فى الشيخ زايد 
صيانة ثلاجات ويرلبول صيانة غسالات ويرلبول توكيل ويرلبول العجوزة توكيل ويرلبول المهندسين شركة توكيل ويرلبول
 توكيل ويرلبول فى الزمالك, توكيل ويرلبول فى شارع شهاب توكيل ويرلبول فى روكسى
صيانة ويرلبول فى العجوزة صيانة ويرلبول فى حدائق الاهرام - صيانة ويرلبول فى الجيزة - توكيل ويرلبول فى مصر الجديدة توكيل ويرلبول فى مدينة نصر 
صيانة ويرلبول فى المنيل صيانة ويرلبول فى الشيخ زايد صيانة ويرلبول فى بولاق
صيانة ويرلبول فى العجوزة صيانة ويرلبول فى حدائق الاهرام - صيانة ويرلبول فى الجيزة - صيانة ويرلبول فى 6 اكتوبر
 صيانة ويرلبول فى الدقى - صيانة ويرلبول فى روض الفرج - صيانة ويرلبول فى الهرم - صيانة ويرلبول فى فيصل
صيانة ويرلبول فى المقطم - صيانة ويرلبول فى المعادى - صيانة ويرلبول فى الزمالك - صيانة ويرلبول فى المهندسين
صيانة ويرلبول فى الدقى - صيانة ويرلبول فى روض الفرج - صيانة ويرلبول فى الهرم - صيانة ويرلبول فى فيصل
توكيل ويرلبول فى شارع احمد عرابى توكيل ويرلبول فى جامعة الدول العربية , توكيل ويرلبول فى جسر السويس , صيانة ويرلبول فى حلمية الزيتون
توكيل ويرلبول فى 6 اكتوبر صيانة ويرلبول فى الشيخ زايد صيانة ويرلبول فى الاسكندرية توكيل ويرلبول فى المنصورة
,
ويرلبول , مركز توكيل ثلاجات ويرلبول , مركز توكيل غسالات ويرلبول , توكيل صيانة ثلاجات ويرلبول , توكيل غسالات ويرلبول ,
اصلاح ويرلبول ,صيانة ويرلبول الرحاب,صيانة ويرلبول المقطم , توكيل ويرلبول الهرم , توكيل ويرلبول المعادى , توكيل ويرلبول التجمع الاول ,
توكيل ويرلبول التجمع الخامس, صيانة توكيل ويرلبول الرحاب,صيانة ويرلبول المقطم , صيانة ويرلبول الهرم , صيانة ويرلبول المعادى , صيانة ويرلبول التجمع الاول ,
صيانة ويرلبول التجمع الخامس ويرلبول, Agent WHIRLPOOL, Maintenance WHIRLPOOL 
توكيل صيانة ويرلبول فى الاسكندرية توكيل صيانة ويرلبول فى المنصورة
صيانة ويرلبول الوكيل الرسمى عنوان صيانة ويرلبول رقم صيانة ويرلبول صيانة ويرلبول صيانة غسالات ويرلبول
توكيل صيانة ديب فريزر ويرلبول توكيل غسالات اطباق ويرلبول
اين اجد صيانة ويرلبول فى مصر مراكز صيانة ويرلبول المعتمد صيانة ويرلبول مصر توكيل تصليح ثلاجات ويرلبول وكيل ويرلبول
صيانة ويرلبول خدمة ويرلبول ثلاجة ويرلبول غسالة ويرلبول مركز ويرلبول اصلاح ويرلبول صيانة ويرلبول مصر الجديدة صيانة ويرلبول المهندسين
صيانة ويرلبول المعادى صيانة ويرلبول الجيزة صيانة ويرلبول الرحاب صيانة ويرلبول مدينة نصر اصلاح ثلاجات ويرلبول اصلاح غسالات ويرلبول
اصلاح ويرلبول صيانة ويرلبول المنصورة صيانة ويرلبول الاسكندرية صيانة ويرلبول التجمعات، صيانة ويرلبول داخل مصر الوكيل المعتمد لتوكيل الاجهزة المنزلية
توكيل ثلاجات ويرلبول توكيل غسالات ويرلبول توكيل ديب فريزر ويرلبول، صيانة ويرلبول المنصورة صيانة ويرلبول الاسكندرية
صيانة ويرلبول المهندسين صيانة ويرلبول المعادى صيانة ويرلبول الجيزة صيانة ويرلبول الرحاب صيانة ويرلبول المنصورة صيانة ويرلبول الاسكندرية
صيانة ويرلبول التجمعات، صيانة ويرلبول داخل مصر الوكيل المعتمد لتوكيل الاجهزة المنزلية صيانة ويرلبول (ثلاجات، غسالات ملابس، ديب فريزر، مجفف، غسالات اطباق، دراير، لاندرى).
قطع غيار ويرلبول ثلاجات ويرلبول غسالات ويرلبول ديب فريزر ويرلبول مجفف ويرلبول اصلاح ويرلبول.
صيانة ويرلبول فى العجوزة صيانة ويرلبول فى حدائق الاهرام - صيانة ويرلبول فى الجيزة - صيانة ويرلبول فى 6 اكتوبر
 Power of Attorney WHIRLPOOL Alexandria attorney repair refrigerators WHIRLPOOL Vice WHIRLPOOL
maintenance WHIRLPOOL service WHIRLPOOL refrigerator WHIRLPOOL Washer WHIRLPOOL Centre WHIRLPOOL
reform WHIRLPOOL
توكيل ويرلبول فرع المعادي / صيانة ويرلبول فرع الهرم / صيانة ويرلبول فرع مصر الجديدة / صيانة فريج 
توكيل ويرلبول , صيانة ويرلبول يدير
توكيل ويرلبول المعتمد اتصل بنا / 01112225250 الوكيل الرسمى للصيانة
توكيل ويرلبول

Loadbalancer redirecting from Https to Http

$
0
0

Hi All,

I have my ASP.NET 4.5 application running on the server and a F5 load balancer is configured with SSl certificate on it , the initial login page url is accessed as (through load balancer) https:\\server\login.aspx and is working fine but after login when the application redirects it to home page [..\server\home.aspx] it is redirecting with http and thus the page doesn't get loaded.

can some one help me on this.

Regards

-PJ-

Adding tooltip to Bamboo chart plus web part

$
0
0

Hi All,

I am using Bamboo chart plus webpart instead of out-of-the box chart webpart 

Can anyone help me in adding a tooltip to Bamboo chart webpart ?

Generating email content inside of Approval Workflow

$
0
0

Hi!

I am looking into using sharepoint for an approval process.  It looks pretty straight-forward, but I do have a wrinkle that I would like to get forum input on.

I have a bank file that needs to be approved by different users.  the bank file is not in a readable format, but is text.  Currently, I generate the email from our Linux system and build it as html using the bank file to retrieve the data that is inserted into the email so that the approver know what it is they are approving.

My need here is to be able to do the same thing in Sharepoint.  File A gets created with three checks in it for three different suppliers.  The file creation (placed in a folder that is monitored by the workflow) kicks off an approval workflow.  The workflow sends an email to approver A.  At this point, I could attach the file so that the three checks are viewable by the approver, but it looks really messy.

Is it possible to write a step in between the file creation and the first approver that will use the file to create the email body with a more readable content?  This would be huge!  Our current system is being changed and we have to come up with a replacement.

Regards,

David Langschied


CSOM Script is not working on Office 365 vNext site (Authentication in Azure with federating on- premise Active Directory)

$
0
0

Hi

We have an Office 365 site that is moved to vNext and is being authenticated with Azure (by federating with an on-premise Active Directory) . We tried to access the Client context using "SPOnlineCredential" class and "Network Credentials", but it throws an error with either of the options and doesnt allow to create the context object.

Has anyone observed such a scenario and how was the Client Context created and made to work?

Any help would be appreciated.

Thanks

Vijay

web.ensureusser method using FBA role works if user is present, otherwise fails

$
0
0

Hi, I'm using SP2010 and I'm having the same issue as described in this link below. Any other resolution on this issue. In powershell EnsureUser is generating this error

I would like to add the rolename to SharePoint Group so I'm using EnsureUser to get the rolename.

Exception calling "EnsureUser" with "1" argument(s): "The specified user c:0-.f|lfbaroleprovider|rolename could not be found."

https://social.msdn.microsoft.com/Forums/vstudio/en-US/f3470f6b-9c15-40a6-8f80-b0cda06c30bd/webensureusser-method-using-fba-role-works-if-user-is-present-otherwise-fails?forum=sharepointdevelopment

Thanks,

JohnWeb

SP Data via VBA not returning results correctly.

$
0
0

Not sure if this is an SP question or MS Access, but we have some SP 2010 linked lists in MS Access 2007. And, we query a specific list for a specific record, using VBA in an MS Word doc, that contains a bit of Lookup data. I believe it is less than it's lookup limit.

The issue we have for "some" users is that when the record is returned, one of the column values we ask for is blank. The best way to describe this is:

Computer A, BOB opens a VBA enabled doc which queries for a project record and the results are returned except stakeholder columns data is empty.

Computer B, Stan opens same VBA enabled doc which queries for the same project record and the results are returned correctly.

Computer A, Stan opens same VBA enabled doc which queries for the same project record and the results are returned except stakeholder columns data is empty.

I know we don't have column permissions in SP and I believe, we've had the issue come and go with user profile replacement, though it sounds like an MS Office issue.

I hope I was clear on the issue. Any Idea what is going on?

Ken.

Reset Dropdown list in sharepoint webpart

$
0
0

Hello Techies,
I have a webpartwhere there are fields like:

  • Year(DropDown)
  • Month(DropDown)
  • Employer(txtbox)
  • CTClakhs(txtbox)
  • CTCthousand(txtbox)
  • Currency(Dropdown)

Here i got the requirement like if Year and Month values are "0" then I need to disable and reset the values of other fields say Employer,CTClakhs,CTCThousandsand Currency
so for this I wrote the validations in javascript which are called onChange event of Year and Month dropdowns

 function clearFunction() {

        if (document.getElementById('ctl00_PlaceHolderMain_form1_ddlYears').value == 0 && document.getElementById('ctl00_PlaceHolderMain_form1_ddlMonth').value == 0) {
            document.getElementById('ctl00_PlaceHolderMain_form1_txtEmployer').value = "";
            document.getElementById('ctl00_PlaceHolderMain_form1_txtLacs').value = "";
            document.getElementById('ctl00_PlaceHolderMain_form1_txtThousand').value = "";
            document.getElementById("ctl00_PlaceHolderMain_form1_ddlCurrency").selectedIndex = 0;
            //document.getElementById("ctl00_PlaceHolderMain_form1_ddlCurrency").value = 0;
            document.getElementById('ctl00_PlaceHolderMain_form1_txtEmployer').disabled = true;
            document.getElementById('ctl00_PlaceHolderMain_form1_txtLacs').disabled = true;
            document.getElementById('ctl00_PlaceHolderMain_form1_txtThousand').disabled = true;
            document.getElementById("ctl00_PlaceHolderMain_form1_ddlCurrency").disabled = true;

        }
        else {

                            document.getElementById('ctl00_PlaceHolderMain_form1_txtEmployer').disabled = false;
                            document.getElementById('ctl00_PlaceHolderMain_form1_txtLacs').disabled = false;
                            document.getElementById('ctl00_PlaceHolderMain_form1_txtThousand').disabled = false;
                            document.getElementById('ctl00_PlaceHolderMain_form1_ddlCurrency').disabled = false;

        }

But here values of all the fields are getting reset except Currency dropdown 
Later I check the value of Currency through console and the value was getting reset but it was not reflected in UI (still shows selected value)

Here I wanted to reset the value of Currency dropdown :( :( 

Again for this i tried to achieve .cs file and made the change on .ascx file like

<asp:UpdatePanel ID="OuterUpdatePanel" runat="server"  UpdateMode="Conditional"><ContentTemplate><tr class="contactForm twoSelects"><td><label for="exp">
                Total Experience <span class="required"></span></label></td><td class="selector" id="uniform-undefined"><div><asp:DropDownList ID="ddlYears" CssClass="uniformselect" onSelectedindexChanged="drp_Commoncleardata" autopostback="true"  runat="server" Width="100%"
                    BackColor="Transparent"></asp:DropDownList></div><div><asp:DropDownList ID="ddlMonth"  CssClass="uniformselect" onselectedindexchanged="drp_Commoncleardata" autopostback="true"  runat="server" Width="100%"
                    BorderStyle="None"><asp:ListItem Value="-1">-- In Months -- </asp:ListItem><asp:ListItem Value="0">0 </asp:ListItem><asp:ListItem Value="1">1</asp:ListItem><asp:ListItem Value="2">2</asp:ListItem><asp:ListItem Value="3">3</asp:ListItem><asp:ListItem Value="4">4</asp:ListItem><asp:ListItem Value="5">5</asp:ListItem><asp:ListItem Value="6">6</asp:ListItem><asp:ListItem Value="7">7</asp:ListItem><asp:ListItem Value="8">8</asp:ListItem><asp:ListItem Value="9">9</asp:ListItem><asp:ListItem Value="10">10</asp:ListItem><asp:ListItem Value="11">11</asp:ListItem></asp:DropDownList></div></td></tr><tr class="contactForm"><td><label for="org">
                Current Organization <!--<span class="required"></span>--></label></td><td><asp:TextBox ID="txtEmployer" runat="server" CssClass="textbox" MaxLength="50" BackColor="Transparent"></asp:TextBox></td></tr><tr class="contactForm"><td></td><td colspan="2"><label style="width: 250px !important;"><!--(Enter NA in case of fresher)--></label></td></tr><tr class="contactForm"><td><label for="CTC">
                Current Compensation (CTC) <!--<span class="required"></span>--></label></td><td><asp:TextBox ID="txtLacs" onkeypress="return numbersonly(event, false)" runat="server"
                CssClass="textbox_CTC" MaxLength="10" BackColor="Transparent"></asp:TextBox>&nbsp;&nbsp;&nbsp;<span
                    class="field_Desc">Lacs</span> &nbsp;&nbsp;<asp:TextBox ID="txtThousand" onkeypress="return numbersonly(event, false)" runat="server"
                CssClass="textbox_CTC" MaxLength="10"></asp:TextBox><br />&nbsp;&nbsp;&nbsp;<span class="field_Desc">Thousand</span></td></tr><tr class="contactForm"><td><label for="currency">
                Currency</label></td><td><asp:DropDownList ID="ddlCurrency" runat="server"  CssClass="combobox_new uniformselect"  Width="100%"  BackColor="Transparent" ></asp:DropDownList></td></tr></ContentTemplate><Triggers><asp:AsyncPostBackTrigger ControlID="ddlYears" EventName="SelectedIndexChanged" /><asp:AsyncPostBackTrigger ControlID="ddlMonth" EventName="SelectedIndexChanged" /></Triggers></asp:UpdatePanel>

.cs code 

protected void drp_Commoncleardata(object sender, EventArgs e)
        {
            if ((ddlMonth.SelectedValue == "0") && (ddlYears.SelectedValue == "0"))
            {
                ddlCurrency.ClearSelection();
            }

        }

the above code is also not helping me 
Please help and let me know what needs to be done to reset DropDown selection 



Checkbox always unchecked on page edit

$
0
0
I have created a custom page layout in sharepoint 2010 with few fields including a checkbox boolean field. I have created a sample page using custom page layouts, All fields are working fine but checkbox never shows checked, it always shows unchecked, If I go to page properties I can see checkbox checked but when I edit the page checkbox is unchecked, any fix available?
Viewing all 11571 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>