Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How to insert a DataGrid in a skin with localization?How to insert a DataGrid in a skin with localization?
Previous
 
Next
New Post
1/3/2007 6:49 AM
 
If I have a request about insert a DataGrid into the skin. For example I insert a DataGrid to query the data base about the Site log. (this may be other datasource, just a example here.)

        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="SiteLogId"
            DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="SiteLogId" HeaderText="SiteLogId" InsertVisible="False"
                    ReadOnly="True" SortExpression="SiteLogId" />
                <asp:BoundField DataField="DateTime" HeaderText="日期" SortExpression="DateTime" />
                <asp:BoundField DataField="PortalId" HeaderText="PortalId" SortExpression="PortalId" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DatabaseConnectionString3 %>"
            SelectCommand="SELECT [SiteLogId], [DateTime], [PortalId] FROM [SiteLog] WHERE ([DateTime] >= @DateTime)">
            <SelectParameters>
                <asp:Parameter DefaultValue="2007/01/02" Name="DateTime" Type="DateTime" />
            </SelectParameters>
        </asp:SqlDataSource>

 

I can get the correct information I want, but the problem is the header text "日期" here. I can't see the localization character. Does anybody know how to solve this problem?

ps: these codes works fine when I used in the normal aspx file.

 
New Post
1/3/2007 1:50 PM
 

DataGrid in a skin?

Do you not want to make a module for your datagrid? Upload it to the portal and then bring it into the page the usual way via applying the module to the page in a particular pane in your skin?

Or have I understood you wrong?

Salar

 
New Post
1/7/2007 7:56 PM
 
I don't want use a module to wrap a DataGrid. This is just testing case.(Because if this testing work. Somebody who has ASP page for them before can feel more easy to mirgrate their page to DotNetNuke.) What I want is let a user who doesn't know how to create a dotnetnuke module but wants to have a little interactive with server side. DataGrid is my first testing case and I found there is a localization problem with it. The ASP code I used in a normal ASP page works fine but have problem when I insert into the skin. Could anybody give me some direction to solve this issue?
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How to insert a DataGrid in a skin with localization?How to insert a DataGrid in a skin with localization?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out