|
|
master pages are published and are accessible to all
Ahamed Azeem
software Programmer
|
|
|
|
|
|
I have a scneraio where I need to show the search results in a table. The headers consists of column span in more than one rows.
I will try to draw the basic layout here but the actual layout would be more complex than this.
<table >
<tr border=1>
<td colspan=2 border=1> Column1</td>
<td colspan=2 border=1> Column2 </td>
</tr>
<tr border=2>
<td border=1> Col11 </td>
<td border=1>col12</td>
<td border=1> col21</td>
<td border=1> col22</td>
</tr>
<tr>
<td></td>
</tr>
</table>
The count of columns will be dynamic.
Now, I have two questions.
1. Please let me know if going for a gridview will be appropriate to do this?
2. The data that will be loaded could be huge. I cannot go for a paging approach. Please let me know if we can do a rendering whenever we have the data rather than waiting for full data to be buffered and then render at one shot. I am thinking about features such as response.flush
Please let me know any thoughts.
Thanks,
Afsal
modified on Thursday, August 5, 2010 5:14 AM
|
|
|
|
|
|
Well, that's the answer for my first question and I am aware of this can be done with grid view. Can you please give your thoughts to my second question.
Thanks.
|
|
|
|
|
|
Thanks for the reply.
In my case the column count is dynamic. Hence I cannot design a gridview in the aspx.
|
|
|
|
|
Hi guys,
i have a datagrid, i would like to get the value of one column
when user clicks on that row(item) so that i can show the details
of that row(item) on the next page. I have tried the below and
am not so sure how to proceed:
protected void available_ItemDataBound(object sender, DataGridItemEventArgs e)
{
foreach(DataGridColumn col in available.Columns)
{
if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item)
{
e.Item.Attributes.Add("onmouseover", "this.style.backgroundColor='#F9F9F9' this.style.cursor='pointer';");
e.Item.Attributes.Add("onmouseout", "this.style.backgroundColor='#ffffff';this.style.cursor='pointer';");
}
}
}
Does anyone know how i can manage to get the value of one column in tha
row that has been clicked?
Please help me
Regards
MS
|
|
|
|
|
Assuming your DataGrid is bound to a DataView with a unique ID value for each row,
include a Hypelink in your DataGrid columns - say hypDetails, maybe within a template column -
then you can put in your ItemDatBound code:
DataRow dr = e.Item.DataItem.Row;
HyperLink hypDetails = CType(e.Item.FindControl("hypDetails"), HyperLink);
hypDetails.NavigateUrl = "details.aspx?id=" & CStr(dr("ID"));
This will pass the ID value of that row as a parameter to the next page (details.aspx)
|
|
|
|
|
Thanks alot man, i will give it a try just now.... but unfortunatly
'CType' does not exist in C# only VB...is there an alternative to this?
Regards,
MS
|
|
|
|
|
OMG I've been outed! I'm sure a little Googling will sort you out...
|
|
|
|
|
in c#....
HyperLink hypDetails = (HyperLink)e.Item.FindControl("hypDetails");
|
|
|
|
|
Hi,
How to Change the Color of the Pie Chart in ASP.Net Application.
I have used ASP Charts in my application and the Pie Chart is Filled with some Default Colors. How shall i change them to some Specific Colors??
Please Help me fixing this Issue...
Regards
Sivan.G
|
|
|
|
|
|
I'm sending mail with excel attchment and it's working fine when I run it from my local
machine. but if I try to access it from another machine it's giving me this
Error:
Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
Error coming on first line of below code
Microsoft.Office.Interop.Excel.Workbook aBook;
Microsoft.Office.Interop.Excel.Application ExlApp = new Microsoft.Office.Interop.Excel.Application();
i have given all rights still error is coming
please help me out as soon as possible
|
|
|
|
|
It means that your application user does not have necessary permission to open an excel instance. Open DCOM Config, and Grant Launch & Activation permisson, and Access permission to Microsoft Excel Application.
Or you can see this [http://forums.asp.net/t/1303594.aspx]
|
|
|
|
|
i checked the same link and given rights like tht only
still it gives error
|
|
|
|
|
|
|
Grant Access Permission in DCOM Config for Network Service account (Application Pool user)
|
|
|
|
|
|
Keep the question as brief as possible. Also see this [link]
|
|
|
|
|
Hi,
I can see that, in my web.config file, my Entity Model set created the following connection string,
<add name="ConnStrDemo" connectionString="metadata=res://*/Models.SDB.csdl|res://*/Models.SDB.ssdl|res://*/Models.SDB.msl;provider=System.Data.SqlClient;provider connection string='Data Source=SDGSDG-PC\SQLEXPRESS;AttachDbFilename="D:\Demo\WebApp\App_Data\myDb.mdf";Integrated Security=True;MultipleActiveResultSets=True'"
providerName="System.Data.EntityClient" />
Obviously I need to change the data source part when I will deploy my web application my production server. My production server SQL Connection string should be something like this,
Server=XXX.XXX.XXX.XXX;Database=XXX;User ID=XXXX;Password=XXX;
Now, if I change the connection string from my web.config file to
<add name="ConnStrDemo" connectionString="Server=XXX.XXX.XXX.XXX;Database=XXX;User ID=XXXX;Password=XXX;" />
Will everything simply work in my production server ? I am afraid if the metadata part in the connection string is required by the Entity Framework or not. Please advice.
Regards.
|
|
|
|
|