Quantcast
Viewing all 14169 articles
Browse latest View live

ASP.Net --> InsertTemplate

Hi,

I'm new to DOTNET, we have a UI where the code is return in ASP.net, in the UI we have 3 templates:

1.Item Template (Front view)
2. Edit Template. 
3. Insert Template.

Here I would like to have one more Insert Template, can I use it. When I add a new InsertTemplate with a different name, its giving me the error validation XHTML 1.0 transitional: Element 'NewInsertTemplate' is not supported.

How to fix this.


Using an htaccess file or script file to change the maximum compression level of Deflate file compression.

Hey Guys! How can I create an htaccess file or script file to change the maximum compression level of Deflate file compression on Apache web server.

Encryption C# web config fails

I tried to encrypt web.config using the commands 

    cd C:\Windows\Microsoft.NET\Framework64\v4.0.30319

    aspnet_regiis.exe -pc "CustomKeys16" -exp

    aspnet_regiis.exe -pa "CustomKeys16" "NT AUTHORITY\NETWORK SERVICE"

    aspnet_regiis -pef "connectionStrings" "C:\Users\cnandy\Desktop\Test\Websites\AccountDeduplicationWeb" -prov "CustomProvider"

    aspnet_regiis -px "CustomKeys16" "C:\Users\cnandy\Desktop\New folder\encrypt.xml" -pri

they work fine first time. 
Now after decryption and changing something in the web config connection string if I again try to encrypt using the commands it shows the errors.

1. The RSA Key Container already exists ...
Failed !!
2.

Adding ACL for access to the RSA Key container...
Succeeded!

3.

Encrypting configuration section...
Succeeded!

4.

C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis -px "CustomKeys16"

 "C:\Users\cnandy\Desktop\New folder\encrypt.xml" -pri
Exporting RSA Keys to file...
Key not valid for use in specified state.

Please help as I am running out of ideas. 
Can't be it possible to re-run the encryption after modifying web.config and export successfully the key  ?                

problem with IIS server

I am installed visual studio 2013 in windows 10.IIS server is installed by turn on the windows features. when create website or opening already created web site it shows as like below.

[asp.net 4.0 has not been registered on the web server. You need to manually configure your webserver for ASP.NET 4.0 in order for your site to run correctly.]

I also tried IIS registration by using command prompt like aspnet_regiis -i.but it show like below.

C:\Program Files (x86)\Microsoft Visual Studio 12.0>aspnet_regiis -i
Microsoft (R) ASP.NET RegIIS version 4.0.30319.0
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation.  All rights reserved.
Start installing ASP.NET (4.0.30319.0).

[This option is not supported on this version of the operating system.  Administrators should instead install/uninstall ASP.NET 4.5 with IIS8 using the "Turn Windows Features On/Off" dialog,  the Server Manager management tool, or the dism.exe command line tool.  For more details please see ...........]
Finished installing ASP.NET (4.0.30319.0).

please help how to done it?

 

ComboBox collapsed items

Hallo,

ich benutze eine WPF ComboBox mit 5 Einträgen (als TextBlock) und 2 der Einträge sind auf collapsed gesetzt. Wenn die Combo mit der linken Maustaste geöffnet wird, werden auch nur die gewünschten 3 Einträge angezeigt. Wenn aber mit den Pfeiltasten die Einträge ausgewählt werden, werden auch die 2, die auf collapsed gesetzt sind, angezeigt (weißer Eintrag ohne Inhalt). Wie kann man das lösen ?

Forum languague, unexpected changed...

Hi, Forum languague, ++unexpected++ changed.... to spain, chinese

today 2 times.....

I am using WIN-7 PRO, english


dBase,FoxPro,MS Access 2003,(2010=Not rec.),Office 2010+ACC.2013 ,Symbian C++, AC.2013.SystemResource.GetCurrentFreeSize=?

banned account

Azure

Do any products come with Azure? Such as Visual Studio?

Can I use Microsoft Expression V4 with Azure? Or does Azure come with Web Site building capability?


How to remove sharing on onedrive programatically?

Please help me how to remove or revoke sharing on file in onedrive using c#?

How to auto login live account using client id / client secret in c# without enter credentials?

Please help me how to auto login live account using client id / client secret without enter login credentials in c#?

Integrate .chm file into web application

I am developing a web app , i want to integrate .chm file on menu click.

is it possible to integrate the help file in web app or this service is only restricted to windows form.

If possible kindly help me through this. This is really an urgent requirement.

