<ul>
<li id="Accommodation" runat="server"
visible="false"><a
href="../Elements/frmSearchAccommodation.aspx?submenuheader=1">Accommodation</a></li>
<li id="Arts" runat="server"
visible="false"><a
href="../Elements/frmSearchProp.aspx?submenuheader=1">Arts
And Props</a></li>
<li id="Costume" runat="server"
visible="false"><a
href="../Elements/frmSearchCostume.aspx?submenuheader=1">Costume</a></li>
<li id="Crew" runat="server"
visible="false"><a
href="../Elements/frmSearchCrew.aspx?submenuheader=1">Crew</a></li>
<li id="Catering" runat="server"
visible="false"><a
href="../Elements/frmSearchCatering.aspx?submenuheader=1">Catering</a></li>
<li id="Equipment" runat="server"
visible="false"><a
href="../Elements/frmSearchEquipment.aspx?submenuheader=1">Equipment</a></li>
<li id="Film" runat="server"
visible="false"><a
href="../Elements/frmSearchFilmTapeStock.aspx?submenuheader=1">Film
And Tape Stocks</a></li>
<li id="Location" runat="server"
visible="false"><a
href="../Elements/frmSearchLocation.aspx?submenuheader=1">Location</a></li>
<li id="Picture" runat="server"
visible="false"><a
href="../Elements/frmSearchPictureVehicle.aspx?submenuheader=1">Picture
Vehicles</a></li>
<li id="Production" runat="server"
visible="false"><a
href="../Elements/frmSearchProductionSupplies.aspx?submenuheader=1">Production
Supplies</a></li>
<li id="Post" runat="server"
visible="false"><a
href="../Elements/frmSearchPostProductionHouse.aspx?submenuheader=1">Post
Production Houses</a></li>
<li id="Rigging" runat="server"
visible="false"><a
href="../Elements/frmSearchRigging.aspx?submenuheader=1">Rigging</a></li>
<li id="Stunt" runat="server"
visible="false"><a
href="../Elements/frmSearchStunt.aspx?submenuheader=1">Stunt</a></li>
<li id="Studio" runat="server"
visible="false"><a
href="../Elements/frmSearchStudio.aspx?submenuheader=1">Studio</a></li>
<li id="SFX" runat="server"
visible="false"><a
href="../Elements/frmSearchSFX.aspx?submenuheader=1">SFX</a></li>
<li id="Talents" runat="server"
visible="false"><a
href="../Elements/frmSearchTalent.aspx?submenuheader=1">Talents</a></li>
<li id="Transport" runat="server"
visible="false"><a
href="../Elements/frmSearchTransport.aspx?submenuheader=1">Transport</a></li>
<li id="Venue" runat="server"
visible="false"><a
href="../Elements/frmSearchVenue.aspx?submenuheader=1">Venue</a></li>
<li id="Other" runat="server"
visible="false"><a
href="../PageUnderConstruction.aspx?submenuheader=1">Other</a></li>
</ul>
I have this code in leftmenu.ascx page..now on
leftmenu.ascx.cs page i want to access id values.
but i dont want to check manually like Accommodation,Arts etc..
In cs file my code is like
string str[];
//this array contains some values say 10 strings
for(i=0;i<100;i++)
{
if(str[i]==id
id.visible=true
}
i.e.i want to travel for each element of str and each value
of id.if they match then id.visible=true
how to do?
No Answer is Posted For this Question
Be the First to Post Answer
How to add a value from textBox over an existing certain column in SQL Server
working with arrays
How to export 2 datatables of a single dataset to 2 different worksheets of a single MSExcel file ?
program for straight line(y=mx+c)
Event Handling in C# Triggering a Button
I am developing a web application using google map api.I want to update the map inside the div control within update panel. I got other controls updated but map doesn't get updated.I do not not want to update map whenever unnecessary controls are fired at server side.How could it be achieved?
Code for Searching for Multiple Matches with the MatchCollection Class?
Can you declare an array of mixed Types?
Code for Working with Files under a Directory?
Create a class called Accounts which has data members like ACCOUNT no, Customer name, Account type, Transaction type (d/w), amount, balance D->Deposit W->Withdrawal If transaction type is deposit call the credit(int amount) and update balance in this method. If transaction type is withdraw call debit(int amt) and update balance. Pass the other information like Account no,name,Account Type through constructor. Call the show data method to display the values.
Write a function which accepts a sentence as input parameter.Each word in that sentence is to be reversed. Space should be there between each words.Return the sentence with reversed words to main function and produce the required output. for eg:- i/p: jack jill jung kill o/p: kcaj llij gnuj llik
Hello I am hosting remoting within IIS. Everything works just fine as long as I allow anonymous access at the IIS level. When I allow only Windows Authenticated sessions, something very strange happens: If the client activates the remote object with IP address - works fine If the client activates it using a machine name - get http 401 exception is thrown. The exception is thrown when the client calls the remote method. I set the channel's useDefaultCredentials property to true. Any idea how to allow Windows Authentication? Here is the call stack: System.Net.WebException: The remote server returned an error: (401) Unauthorized .. ---> System.ComponentModel.Win32Exception: The target principal name is incorrect at System.Net.NTAuthentication.GetOutgoingBlob(Byte[] incomingBlob, Boolean handshakeComplete) at System.Net.NTAuthentication.GetOutgoingBlob(String incomingBlob, Boolean handshakeComplete) at System.Net.NegotiateClient.DoAuthenticate(String challenge, WebRequest webRequest, ICredentials credentials, Boolean preAuthenticate) at System.Net.NegotiateClient.DoAuthenticate(String challenge, WebRequest webRequest, ICredentials credentials, Boolean preAuthenticate) at System.Net.NegotiateClient.Authenticate(String challenge, WebRequest webRequest, ICredentials credentials) at System.Net.AuthenticationManager.Authenticate(String challenge, WebRequest request, ICredentials credentials) at System.Net.AuthenticationState.AttemptAuthenticate (HttpWebRequest httpWebRequest, ICredentials authInfo) --- End of inner exception stack trace ---