Having the same web part twice on a page - how to distinguish parameters

Hello,
I've made a web that takes a set of custom properties . If I put the web part twice  on the same pages, all the web parts are using the same custom parameters. 
I understand that the culprit is in line: public static string strList, but I wonder if there has been a work around
public static string strList;
[System.Web.UI.WebControls.WebParts.WebBrowsable(true),
System.Web.UI.WebControls.WebParts.WebDisplayName("MY display name"),
System.Web.UI.WebControls.WebParts.Personalizable(
System.Web.UI.WebControls.WebParts.PersonalizationScope.Shared),
System.ComponentModel.Category("ShowFieldBasedOnURL Custom Properties"),
System.ComponentModel.DefaultValue("")]
Thank you
Christos

correct, that's what I have mentioned, and I didn't see any static method from the link that you have provided.
Question is have you tried refactoring the code as per the example you have referenced.
Usually you will get the error message when you call non static method within static method, you should make the property as static, otherwise you will get the error message.  so try changing the code to the link as per the forum thread
you are referring to.
see here-
http://www.wictorwilen.se/Post/Web-Part-Properties-part-2-Editor-Parts.aspx
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/3aa35b0e-27f9-4dbb-ab8a-2fc1d7435850/custom-web-part-properties-in-visual-studio-2012
https://www.nothingbutsharepoint.com/sites/devwiki/articles/pages/how-to-create-sharepoint-2010-custom-visual-webpart-properties.aspx
Hope this helps!
Ram - SharePoint Architect
Blog - SharePointDeveloper.in
Please vote or mark your question answered, if my reply helps you

