RT00220489

Hi,

I am new to Sharepoint 2010. I am working to obtain sites from collection list and libraries from site. I have been able to it by static values of site. But, the problem is that i need to populate a dropdown consisting of library, from the value of dropdown for site.

I can get the name of the site. But, my site is deployed to run on "http://myserver:8000/SiteName"

This "http://myserver:8000" I am able to obtain in one method, via making an instance of SPSite in SPSiteCOllection and getting URL.
But, I am unable to obtain it in the method I state below it, where, i need to dynamically construct the URL and pass the value in using statement.

I hope its not confusing. Kindly help please. M trying all I can since last week. Unable to crack. Please help.

RT00220489

Hi,

I have a dropdownlist named MyDropDown. I have declared an arraylist and I collect required names of collection in the list. In parallel, I would like to keep appending the names obtained in dropdownlist.

I have an If condition, checking for proper valid names. Those names I wish to display in dropdownlist.

I tried all the properties/events/methods and combinations of the dropdownlist, but could not obtain desired result.

The value of valid name is stored in a string variable ie

string name = MyString.title;

and immediately after this, I need to insert this value in MyDropDown so that it goes into for each for new value again. and new value will be inserted in MyDropDown below the previous one.

Please help !! M stuck on it since 3 days.. Did a lot of trial and error.. Your help would be highyl appreciated.

RT00220489

Thanx a lot Jorge !! It works now.. I just changed to setAttribute("src","Path") instead of .src !! :)

Thank you so much !! :)

RT00220489

Hi,

My question goes as follows :

I need to replace an existing image, with another one, but without using jquery ie using javascript and using the id of the image as it is tag and hence does not support name. The image supports the functionality of toggling the text as menu but image replacement is not happening. Kindly help.. Please !!

My code in user control is :

<tr>
                    <td nowrap="nowrap">
                    <div id='h<%# DataBinder.Eval(Container, "ItemIndex") %>' onclick='visible(<%# DataBinder.Eval(Container, "ItemIndex") %>);'>
                    <asp:Image ID="ArrowImageButton" runat="server" ImageUrl="~/images/downarrow.png"/>
                    <%# DataBinder.Eval(Container.DataItem, "Header") %>

                    </td>
               </tr>

and the javascript I am trying is :

 <script type="text/javascript">

        function visible(id) {
            var e = document.getElementById(id);
            if (e.style.display == 'block' || e.style.display == '') {
                e.style.display = 'none';
                if (id == 0) {
                    //$('#ctl00_SiteNevigation1_rptConsoleItem_ctl01_ArrowImageButton').attr('src', "../Images/rightarrow.png");
                    document.getElementById('ArrowImageButton').src == "../Images/rightarrow.png";

                }
                else if (id == 1) {
                    //$('#ctl00_SiteNevigation1_rptConsoleItem_ctl02_ArrowImageButton').attr('src', "../Images/ArrowToRight.png");
                    document.getElementById('ArrowImageButton').src == "../Images/rightarrow.png";
                }
                //});
            }
            else {
                e.style.display = 'block';
                if (id == 0) {
                    //$('#ctl00_SiteNevigation1_rptConsoleItem_ctl01_ArrowImageButton').attr('src', "../Images/down-arrow.png");
                    document.getElementById('ArrowImageButton').src == "../Images//downarrow.png";
                }
                else if (id == 1) {
                    //$('#ctl00_SiteNevigation1_rptConsoleItem_ctl02_ArrowImageButton').attr('src', "../Images/down-arrow.png");
                    document.getElementById('ArrowImageButton').src == "../Images//downarrow.png";

                }
            }

//            var img = document.createElement('asp:Image');
//            img.src = "~/images/rightarrow.png";
//            var oldImg = document.getElementById(id);
//            document.getElementById('h<%# DataBinder.Eval(Container, "ItemIndex") %>').replaceChild(img, oldImg);

   }

RT00220489

Hi Jorge,

I do not have this site online as yet. And i understand posting long codes is troublesome hence tried asking this way as I don't realise hwat could be the relevant code.
I mean I have checked all CSS, classes and tags, none have margin or anything defined. Still, when the page reloads, it appears normal. But when i click on the link, it shifts some pixels down !!

