|
Just create an item template in the gridview. In the item template you can add any controls (including an HTML Table) that you want. From the gridviewrow you can use the FindControl method to access the control.
I didn't get any requirements for the signature
|
|
|
|
|
Hi,
I have one doubt, ie if an application contains different versions of the same assembly my ? is how the application automatically detects the latest version of the assemly.
can anybody helps me and i have one more doubt what you mean by late signing or something like that...
please help me..
Regards
Alex.
|
|
|
|
|
|
i am building a report.rdlc and using the report viewer and i wanted to know how can i hide or unhide columns in my report is this possible? can anyone assist me?
oh p.s. using c# but it doesn't matter if u know how to do it in vb will jus convert it
kenny
|
|
|
|
|
oh..
I have faced the same problem too. But i convert the report to excel and do the work what i required to fulfill only my output.
If u get the some solution please share it
|
|
|
|
|
yes i found a solution what u do is this
step 1
create a dataset with a table that has all the possible columns that you might use in your report
step 2
add all of these columns to your report
step 3
create report parameters for all the columns u want to hide / un-hide
step 4
assign the value of the hidden property for each column to evaluate whether or not to set hidden property to true or false
example set hidden property to =iif(Parameters!param_TicketId.Value="T",True,False)
step 5
assign values to the report parameters wherever you are going to build and run the report
<br />
ReportViewer1.LocalReport.ReportPath = Server.MapPath("Report.rdlc");<br />
ReportDataSource rds = new ReportDataSource();<br />
rds.Name = "spTroubleTicket_AllTableAdapter";<br />
rds.Value = dsReport.Tables[0];<br />
ReportViewer1.LocalReport.DataSources.Add(rds);<br />
<br />
ReportParameter[] param = new ReportParameter[2];<br />
<br />
param[0] = new ReportParameter("param_TicketId", "F");<br />
param[1] = new ReportParameter("param_TimeRecieved", "T");<br />
<br />
ReportViewer1.LocalReport.SetParameters(param);<br />
ReportViewer1.LocalReport.Refresh();<br />
you can do any manipulation you want based on the code above my original code i allowed my users to select the column the wanted to be in the report. and i also allowed them to generate the dataset based on the specific search criteria they chose to use and use this as the dataset.
so in essence i create a data table with all possible columns and added it to my report and then allowed user to hide and unhide columns and generate there dataset to be used on the report dynamically
Kenny Edmond
|
|
|
|
|
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.
|
|
|
|