Similar Messages

  • Macbook Pro 2,33Ghz Core 2 Duo Radeon X1600, it has been presentng screen artifacts since a year ago. It is not in warranty now, but I read in the web that plenty of people is having the same problem as an early degradation issue. Solution?

    Macbook Pro 2,33Ghz Core 2 Duo Radeon X1600, it has been presentng screen artifacts since a year ago. It is not in warranty now, but I read in the web that plenty of people is having the same problem as an early degradation issue. Sometimes the system freezes and stops respondign so I have to restart and lose all the unsaved work. A few moths ago, the Superdrive stopped recognizing the disc because of a firmware update released by Apple!! It is not acceptable. Solution?
    Apple should give a solution to all these people who spent more than 2500$ in a laptop that has stopped working in less than 3 years!
    http://reviews.cnet.com/8301-13727_7-10330060-263.html

    Yes, it appears the X1600 has more than its fair share of issues. I've seen reports of people reflowing the solder joints on/around the GPU with success, even baking the LB in the oven.
    The rest is something you'll have to take up with Apple.

  • HT1222 After this update, my dropbox is no longer able to connect securely. Anyone having the same issue?

    Anyone having the same issue? Can this be fixed? I'm on a 2011 Macbook Air 11" running OS 10.9.2

    Here is something to try.  Boot into the Recovery HD by holding
    down Command+R when booting.  Select the get help online option.
    It initially opens Safari with a local web page, but you can use
    the bookmarks on the bookmark bar or even enter a website.
    Many extensions may not be available but it could tell you if
    it is your Lion install that is a problem or perhaps a hardware
    problem. 
    If you can browse around in this mode, then it could eliminate
    any possible hardware issues.  If you still have problems, then
    the issue could possibly be hardware/driver related.
    Give it a shot and see what happens.

  • I just downloaded iOS 6 on my iPhone 4 and now can no longer open internet links that were texted to me.  Anyone else having the same problem?

    I just downloaded iOS 6 on my iPhone 4 and now can no longer open internet links that were texted to me.  Anyone else having the same problem or know how to fix this? 

    The SMS links thing is highly annoying. You don't have to copy/paste however. You should see an icon like this: (>) to the right of the text bubble with the link. Tap on that, the in the screen that opens, tap "Visit".
    Alternatively, you can tap twice directly on the link, then hold your finger down after the second tap.
    Still unnecessarily difficult, but not as bad as copy/paste.
    What I don't get is why can't I find any mention of this change or how to fix it (if even possible) elsewhere online?

  • Guys, my browser is going crazy and every website that I am on changes in about 10 seconds to 2 minutes to another webpage. I even downloaded a newer 5.0 version of firefox and I am having the same problem.

    Guys, my browser is going crazy and every website that I am on changes in about 10 seconds to 2 minutes to another webpage. I even downloaded a newer 5.0 version of firefox and I am having the same problem.

    Your System Details are showing Fun Web Products. Suggest you look in Add-ons - Extensions and Plug-ins, and Control Panel>Add/Remove programs or >(newer version) Programs and Features. You could also do a search of your computer.
    Fun Web Products(associated with MyWebSearch) always seems to cause problems, Alexa does, too, but less often - there may be conflicts.
    I'm not an expert on these two products. I'm afraid I can only alert you to the problems. Google will show you plenty of evidence of problems. You might also try the Search Firefox Help box above - a gold mine but it usually requires a lot of digging.
    You can start Firefox in Safe Mode - Hold Shift Key down as you double click on the Firefox icon>ignore the page that opens>Continue. If that improves things you could do a little troubleshooting(Safe Mode, Problematic extensions etc), use default theme, -
    https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes
    http://support.mozilla.com/en-US/kb/Troubleshooting%20plugins

  • A workflow is sending the same email notification twice

    A workflow is sending the same email notification twice. Not every notification, but this happening only a few times randomly.  The double sent emails are arriving together , have the same date and time.
    I've checked the workflow and found that there is no double sending command in the workflow, and the workflow history also shows just 1 run and 1 email sending.
    Can somebody help me on this.

    Hi Neel,
    For troubleshooting your issue, you can take steps as below:
    1.Increasing the UserDefinedWorkflowMaximumComplexity to 30000 setting using Powershell script
    2.IISRESET
    3.Adding <httpRuntime maxRequestLength="51200" executionTimeout="3600" /> in web.config. Yes, that is "3600" unlike "300" suggested. Please note that there are multiple lines in web.config with <httpRuntime maxRequestLength="51200">.
    I made this change only in the very first one.
    4.IISRESET
    5.Removed everything from C:\Users\<userName>\AppData\Local\Microsoft\WebsiteCache from my laptop
    6.Removed everything from C:\Users\<userName>\AppData\Roaming\Microsoft\Web Server Extensions\Cache from my laptop
    7.Removed everything from C:\Users\USER\AppData\Roaming\Microsoft\SharePoint Designer\ProxyAssemblyCache\ from my laptop
    8.IISRESET
    9.Restart SharePoint 2013 Designer
    Reference:
    https://social.msdn.microsoft.com/Forums/en-US/69b184bf-09ed-4e00-815a-4e40a975c4bf/prevent-sharepoint-2010-workflow-to-send-duplicate-emails?forum=sharepointcustomization
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • I'm having some sort of text tone glitch with my iPhone since the IOS5 update, anyone having the same problem?

    I
    have a second hand iPhone, now since the new update my text tone which is the Tri-Tone seems to glitch and repeat the first part multiple times very quickly and then carry on every time I receive a text. I'm just wondering if there is anyone else having the same problem or is it just me?

    Thanks, Sig.
    The old computer is a 2.6 Ghz Intel Core 2 Duo
    The new one is a 2.3 GHz intel core i7
    In going over this, thanks to "tallking it out" with you, I did discover the Text Edit problem.  Because I've still been unable to get the new computer text size (fonts or whatever) to match the old computer, I did not notice that the curser is now different--the line midway down the curser has to be placed on the line I am working upon, otherwise the edits go elsewhere on the page.  Now, with a bit of difficulty, I am able to get Text Edit to work correctly.
    If you have any ideas as to why my menu bar and Text Edit type are still so slow, I'd love to have them. 
    (I went through the process you suggested earlier, re my Trackpad preferences, and found no improvement.)

  • Make individual cells readonly in js grid of the schedule web part

    I need to be able to modify individual cells in the js grid on the schedule web part to make them editable or read only based on certain conditions pertaining to that specific record.  I've figured out how to make an entire record in the grid
    read only by using delegates, but I'm having trouble getting to the specific cell and making it read only.  The code I have for making an entire row read only is below.  I'd like to do something along these lines but for cells, not
    rows...
    PJ.AddGridSatelliteInitializationNotifier
    function (satellite) {
    satellite = PJ._NotifySatelliteInitComplete.arguments[0];
    _myGrid = satellite.GetJsGridControlInstance();
    _myGrid.SetDelegate(SP.JsGrid.DelegateType.GetRecordEditMode, CheckToAllowEdit);
    function CheckToAllowEdit(record) {
    if (record.GetDataValue('TASK_WORK') == 0) {
    //i need to find a way to get the cell in question here and then make it ready only return SP.JsGrid.EditMode.ReadOnly;
    else {
    return SP.JsGrid.EditMode.ReadWrite;

    Hi gmhamm0
    Were you able to get this done for a specific cell ?

  • What can I use to list the specific web part types on a specific page?

    A user is trying to create a new entry on a sharepoint page. The page has various web parts showing bulleted lists of links.
    However, when he tried to create a new one, he ends up with the links having no bullets and the letters URL in a title bar over the links. The other link web parts do not have that.  The title bar allows sorting of the links; the other web parts have
    no title bar at all.
    This new web part has no "edit" option to modify parameters like titlebar, etc.
    Is there a powershell way that I could provide a URL and get the list of web parts, their types and their titles so that I could see what is going on and try to help him fix things?

    You can check all these out via the Web Part Maintenance Page. After the PageName.aspx, add ?contents=1 and you'll get a list of the webparts that are open and published on the page.
    You can't do too much here but you can reset the parts that you think might be causing the problems.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • IPhone 4 won't slide to unlock . I tried everything possible and even got my phone replaced fora new one costing me 10,282 Rupees . The new phone is again having the same problem even without adding any apps or taking data backup

    iPhone 4 won't slide to unlock . I tried everything possible and even got my phone replaced fora new one costing me 10,282 Rupees . The new phone is again having the same problem even without adding any apps or taking data backup

    Yeah, first my thought was also that... that's why I've gone to Apple and they already switched the phone twice!!!
    Last time was yesterday... I posted this here because I came from Apple and with a new iPhone 5, although I didn't restore anything from iCloud, I hadn't even logged in to iCloud / AppStore, and without any event on the lockscreen my iPhone 5 was already "locked" on the unlock screen... after a mere 45m after I used it without a single App!! Just a couple of SMS / 1 or 2 calls... I'm going to Apple again on monday, but tried to post here to see if this has happened before to anyone with 3 new iPhones!!!

  • I've just updated my iPhone 4 and now cannot add events in iCal. Anyone having the same problem?  Thanks!

    I've just updated my iPhone 4 to 5.0.1 and now cannot add events in iCal. Anyone having the same problem?  Thanks!

    The SMS links thing is highly annoying. You don't have to copy/paste however. You should see an icon like this: (>) to the right of the text bubble with the link. Tap on that, the in the screen that opens, tap "Visit".
    Alternatively, you can tap twice directly on the link, then hold your finger down after the second tap.
    Still unnecessarily difficult, but not as bad as copy/paste.
    What I don't get is why can't I find any mention of this change or how to fix it (if even possible) elsewhere online?

  • I am having the same problem that Paul Birgy is having.  It was working fine until the update.

    I am having the same problem that Paul Birgy is having.   I can send email from my program but now the reciever cannot read it.  Before the update my emails I sent from my program were readable by the reciever.

    I send out invoices from Peachtree Premium Accounting 2005.  I click on the email icon on top of page and it goes to Microsoft office outlook 2007.  It shows as an attachment and in the message it tells the receiver they need adobe reader installed in their computer to read it.   It was all working fine until the last update for adobe reader. 
    Now they get error message.   Adobe Reader could not open "Invoice #106.PDF" because it is either not a supported file type or because the file has been damaged (for example it was sent as an email attachment and wasn't correctly decoded.)
    This started March 3, 2010.  Since then I have been faxing out of the Peachtree program. That still works fine. 
    This problem seemed to start right after one of the updates.  I was told to try and reinstall Adobe Reader.  I have tried that twice and still have the same problem. 
    To the best of my knowledge I have not had any problems with Peachtree. 
    Cathy
    Date: Tue, 25 May 2010 14:40:25 -0600
    From: [email protected]
    To: [email protected]
    Subject: I am having the same problem that Paul Birgy is having.  It was working fine until the update.
    Sounds like either
    A. Something in your accounting  software is corrupting the file or;
    B. Something in  your email is corrupting the file (some email providors use compression  to make the transfer faster which can mess up a PDF).
    What  hapens when they try and open it? Do they get an error message? If so,  what is it (this matters)?
    At any rate, it's doubtful  that this is a Reader issue but give us some more detail and maybe  someone can help here.
    >

  • Can anyone tell me why my ipad screen turns on but there are no icons displaying at all and the screen goes blank i have tried to reset it on numerous occassions but still the same is anyone having the same problems if so how do i rectify this

    as above can somone please explain if they are having the same problems ????

    However after part of the Itune update completed a message came up on the screen
    saying   "The feature you are trying to use is on a net work resource that is unavailable.
    Which particular .msi file does the message go on to say cannot be found? (Several different .msi files might be mentioned in this context: itunes.msi, bonjour.msi, AppleSoftwareUpdate.msi, etc.)

  • I am having the same problems as several posters here.

    I am having the same problems as several posters here. My note 3 was pre-ordered and worked fine until may 16th of this year. This was the date of an ota upgrade to kitkat. After apps were "optimized" I first noticed such a power drain that my phone lasted 4 hours on standby without use. I uninstalled several apps including facebook which and rolled back google play services for several days. This helped my battery life which extended from 4 to 12 hours at low use. Previously, I could use the phone for nearly 48 hours without charging and using a number of apps which involved graphics, sound and data. Which leads to my next point, any graphically charged app (games generally) causes my phone to heat up tremendously and the phone leaks power like a sieve; again I reiterate this began may 16 with an ota update to kitkat which was rolled out by verizon MUCH later than other carriers but clearly didn't involve fixes.  Finally, and the most nagging problem of all....my mobile connectivity has been shot. I have dropped calls, I have had to drive to get signal, I have missed calls and I cannot afford this!! I am a home health nurse and must be in contact with MD offices and patients. Even mobile connectivity in my home is affected as I have two bars at max. I have noticed the wireless indicator go from 0 to 5 bars in a rapid cycle 5 to 6 times in a few second period and result in "no mobile network found" if I try to call anyone. This service is unacceptable and I don't want to have to root my phone as I am not sure that this would fix the problem. This is a 700 dollar phone and I shouldn't have these problems. If a solution cannot be reached, I am under contract for another year and several months and I demand a new phone. I will be saving all communications (or lack thereof) via screen shot for documentation.

    markaandersonco2006,
    Have you tried wiping your cache partition?  I noticed extremely poor battery life after the KK update, like you, (maybe 5 hours of use before requiring charging) and I saw a message on one of the Android Central forum (actually for the AT&T version of the Note 3) that mentioned to try wiping the cache partition.  That appears to have worked. Since then, my battery life has been phenomenal.  I don't know why this worked, or the downside of doing it.  But it worked.   As I write this, my battery is at 66%, and has been on for 14.5 hours (with one brief charge of 15 or so minutes in my car last night).
    Wiping the Cache partition from Recovery Mode
    This won't erase any important data.  Perform the following procedure:
    1) Turn off the device.
    2) Press and hold the following three buttons at the same time:
         a) Volume Up key
         b) Home key
         c) Power key
    3) When 'GALAXY Note 3' appears on the screen, let go of the Power key but continue to press and hold the Volume Up key and the Home key.
    4) When the Android System Recovery screen appears, release the Volume Up and Home keys.
    5) Press the Volume Down key to highlight 'wipe cache partition.'
    6) Press the Power key to select and wipe the cache.
    7) With 'reboot system now' highlighted, press the Power key to restart the device.
    Good Luck!

  • I have been using Firefox for many years now and really like it, now the version 4 is extremely slow, anyone else having the same issue?

    I upgraded to version 4 last week and find it extremely slow compared to the previous version - like so slow that some pages do not even load. I have downloaded and gone back to version 3.6.17 and everything is back to the normal I have known for years with Firefox and it is really fast again...so now I know that there is nothing wrong with my computer and that the supposedly very very fast version 4 is much much slower than the previous version 3.6...so what gives? I'm not keen on going back to the new improved version 4, though I know it will not be supported soon...anyone else having the same issue?

    Having the exact same problem here.
    -Mac OSX
    -3.6 worked great
    -I tried the 4 beta, got rid of it because it was so slow
    -When it upgraded to 4 is VERY slow and freezes often
    -Appears especially slow on sites with flash (ie http://www.bbc.co.uk/news)

Maybe you are looking for

  • Copied iphoto library to new 10.7.3 Air. Now 10.6.8 iphoto not working

    Hello, I recently purchased a new Macbook Air, running 10.7.3. I copied my iphoto library through file sharing from my previous MacBook Pro running 10.6.8. I have the photos on the new machine, so they're safe. I went back to delete them on the Pro,

  • 2LIS_40_REVAL

    Hi there, I'm in a Retail environment. I'm using 2LIS_03_BX, 2LIS_03_BF, 2LIS_03_UM to fill an InfoCube and have the monthly stocks. Quantities and valuation at purchase value are correct. As I want to add to my report the valuation at retail value f

  • Install files for BOXI 4.0

    Hi, We have BOXI 3.2 and are looking forward to upgrade to 4.0 but I am not able to get to the location from where to download this version....I read on some post that this version is still in RAMP phase and is available to only those who are partici

  • I am getting an error when talking to my TDC001(whi​ch controls a Z825B stage) through the active X window

    Dear All, I have scoured these user posts to check to see what may be wrong - why labview isnt recognizing my servocube (and thus not moving my stage) so I have checked 1. the serial number is in fact the same serial number as on the APT gui interfac

  • Palm Pre does not show same USB options since update

    Since the latest update to the OS, my Pre no longer comes up with the options to use as a USB drive or to be able to see as a drive from my computer using an USB cable. This worked fine for many months. When I attach my phone to the USB cable, it now