Thank You.

RT00220489

Hi,

I have a page MyList.aspx, which is giving me some issues. When the page loads, it loads perfectly.

In my master page, on the left side of the page is a menu, and some hyperlink is provided. When i click on the hyperlink in the left pane, the page refreshes (which is same what i want), but the table moves down by an ince or some pixels.

The link on the left is provided so that the user can navigate from any page, to the page MyList.aspx. But clicking on the link disrupts the css and the content in the page, starts with a table, moves down by some pixels.

I tried a lot figuring what the issues could be. Trial and errors on CSS and all i tried. But unable to procceed and stuck. Please help. Your help is highly appreciated.

Thank you !! :)

RT00220489

Hi,

Just one correction. The file will be uploaded by any user and it will be at the location of the specified folder. Also, the folder will or may contain various css so I will have to search the file starting from a unique ID say something like "C20" and locate the file, which will have to mentioned in the link, and it is this file whose css is to be applied, to my project. Is it possible ? I am also trying my best from my end. But your help would help me do it better. Please Guide !!

RT00220489

Hi Jorge,

Thank You so much for your help. I will try this out also. But the css I wish to apply, is actually in a folder in my project. The folder will be uploaded by the user and can have any name. Taking that into consideration, I wish to provide a link such that be it any name of the css file, that file should be linked and the css be applied from that file, to my project. Is it possible ?

RT00220489

Thank You Bhuvan.. I will try that and get back to you !! :)

RT00220489

Hi,

I seek your help as m stuck with an issue. I am uploading a css style file in a folder and need to provide the link to that css file in my aspx page. That is simple, but the twist is, the file name can be anything. That file is stored in a folder and needs to be applied in such a way, that be it any name, the css file should be fetched and styling be applied from that css file in my project.

Please help.

RT00220489

Arun,

Thank you so much for your help. I am unable to access the site just now. Some network issues. Thanks a lot !! :)

Actually i have tried implementing it via CSS but it demanded inclusion of scripts so never thought of it !! Thanx neways !!

RT00220489

Hey !!

I have created a web application in ASP.net. In the master page, I am using tables to create the required page display. On the left side, i have an image on an arrow followed by text eg. (img.png)Order. When i click on Order, i need the different types of orders displayed in dropdown. I have hard coded them as of now. and have tried various scripts available. But as it is in table format, It gives me issues. could anyone please help ? I need to do this asap !! Stuck due to it..

An example of whai I need to do :

(image.png) Orders

Order1
Order2
Order3

When i click/hover the mouse on the image, the orders listed should appear just as it exapnds below.

Thank You !!

RT00220489

Thank u so much !! :)
Keeping that in mind, i did try and map the DB and it worked for me !!

RT00220489

Hi..

I have an application developed and deployed using sccm 2007. Now, we are to migrate the entire application to SCCM 2012, leading to some issues with the system database.
eg : SMS_R_System in SCCM 2007 becomes VSMS_R_System for SCCM 2012.
I need to map other such table changes. Can you please guide me as to how should u proceede with the same ?

Thank You.

RT00220489

Hi..

I am designing a GUI for which I need effect as images are ahown in one vertical row. When mouse points on a particular image, that image should appear enlarged along with hyperlink for details and add to cart(just as similiar to google images).. The only difference is that I want the image to appear in enlarged form to the right of the normal image view on the left.
Is it possible via jquery in ASP.Net ??
Could anybody just help me with a startup like some tips on steps to start nd methods ?
Am completely naiive so seeking help.

Appreciated. Thank You..

Ruchi Thakkar

RT00220489

No.. The images are imported using Picture Box..

Thank you.

RT00220489

Hi..
I am trying to create a simple desgin in windows applcation using C#.NET, where I have dived my page into 2 panels using split control.
The first panel has images lined up vertically, one after another.
I would want that when I point a mouse on any image, the mouseover effect should be shown in panel 2 where, the image sould enlarge a bit and its details must appear in the space along with hyperlinks of Details and Add To Cart.
I could do something similiar to it in Javascriptm notepad. But no clue as to where to write and what to write for it in C#.Net.. M a fresher.
Please help.

Appreciated.