.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

What is difference between Panel's Visible-True/False and Setting Multiview's ActiveViewIndex ?

Posted By:      Posted Date: September 08, 2010    Points: 0   Category :ASP.Net
Hi, I have a panel that contains several controls. On the other hand i have a MultiView that contains Several view that in turn itself contains several controls . In multiview we have to set ActiveViewIndex for the view which we want to see. That same thing can be done through Panel containing another seleral panel's and setting its Visible property to True/False accordingly. Is seems Multiview  is just using this Visible property internally to render controls .Since other views (whose Index is not set to be active Index) are processed on the server for its Whole life cycle(I am confused here..whether i am right or not) .Same thing perhaps happen when we use a Panel insteed and use Visible=True/False. So, what is the difference between MultiView and Panel taking this scenario ?

View Complete Post

More Related Resource Links

radiobutton list item make visible true or false in javascript

in my project i have used one radiobuttonlist according different user login , i want to make one of radiobuttonlist item visible true or false..   please help me to solve this issue.   thanks in advance.  

How To Access Datakeys In Javascript...and How To make gridview Column Visible true in javascript


How To Access Gridview's Datakeys In Javascript...and How To make gridview Column Visible true in javascript

Reply me..

Howe to do :Excel export button in report viewer visible false...?

hi all,  How I can do avoid to display  Excel export in ReportViewer..? if I Use //-------------------------- reportViewer1.ShowExportButton = false; //---------------------------------------------------- Both the buttons will be disabled...for only Excel button How can I...?    

Copy non-visible area of a panel to image object?

Hello, I'm using VS2008 and I would like to copy the entire area of a panel to an image object (bitmap image).  There are lots of examples out there describing how to copy certain areas of the screen, but I would like to capture the entire area of a panel, even if a portion of the panel is not currently visible. Or perhaps you can suggest a different way to achieve my goal - that is, I have a table layout panel with some various lineshapes drawn onto it, and I am aiming to recreate or simply include it on a rdlc report as an image.  Because of the various lineshapes that are included in the tablelayoutpanel, a datagrid/table/matrix control doesn't appear to be an option.  So I'm aiming to copy the tablelayoutpanel to a bitmap image object, then insert that into an image control on the report.  Any ideas? Thanks!

Taxonomy term store additions via site setting are not visible to user in RC1

Is see that its possible to define Taxonomy term store via SharePoint main central  admin page. But when I try to add term store entries via a new site in the same collection ....  site setting -> Site Administration -> Term store management any new entries are not visible. That is to say when a user starts to enter a tag the helper dialog does not show any values added via the site but all values add via the central admin do appear. this seems like a bug and the is in RC1 or am I doing something wrong

I am using the following code to check to see if a panel is visible or not before running javascript

Using VB, VS 2010, when I run the following code, I get an error because it executes the code even if I have Panel7 set to invisible.  I am trying to use javascript to see if the panel is visible or not before executing the code.var panelRef7 = document.getElementById('<%= Panel7.ClientID %>'); if (panelRef7) { $find('DragP7').add move(savePanelPosition); }  What am I doing wrong?   Thanks

condition is not being met when i change boundfield to Visible = "false"

