Hi We are using Office Web component V10.0 in ASP.NET 3.5 website. The rquiremetn is to display xml data in OWC Pivot table component. How can I acheive that? Thanks
Follow your goals, Means will follow you ---Gandhi---
Hi We are using Office Web component V10.0 in ASP.NET 3.5 website. The rquiremetn is to display xml data in OWC Pivot table component. How can I acheive that? Thanks
Follow your goals, Means will follow you ---Gandhi---
Hi I have a listview inside a DIV which shows the scroll bars. At one time, let's say, 10 rows can be seen. I scroll down and click Edit on 25 row. To my surprise, the scroll goes to the first row (although if I go back to 25th row, the row is in edit mode) My issue, how I can make sure that the scroll bar maintains its position to 25th row after clicking on Edit button? Please advise. Thanks AJ
<style>
.StopScroll1{
Z-INDEX: 20; POSITION: relative;left:-1px; TOP: expression(document.getElementById("divGrid1").scrollTop);
}
</style>
<div id="div1" style="position: relative; width: 100%; width: 700px; height: 200px;
margin: 0px; padding: 0px; overflow: auto; overflow-x: scroll; overflow-y: scroll">
<asp:ListView ID="ListView1" runat="server
OnSorting="Sorting"
OnItemEditing=" EditList"
>
<LayoutTemplate>
<table class="TableReleative TableFH" style="width: 97.5%;" cellspacing="0" cellpadding="0"
runat="server" id="tblGrid">
<tr style="height: 20px;" class="StopScrollTL" runat="server" id="thGrid">
<th style="text-align: center;">
</th>
</tr>
<tr id="itemPlaceholder" runat="server">
</tr>
</table>
</LayoutTemplate>
<ItemTemplate>
.....
</ItemTemplate>
<EditItemTemplate>
.....
</EditItemTemplate>
</asp:ListView>
</div>
Follow your goals, Means will follow you ---Gandhi---
Hi I ran into a strange issue. I am able to put gridview inside asp:panel and scrolling works too. But the moment I down, the header of gridView scrolls above inside the panel and gets hidden. I just want to scroll rows, not the header. How can I do that? Please advise. Following is what I am using. On a side note, I have tried to wrap gridView in DIV but div doesn’t show the scroll bars in the first load for some reason. Thanks
<asp:Panel ID="Panel1" runat="server" ScrollBars="Both" Height="200" Width="60%">
<asp:GridView ID="GvBidLists" AllowSorting="true" AllowPaging="false" runat="server"
AutoGenerateEditButton="true" DataKeyNames="ListId" EmptyDataText="No data available."
AutoGenerateColumns="False" >
<EditRowStyle BackColor="skyblue" />
<HeaderStyle BackColor="LightSteelBlue" ForeColor="#0000C0" Height="20px" HorizontalAlign="Center" />
<RowStyle Height="20px" VerticalAlign="Middle" />
<FooterStyle BorderColor="White" Height="20px" HorizontalAlign="Center" />
<Columns>
<asp:BoundField HeaderText="ListId" DataField="ListId" SortExpression="ListId" />
<asp:BoundField HeaderText="ListName" DataField="ListName" SortExpression="ListName" />
<asp:BoundField HeaderText="ProductTypeName" DataField="ProductTypeName" SortExpression="ProductTypeName" />
<asp:BoundField HeaderText="Size" DataField="Size" SortExpression="Size" />
</Columns>
</asp:GridView>
</asp:Panel>
Follow your goals, Means will follow you ---Gandhi---
Hi I am using AJAX TabContainer control with following settings. When I change a tab the postback happens and whole page refreshes. Because AutoPostBack="true"> . To AJAxify the behavior, I added UpdatePanel around it but still the page is refreshing. The control need to go to server because user controls contains some grids which need to be populated. <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> <asp:UpdatePanel ID="upTLTop" runat="server" UpdateMode="Conditional"> <ContentTemplate> <AjaxCT:TabContainer ID="tcProducts" runat="server" ActiveTabIndex="0" Style="height: 100%; vertical-align: top; margin: 0px; padding: 0px;" OnActiveTabChanged="Products_OnActiveTabChanged" AutoPostBack="true"> <AjaxCT:TabPanel runat="server" HeaderText="MBS" ID="pnlMBS"> <ContentTemplate> <uc1:ucA ID="ucA1" runat="server" /> </ContentTemplate> </AjaxCT:TabPanel> <AjaxCT:TabPanel runat="server" HeaderText="ABS" ID="TabPanel1"> <ContentTemplate> <uc2:ucB ID="ucB1" runat="server" /> </ContentTemplate> </AjaxCT:TabPanel> </AjaxCT:TabContainer> </ContentTemplate> </asp:UpdatePanel>
How can I disable the page refresh and at the same time server side operation happens in this case? Please advise. Thanks AJ
Follow your goals, Means will follow you ---Gandhi---
Hi I have two user controls on one aspx page. UC1 has a grid which contains a link button column which user clicks. Based on the value of clicked cell, I need to show some data into UC2. 1. How do I pass data from UC1 to UC2? 2. How do I invoke a function of UC2 from UC1? Please advise. Thanks AJ
Follow your goals, Means will follow you ---Gandhi---
Hi I know that we can add the Validator.ValidateProperty call inside the buisness object and decorate it as [Required] like as follows. Reference : http://blogs.msdn.com/b/nagasatish/archive/2009/03/22/datagrid-validation.aspx
\[Required\]
public string FirstName
{
get { return firstName; }
set
{
if (value != firstName)
{
Validator.ValidateProperty(value, new ValidationContext(this, null, null) { MemberName = "FirstName" });
firstName = value;
NotifyPropertyChanged("FirstName");
}
}
}
My problem with this approach is that auto generated classes do not contain any validation logic inside them. I am generating the classes from an xsd (XSD2Code utility) and have to use these DTOs because all layers are utilizing them. Silverlight->WCF->Business layer->Data Access layer : All using common DTO classes My questions are : 1. How can I incorporate validations for datagrid entry fields without adding them into plain classes? 2. Is there a way that I can add all these rules in xsd and have them written out inside classes? Please advise. Thanks AJ
Follow your goals, Means will follow you ---Gandhi---
Hi I have a Silverlight application calling a WCF service. SimplehttpBinding stuff. 1. Every I make changes to silverlight xaml code, the web.config gets refrshed also. 2. Even if make any changes to web.cofig file, they get overwritten too. Its as if, some other process is writing these files. Why is that happening? How can I make sure that it does not get overwritten after every compile? Please advise. THanks AJ.
Follow your goals, Means will follow you ---Gandhi---
Hi Since I am building the columns from code-behind, I need to attach hyperlink into one of the columns from code behind. And also, I need to add the click event. How can I do that and its data-binding in code behind? Please advise. Thanks AJ
Follow your goals, Means will follow you ---Gandhi---
Hi In Excel, there is this feature for filtering the cells of a column. How can I implement excel like FILTER feature in Silverlight Datagrid? Please advice. Thanks AJ
Follow your goals, Means will follow you ---Gandhi---
Hi I have a page which holds a custom webcontrol and a usercontrol. I need to reference of webcontrol in usercontrol class. So, I make the declaration of webcontrol as public in page class. But, when I do “this.Page.”, I don’t see the webcontrol listed in list provided by intellisense. Most probably, I am missing something. In an asp.net page, how to get a reference of a custom webcontrol from a usercontrol? Please advise. Thanks Pankaj
Follow your goals, Means will follow you ---Gandhi---
Hi I have a class which is derived from WebPartZone class. As follows. LeanWebPartZone : Microsoft.Web.Preview.UI.Controls.WebParts.WebPartZone In this class, I want to set the helpVerb for providing unique helpPage URL for that webpart. Now, on one webpage I have multiple webparts and each webpart might have different helpPage URL. So, my problem is that, at any given time in LeanWebPartZone class, how do I know for which WebPart I am setting the HelpVerb? Please advise. Thanks Pankaj
Follow your goals, Means will follow you ---Gandhi---
Hi I am building a library of asp.net user controls which I am deriving from a custom UserControlBase class which further derives from actual UserControl class. Hierarchy looks like this : ASCX -> UserControlBase : UserControl I have this requirement to put a border around all the ASCX's. So, I thought if I can modify UserControlBase it will apply to all ASCXs. I tried following code in Page_Load of UserCOntrolBase but its not working
this.Attributes.Add("style", "border-color:#FFFF66;border-width:4px;border-style:Dashed;");
What should I do to make it work? Please advise. Thanks AJ
Follow your goals, Means will follow you ---Gandhi---
Latency is not that big of issue in this game. But, I am curious if there are other ways supported by .Net. Any suggestions Ray?
Follow your goals, Means will follow you ---Gandhi---
I will check Sacha's article. He writes some amazing things. Thanks for pointing. :)
Follow your goals, Means will follow you ---Gandhi---
I heard WCF are promising but not sure if they fit for my requirements. Can WCF in such case? If yes, please provide some example links. thanks
Follow your goals, Means will follow you ---Gandhi---
Hi What is the generic way to maintain state in multi-players game over internet, which can be played on GUI of WPF or Silverlight? One player might be on WPF gui and others might be on Silverlight GUI. P2P, HTTP server or some other technique? please advise. thanks, AJ
Follow your goals, Means will follow you ---Gandhi---
Usually, such system have default assigned port. You can probably find that info in the documentation... Look in configuration section. If firewall team does not allow to open that port, you can try different ports. HTH
Follow your goals, Means will follow you ---Gandhi---
Hi There is a list box with some items in it. Also there is a grid with 3x3 matrix. The user will be dragging an item and dropping on one the cells of grid. Most of the samples I found are about dragging-dropping from one listbox to another listbox. But I want to drop in one cell of grid. How can I acheive this? Please advise. thanks PJ
Follow your goals, Means will follow you ---Gandhi---
Hi I am trying to develop a multi player game over the internet. A 2 to 4 players game in WPF. 1. Since I want to make it available via browser also at some point, is "WPF-Browser Application" a good choice? 2. What approach I can follow to maintain the connectivity between players? Peer to peer or do I need to maintain a server in between all players? 3. How can I transfer the information across all instances and maintain data state? Please advise. thanks PJ
Follow your goals, Means will follow you ---Gandhi---
Hi I have a 3x3 matrix grid. If a user on particular cell, how can I identify the cell cordinates after click? Please advise. thanks PJ
Follow your goals, Means will follow you ---Gandhi---