View Complete Post
Here the author uses Document Information Panels in the Microsoft 2007 Office system to manipulate metadata from Office docs for better discovery and management.
MSDN Magazine April 2008
On a few different pages in my web app I have a scrollable panel that contains a gridview. When there is nothing in the panel display as I want it to, however when the grid view is populated with data it stretches the panel across the page which looks awful, it means the panel is partially stretched across the window but is still scrollable
Anyone know why this might be happening?
I have a panel that I am changing the x location by 1 pixel with each clock tick. The panel jiggles as it moves . Why and how do I have it move smoothly
I am trying to convert a stored procedure to a table valued function and the performance has taken a HUGE hit and I was wondering if there was anything that can be done about it. Since a table valued function can not use #temp tables it must be converted
to a @temp table variable.
Here are some steps I have already taken...
The original stored proc starts off by populating a #temp table via "Select x Into #temp ..."
Leaving it a stored proc for now, I explicitly created the #temp table and did an "Insert Into ... Select From" to more closely model how it must work when using a @temp table variable. There was no discernible performance difference.
Still leaving it as a stored proc, I then swapped out the #temp table with the @temp table variable and now, all of the sudden, the performance drops from sub-second to over a minute!!!
The temp table only has one field defined as an int and it is distinct, so I tried making the field the Primary Key to see if that would help and it did not.
The temp table is created by scanning a table with around 11,000 rows and the temp table itself has about 4400 rows in it (if it makes a difference to anyone).
Does anyone have any suggestions (or hope) for me?
I have a FormView, and I want to put a panel inside it's EditTemplate and then acess it when the dropdown is changed so that the FormView calls Edit. Then they will become visible. How can I call them to visible if I can't reach them?
So, how can I make Panels inside EditTemplate in FormView as variable reachable so I can change their visibility?
"PanelRegSala.Visible = true; FormViewRegSala.ChangeMode(FormViewMode.Edit); PanelBusca.Visible = true; PanelGrid.Visible = true;"
"<asp:Panel ID="PanelRegSala" runat="server" Visible="False"> <asp:FormView ID="FormViewRegSala" runat="server" DataSourceID="SQLDSRegSalas" DataKeyNames="idSala"> <EditItemTemplate> <tr> <td>
I have my own panel class ksClass and I want to insert a ksPanel in a form and the width of the ksPanel shold just be thw same as the width of the form !
private void Form1_Load(object sender, EventArgs e)
In the class I have this code:
Panel aPanel = new Panel
Location = new Point(0, 0),
Size = new Size(this.Parent.ClientSize.Width, 20),
BorderStyle = BorderStyle.FixedSingle
but gets an unhandled NullReferenceException !
How can I then set the width of my panel to the "width" of the form it's inserted on ?
I have created panels dynamicly , with a label and a button in them , no when i click the dynamicly added button it should retrieve the label text in that specific panel . Here is some code that i have
private void ShowRoomsNow(string Desc , string code , int num)
Panel pnl = new Panel();
pnl.BorderColor = Color.Black;
pnl.BorderWidth = 1;
pnl.ID = "Pnl" + num;
Button btn = new Button();
btn.Text = "Book";
System.Web.UI.WebControls.Image img = new System.Web.UI.WebControls.Image();
btn.ID = "btn"+num;
Label lbl = new Label();
lbl.ID = "Lbl" + num;
lbl.Text = " Room Name: "+ Desc +"<br/> RoomCode: " +code + "<br/>No:"+ num;
lbl.ForeColor = Color.Black;
pnl.Controls.Add(new LiteralControl("<br />"));
pnl.Controls.Add(new LiteralControl(" "));