Need to create Pdf even if the users does not have adobe in there machine

Hi,

Can anyone please tell me how to create pdf even if users does not have adobe in there machine.

Pdf certain text are static and some items are editable so how to chieve this.

Pls suggest


priyanka

Auto Install Windows 8 Language Packs

Hello.

First, by using the Google Translator I have written this article.

Please note that even if say later.

I try to create a language pack installation automatically bat file.

I want to do
current user in the display language, input language, format, location

Contents

new user accounts in the display language, input language, format, location

The copying.

Is there a command?

I will help you.

Image may be NSFW.
Clik here to view.

flight simulator 2004

i am looking for a way to automate the below proccess, can someone help me with a bact or script

Open up the registry using regedit. 

Word 2013 on premise recent files are under HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Word\File MRU

Recent files are located as Items in the File MRU key while recent places are locate as Items in the Place MRU key.  (Pinned items were marked as such as part of the key with the string "[F00000001]" instead of "[F00000000]".

Image may be NSFW.
Clik here to view.
exported the relevant keys fromHKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Word\File MRU:

Import the registry items to the O365 location:

HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Word\User MRU\OrgId_7C1003B06BB8E5C66E405E15389AD205F98BDC72318690F76D4FC2D36038D8D7\File MRU



Matrix Dynamics / Matriz Dinamica

using System; using System.Collections.Generic; using System.IO; class LeituraTxtArmazenamento { static void Main(string[] args) { string caminhoArq = @"c:\temp\test.txt"; string linha; string linhaeSepara; int countL = 0; int countC = 0; if (File.Exists(caminhoArq)) { using(StreamReader leitura = new StreamReader(caminhoArq)) { while ((linha = leitura.ReadLine()) != null) // --- Faz até existir linha preenchida { countL++; // --- Conta até o final do Arquivo para saber o tamanho da matriz em Linha linhaSepara = linha.Split(" "); while(countC < linhaSepara.Length) // --- Conta até o final da linha para saber o tamanho da matriz em Coluna { countC++; } } double [,] matriz = new double[countL, countC]; // Infelizmente isso não funciona } }else { //--- Mensagem de arquivo não encontrado! } }

Conforme o código acima, existe um arquivo texto que armazena uma Matriz que varia de tamanho. Necessitava então alocar essa matriz no arquivo .txt (tipo = string) Dinâmica em uma matriz do tipo = double no C#, onde através do countL e o countC eu descubro o tamanho da matriz no TXT.

Como resolver tal problema?

Att.

Please Help! Plseae Help

I have a gridview and has only three columns and I am trying to passID to stored procedure. Once stored procedure receives theID, it will insert to data to different table in different database. I all need is how to pass the value ofID to stored procedure onclick button. I am really stuck and I couldnt figure it out.

Here is my class

             

using System;
using System.Configuration;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Data.SqlTypes;
namespace SpecialmL
{
    public partial class Specialmail : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }
        protected void Button1_Click(object sender, EventArgs e)
        {
            SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ClientsConnectionString"].ConnectionString);
            SqlCommand comm = new SqlCommand();
            comm.CommandText = "sph_NonProfit_ReconMail_SingleCampaign2"; // stored procedure
            comm.CommandType = CommandType.StoredProcedure;
            comm.Connection = conn;
            Button btn = (Button)sender;
            string CommandName = btn.CommandName;
            string CommandArgument = btn.CommandArgument;
        }
    }
}

and Here is my aspx file

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Specialmail.aspx.cs" Inherits="SpecialmL.Specialmail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">

  void CustomersGridView_SelectedIndexChanged(Object sender, EventArgs e)
  {
    // Get the currently selected row using the SelectedRow property.
    GridViewRow row = CustomersGridView.SelectedRow;
    
    // Display the first name from the selected row.
    // In this example, the third column (index 2) contains
    // the first name.
    MessageLabel.Text = "You selected " + row.Cells[2].Text + ".";
  }

  void CustomersGridView_SelectedIndexChanging(Object sender, GridViewSelectEventArgs e)
  {
    // Get the currently selected row. Because the SelectedIndexChanging event
    // occurs before the select operation in the GridView control, the
    // SelectedRow property cannot be used. Instead, use the Rows collection
    // and the NewSelectedIndex property of the e argument passed to this 
    // event handler.
    GridViewRow row = CustomersGridView.Rows[e.NewSelectedIndex];
    
    // You can cancel the select operation by using the Cancel
    // property. For this example, if the user selects a customer with 
    // the ID "ANATR", the select operation is canceled and an error message
    // is displayed.
    if (row.Cells[1].Text == "ANATR")
    {
      e.Cancel = true;
      MessageLabel.Text = "You cannot select " + row.Cells[2].Text + "."; 
    }
  }

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
  <head runat="server">
    <title>GridView Select Example</title>
</head>
<body>
    <form id="form1" runat="server">

     <h3>GridView Select Example</h3>

     <asp:gridview id="CustomersGridView" 
       datasourceid="CustomersSource" 
       autogeneratecolumns="False"
       autogenerateselectbutton="True"
       selectedindex="1"
       onselectedindexchanged="CustomersGridView_SelectedIndexChanged"
       onselectedindexchanging="CustomersGridView_SelectedIndexChanging"   
       runat="server" DataKeyNames="ID">

         <Columns>
             <asp:BoundField DataField="ID" 
                 HeaderText="ID" 
                 InsertVisible="False" ReadOnly="True" 
                 SortExpression="ID" />
             <asp:BoundField DataField="CustomData" 
                 HeaderText="CustomData" 
                 SortExpression="CustomData" />
             <asp:BoundField DataField="Name" 
                 HeaderText="Name" 
                 SortExpression="Name" />
             <asp:TemplateField>
        <ItemTemplate>
           <asp:Button ID="AddButton" runat="server" CommandName="AddToCart" 
               CommandArgument = "Button1"  OnClick = "Button1_Click"
                  Text='Submit'
                   />
        </ItemTemplate>
        </asp:TemplateField>

            </Columns>

       <selectedrowstyle backcolor="LightCyan"
         forecolor="DarkBlue"
         font-bold="true"/>  

     </asp:gridview>

      <br/>

      <asp:label id="MessageLabel"
        forecolor="Red"
        runat="server"/>

      <!-- This example uses Microsoft SQL Server and connects  -->
      <!-- to the sample database. Use an ASP.NET     -->
      <!-- expression to retrieve the connection string value   -->
      <!-- from the Web.config file.                            -->
        <asp:SqlDataSource ID="CustomersSource"
            SelectCommand="select customdata, name,ID from asdm.dbo.Campaigns where ExtraInfo = 'NPT'"
            ConnectionString='<%$ ConnectionStrings:ASDMConnectionString %>' runat="server" />
               
    </form>
  </body>
</html>

how to stop page refreshing in asp.net using ajax

well,i had some data in my database,it posts data every time when next button clicks,i want to stop page refreshing every time when next button is clicked by using ajax,how can i do this?

DVLUP Challenge.

I was about to take the challenge 

Get started with predictive analytics

Read this:-

  1. Go to Azure Machine Learning, and click the "Get started now" button. You will need to sign-in with your Microsoft ID - please use the same one you use to access your DVLUP account.
  2. Once you have logged in, search for an example experiment. (such as “Binary Classification”)
  3. You will then open that experiment in Azure Machine Learning Studio and train the selected predictive model by clicking the "Run" button at the bottom of the page.
  4. After this experiment runs (it will only take a minute or so), click the "Create Scoring Experiment" button at the bottom of the page. Follow any on-screen instructions, as needed.
  5. Click on the "Publish Web Service" button at the bottom of the screen to publish your experiment.
  6. By clicking on the globe icon in the left-hand side, you will then see the Web Service URL and API key for your experiment. Now, take a screenshot to include the "experiment created on xx/xx/xxxx" and the full web page.
  7. Post your screenshot to either Twitter or OneDrive and include the link in the Comments for us to validate. You can find a screenshot example posted on Twitter @dvlup :

So what actually do i have to post as the comment?

the azure webpage or the tweet

And how can i do it using onedrive?

Thank You

Hyper-V: if i enable hyper-v Windows 10 pro does not boot

I have installed Virtualbox 5.0 and I need to use the VT-X to be able to virtualize 64 bits operative systems.

But also I need to use the emulator of windows 10 phone in Visual Studio 2015 Community for developing windows phone app. The problem is that if i activate hyper-v windows 10 does not boot and if I disable hyper-v then I can boot windows, but I can use the windows phone emulator.

There is a way to enable hyper-v and to have installed VirtualBox?

EDIT: I have asked this question on the VirtualBox forums and the answer is that I should ask to windows 10 support.

EDIT: 2 I have uninstalled VirtualBox and the problem persist. I have enabled VT-X in the BIOS and enabled Hyper-V and windows does not boot.

Thank so much.





Viewing all 14169 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>