I have the code below, it all works if the BoundField is set to Visible = "true", but if i change it to "false" then my conditions are not being met and page logic doesnt work. What am i doing wrong?   protected void GridView2_SelectedIndexChanging(object sender, GridViewSelectEventArgs e) { GridViewRow row = GridView2.Rows[e.NewSelectedIndex]; if (row.Cells[4].Text == "1") { ddlDVR.SelectedValue = row.Cells[1].Text; ddlDVR.DataBind(); btSearchDVR_Click(sender, e); } if (row.Cells[4].Text == "2") { txtSdate.Text = row.Cells[1].Text; txtEdate.Text = row.Cells[2].Text; btSdate_Click(sender, e); } if (row.Cells[4].Text == "3") { txtStime.Text = row.Cells[1].Text; txtEtime.Text = row.Cells[2].Text; btStime_Click(sender, e); } if (row.Cells[4].Text == "4") { txtLat.Text = row.Cells[1].Text; txtLong.Text = row.Cells[2].Text; ddlRAD.SelectedValue = row.Cells[3].Text; ddlRAD.DataBind(); btLL_Click(sender, e);

Return true or false from Popup window to Parent window


Hello everybody.

I am trying to return true or false from popup window to the parent window.

Actually the parent window has a button control, which on click popup another window. The popup window holds some emailing data and a button "send". This "send" button onclick send email. Now I want to return true if the email is successfully sent otherwise false, to the parent window. Depending on returning value a label present on parent window displays a text message.

But I am not able to implement it. Because it might happen that the popup window is blocked by web-browsers popup blocker or popup window is accidentally closed by user. So how can I confirm to parent window whether or not the email is successfully sent?

Please help me.

Thank you.

SharePoint Error when 'Visible=false'


Hi Everyone,

this is my 4th post. I have a SharePoint question.

On the SharePoint master file, I recently changed the navigation path (ex:   Home > Form) to visible false.

<asp:ContentPlaceHolder id="PlaceHolderPageTitleInTitleArea" runat="server" Visible="False"/>

It helped me to hide the navigation path, but now I am getting error pops up saying:

-Message from Internet Explorer

"you must specify a value for this required field."

Why is this happening?

I am a newbie to sharepoint so please help me with step by step.

Thank you!


-Wook Tae Jung (Mistercarwash Inc)


Session when Cookieless ="True" Page Ispostback is always false


When Session attribute Cookieless ="True" the page.Ispostback is always false.Cant understand the reason behind it.

And one more thing what is happening when we click Remember Me option in login control.As per my knowledge it is storing authentication cookie in it. If we can add data to authentication cookie then why we need session...we can add session data in that.. and authentication token is also regenerated for every new request like sessions.....i got confused after browsing for few hours.

Which one is more secure using cookies or URL for authentication and session.


_events is null or not an object only after setting compile debug="false"



I have been running an application in debug mode for awhile, and am ready to launch it to production.  The application which uses ASP.Net AJAX controls pretty heavily, works fine when the Web.Config value is:

<compilation debug="true">

However, once I change the value to:

<compilation debug="false">

The application starts throwing errors whenever I click on something that would fire an AJAX update event in my application.  The error is:

Webpage error details

Message: '_events' is null or not an object
Line: 5
Char: 36005

As soon as I set debug="true" again, everything works as it should.

Any ideas?

Drop down list Not Binding on Visible false


Hello i have a textbox1 and drop down list 1

i am filling drop downlist from Sql datasource

and  textbox1.text=Dropdownlist1.SelectedItem.Value.ToString()

all working fine

but if i set dropdownlist1.visible = false  than  textbox1.text = empty string

I need to hide the dropdownlist1 and in the same time i need the selecteditem of dropdownlist   to be in the Textbox1.text

please help me

How to make a panel visible based on the validation of a text box?



I have a text box and some validation on it. I want to make a panel visible only when

it is successfully validated,i.e.,textbox entry is valid.Also,I want to capture the entered valid value(it should be integer within 1-8) in a session,based on this number,I am going to add that many rows in an editable grid view.

How to do that?

Accessing data from GridView Column which is set to Visible="false"


I have four columns in gridview.   EmpId,EmpName,EmpSal,EmpDept.

I want to display the complete information on another page,for this am sending empId to other page through RowCommand.

Now I dont want to display my EmpId Column in GridView but I want to access it .. How to do this...

Thanx and regards....

How can I check (true/false) if every single entry in table exists in other table?



I have 2 tables:

- Salesmen with Pk.SalesmenID
- Appointments with Fk.SalesmenID and busy(bit)

How can I check if every salesmen has at least one appointment

Am I on the right way with statement below, though I got syntax problems

(SELECT COUNT(distinct SalesmanID)FROM Appointments)
(SELECT COUNT(SalesmanID) FROM Salesmen)

Garbage collection in this example, true or false?


when using this code:  

string s;
s = "wombat";
s += " kangaroo";
s += " wallaby";
s += " koala";


they tell me: only the last string has a reference, the other three will be disposed of during garbage collection.


So what does this mean exactly?

string s got only the reference of "koala"? or a reference to "wombat"??



Ajax comboBox not displaying correctly after panel made visible




I have a WSP project in which i have added ajaxcontroltoolkit to SharePoint 2010 succesfully and the controls work when in basic web parts.


However i have a web part which has several panels to show / hide various sections as required, within one of the panels i have a combobox.

The panels are set a visible = false to begin with and then toggled to be displayed. 

When the panel is set visible = true i get an Javascript error of: 

Message: 'AjaxControlToolkit' is undefined


The combobox does not display correctly and won;t function.


If the panel is set as visible to begin with - it works fine, but thats not a solution to something which should work.


I have tried various workarounds - but nothing is working.

  • changed scriptmanager on master page to ToolkitScriptManager 
  • add javascript to resize the combobox when its made visible

Is there away to get this working?




ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend