|
p.s if u have any other problem just drop a message here will reply as soon as i see it
|
|
|
|
|
Left mouse click on the column (make sure you are not clicking on header or data cell, you have to click on the column itself (above the header)) that you would like to enable/hide and right mouse click and click on Properties (or hit F4). You will see TableColumn properties. You will have there Visibility property with + sign on the left. Click on + sign and expand Visibility. You will have there Hidden property. You can put your custom code to to view or hide your column. For instance =IIF(Fields!LeadNext.Value = 4, TRUE, FALSE).
Vlad Bezden
|
|
|
|
|
Hello all;
Iam using asp.net 2.0
I have added in web page dataList
<ItemTemplate >
<asp:Panel ID="Panel1" runat="server" Height="50px" Width="125px">
<asp:ImageButton ID="ImageButton1" runat="server">
</asp:Panel>
</Item..>
.................
i want to in page load to check the query string if z=true
make panel above visable =true
and if the false make it viat false
I have tried many way to access to the panel but alway give me error
how can I solve that????
------------------nothing help in page_load
//DataList1.Controls[1].Visible = false;
/DataList1.FindControl("Panel1").Visible = false ;
-----------------
aj123
|
|
|
|
|
When will they learn Urgent should not be used in the subject line
only two letters away from being an asset
|
|
|
|
|
<br />
<br />
foreach (RepeaterItem ri in this.Repeater1.Items)<br />
{<br />
if (ri.ItemType == ListItemType.Item || ri.ItemType == ListItemType.AlternatingItem)<br />
{<br />
<br />
YourObjectType YourObject = (YourObjectType)ri.FindControl("YouObjectId");<br />
YouObject.visible = false;<br />
}<br />
<br />
}<br />
I didn't get any requirements for the signature
|
|
|
|
|
Should be used in the OnItemCreated event (without the foreach), not the page load event.
only two letters away from being an asset
|
|
|
|
|
Can you do OnItemDataBound="RepeatedRow"?
public void RepeatedRow(object sender, System.Web.UI.WebControls.RepeaterItemEventArgs e)<br />
{ <br />
<br />
DataRowView r = (DataRowView)e.Item.DataItem;<br />
if (r != null)<br />
{<br />
<br />
r.FindControl...<br />
<br />
}<br />
} <br />
<br />
I didn't get any requirements for the signature
|
|
|
|
|
You have been a member long enough to know not to use urgent in your message titles.
______________________
stuff + cats = awesome
|
|
|
|
|
I need this sort of working like the Document Object in Access - When user clicks on a link inside my ASP.NET application, Microsoft Word should be launched with some prefilled text. User will then modify the document and close it. Upon closing, the modified document needs to be saved as binary data directly in the database.
I tried using Word.ApplicationClass, it could write a file but not launching the word application.
Thanks
|
|
|
|
|
I figured out how to launch Word - set the Word.ApplicationClass object "Visible" property to true.
Now I'm working on how to set the cursor at the end of the document when opening using a template and how to save upon closing. Any suggestion is welcome.
Thanks
|
|
|
|
|
Saving the data in the word doc is almost impossible. I only know of one way to do this. You are going to have create a Macro in the word document. Add a button to the word document and inside the macro make an http post request to a web page that will accept the document. There really is not a good way to save a word document in a web app. You only other solution is to ask the user to save it to disk and upload it.
I didn't get any requirements for the signature
|
|
|
|
|
Hi,
I developed an asp.net based eCommerce Website for a client of mine and it is hosted at discount asp. The site is quite interactive, queries a database a lot and uses ajax.asp.net to spice up interactivity.
The service suffers from a lot of restarts since discountasp enforces a 100mb per worker thread limit, when you top it, the service gets restarted. When there is a lot of traffic on the site, this happens almost every other minute and users see an unwelcoming "service unavailable" quite often.
Now I already tried to strip down memory usage, by eliminating almost all session objects, by using datareaders instead of datasets and by by employing a very disconnected, database based "state" architecture, but I still cannot keep MB usage under 100mb.
So I am about to tell my client that he will need to move to a host, that does not have such a strict memory policy, maybe a virtual host on a machine with few users.
But to double check things: how does memory usage on your sites look like? Could you check in Taskmanager, what asp net uses when you view a single site, and the tell me, together with some info about the site's complexity?
I would be very glad, to have some numbers, that could tell me, if it's really me, or if the host just is not thought for heavier usage.
Jan
|
|
|
|
|
Jan my aspnet_wp.exe takes up 86,500 K when it isn't being used. So 100MB is easy to eat up, nothing you can do about it. One thing to double check is to make sure that debug="false" in the web.config for that will cut down on ram.
Also since it is an ecommerce site, are you storing images on the server? Make sure they are compressed jpgs and not gifs.
Also, when I code I use the Using keyword whereever possible, it calls an objects dispose method where available.
One more thing is not to use arrays. They are inneficient. Generic Lists do much better if you can use them instead.
I didn't get any requirements for the signature
|
|
|
|
|
Hi,
I have a gridview
<br />
runat="server" ID="gridGebruikers" <br />
AllowPaging="false" AutoGenerateColumns="false"<br />
DataKeyNames="Gebruiker_ID"<br />
SelectedRowStyle-BackColor="Gainsboro"<br />
GridLines="None"<br />
Width="750px"<br />
OnRowEditing="gridGebruikers_OnEdit"<br />
OnRowDeleting="gridGebruikers_OnDeleting"<br />
OnRowCancelingEdit="gridGebruikers_OnCancelEdit"<br />
OnRowUpdating="gridGebruikers_OnUpdate"<br />
Columns<br />
<asp:CommandField ButtonType="Button" DeleteText="Verwijder" EditText="Bewerk" CancelText="Annuleer" UpdateText="Sla op" ItemStyle-Width="150px" ControlStyle-Width="70px" ShowEditButton="true" ShowDeleteButton="true" ShowCancelButton="true" /><br />
asp:TemplateField><br />
ItemTemplate><br />
asp:CheckBox runat="server" ID="chkIsAdmin" Checked='<%#DataBinder.Eval(Container.DataItem, "IsBool1")%>' /><br />
/ItemTemplate><br />
/asp:TemplateField><br />
asp:TemplateField><br />
ItemTemplate><br />
asp:CheckBox runat="server" ID="chkResetPwd" Checked='<%#DataBinder.Eval(Container.DataItem, "IsBool2")%>' /><br />
/ItemTemplate><br />
/asp:TemplateField><br />
/Columns<br />
/asp:GridView<br />
Both Checkboxes should not be enabled when the grid shows As soon as the EditButton "Bewerk" is pressed they should be enabled.
How to Enable them if default in ASP = set to Enabled="False" ?
-- modified at 11:11 Monday 2nd July, 2007
|
|
|
|
|
Got the solution.
after databinding the grid and before updating the updatePanel
|
|
|
|
|
how to display image in an website from different location
|
|
|
|
|
You can have SRC tag to point to the required path right?
|
|
|
|
|
Hi,
I am trying to use the treeview webcontrol and am using
the example code from MSDN.
The control displays the root and child nodes in line
with no tree structure present.
Does anyone know why this may be?
Thanks,
Pavan.
|
|
|
|
|
Does anyone have a good tutorial or reference as to how to implement a website search function? I used to doing this in coldfusion with verity search and just wanted to know how to go about doing so in .net C#. Thanks in advance to all that reply.
|
|
|
|
|
|
I am using an xml file as a data source for site navigation on my asp website. All but one link points to files that are contained with in the project. Here is an example:
<section>
<id>customers</id>
<image>customers.jpg</image>
<name>Customers</name>
<url>customers/</url>
<subSection>
<id>retail</id>
<name>Retail Cheese Shop</name>
<url>customers/retail/</url>
<detailSection>
<id>logoitems</id>
<name>Alto Logo Items</name>
<url>http://www.companycasuals.com/altodairy/start.jsp</url>
</detailSection>
</subSection>
</section>
The urls all work with one exception. The last <detailsection> points to a website outside of the project.
When I run this I get an error message that says: Cannot use a leading .. to exit above the top directory.
Does anyone know what I would use to exit above the top directory?
John
|
|
|
|
|
Hi,i have one html table...,
In that td place i am displaying my records...,
I given border value =1 for that table..,
Now my question is...,
While page load itself its displaying table..,
But i need to display that table when i click my button...,
How to do that...,
Regards,
Magi
|
|
|
|
|
Hi
You can make the table invisible when it loads. Set the display=none to make it hidden.
<table style="display:none" id="TblId">
Then on button click call this Javascript function
function ShowTable(){
document.getElementById("TblId").style.display = "block";
}
Happy Programming
|
|
|
|
|
Hi
Can someone tell me how to create and parse RSS in ASP.Net 2.0???
Regards
Saqib
sAqIb
"Our scientific power has outrun our spiritual power. We have guided missiles and misguided men."
Dr. Martin Luther King Jr.
|
|
|
|
|