Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
C

chester_it21

@chester_it21
About
Posts
20
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Import information encripted from SQLServer Database to GridView
    C chester_it21

    hi.. why you do not use a similar process or its onDatabound ...

    ASP.NET database help sql-server sysadmin

  • WCF Reporting - Return Data
    C chester_it21

    hi eddieangel, First, you yourself should know what the actual function of WCF itself ... as explained in the description of his by microsoft or mentors about WCF, as the data link service, the latest technology in addition to its webservice before ... this is a first-time assuming I know WCF, and certainly his most important in WCF is a service that with extentions. svc and its interface ... there was DataContract or DataMember is the WCF its Properties, and of her, you can add another Helper class calss-its, You can add Business Logic or DataLayer like EF or Connection String or else it .... and respond to your question, his answer is that you can express all of his in WCF ... whatever ..   I wish there was a little light to determine his or her choice in the style of your code ..

    Web Development database question csharp wcf data-structures

  • how to get the live visitors of my website
    C chester_it21

    hi Tarek Showkot, you can use it with SignalR technology ... This will be more depth prior to its architecture SignalR .. SignalR recommended for asp.net, and also for Java, such as gdi yan presented by its makers Damian and David ... but if you're using PHP, you can see the following URL on the use of its in this URL ... http://forums.asp.net/t/1904617.aspx/1?SignalR+from+PHP[^

    Web Development question javascript php help tutorial

  • Select Excel File as Database table in runtime - ASP.Net - C#
    C chester_it21

    hi SravanKumar-A, yes it's possible.... first, his first save the file when uploaded, this means stored on the Server side, here you set it to accommodate PathLocation Files uploaded the results .. then, you read his file based PathLocation excel file it in the store .. how to read the contents of the data from the Excel file, you can googling, a lot of his examples .. You must read the contents of his excel how many rows, then you loop through the contents of each row to get her, then you input into a database row-a row .. after that you delete the file upload it if you save the file you do not use anymore .. yes, this is just a logical course to determine the appropriate code logic what its like ..

    ASP.NET csharp database asp-net tutorial question

  • Data Access From SQL SERVER to Asp.net Application
    C chester_it21

    hi Shuja, at its base is all activities when using Parameter Stored Procedure, we must define its parameters simultaneously dengna making its Stored Procedure. using LINQ or the Code definition ConnectionsClass (SqlClient, ODBC, OleDb etc. ..), its all the same to use parameters. but if you want to save the program code, you can make it with a parsing technique parameters such as the example below: in SP,

    ALTER PROCEDURE [dbo]. [GET_SALER_ORDER]
    (
    @ SALESNAME VARCHAR (20)
    )
    U.S.
    SELECT * FROM WHERE TABLE_SALES SALES_NAME LIKE @ SALESNAME

    and in its asp.net code, you can call him by implanting code like this:

    salesname var = "%" + parsingsalesnamevalue + "%";

    var sqlcmd = new SqlCommand ("GET_SALER_ORDER", sqlcon);

    sqlcmd.CommandType = CommandType.StoredProcedure;
                 sqlcmd.Parameters.AddWithValue ("@ SALESNAME", salesname);

    This means, if the value of its parsingsalesnamevalue empty, meaning the application code to call the data without the filter, if its opposite, meaning the application code to filter based salesname. is this what you mean, or you can tell me more detail about your wishes, hope this helps as a prefix you in building your applications

    ASP.NET question database csharp asp-net sql-server

  • Push Notifications When There is new File and Share File in server
    C chester_it21

    thanks for replay David Mujica, thanks for the advice ... I'll try it, whether it can be safe in terms of its web security and server ... or maybe there are other ideas .. but I thank you for his time ...

    ASP.NET csharp sysadmin question discussion learning

  • Push Notifications When There is new File and Share File in server
    C chester_it21

    dear all, I have a case, like this: I have 2 servers, the server A and server B, A server in my store the result data file upload from application A, How do it so I can download it from the server B / Applications B. without using FTP or shared folders term, and how can I find out if the way there is a new file on the Server A is the result of the application upload A. course using Microsoft Dotnet technology. thanks so much for his attention, any form of advice, referral and opinions greatly appreciated. greetings advance.

    ASP.NET csharp sysadmin question discussion learning

  • How to get the value of a dynamically created textBox in asp.net C#?
    C chester_it21

    here i am wellcaom..be happy, do not ever hesitate to ask questions and share your knowledge if you already master ..

    ASP.NET csharp question asp-net tutorial

  • How to get the value of a dynamically created textBox in asp.net C#?
    C chester_it21

    sorry, long time to replay...... first, The first, you should know basic first Page Postback ... every time you create dynamic controls in codebehind, even when you do click on a control button, the page is always postback, and automatically you will never get the value out of control, even control was not there at all when you try to use the event FinControl ... so, you have to declare the event re-create control when page IsPostBack. This sample code to start what you want .. this is just a beginning to open its forward your logic .. you can add it from the code sample I gave .....

    protected void Page_Load(object sender, EventArgs e)
    {
    if(!Page.IsPostBack) //this first time page Load/isPostback when call this page
    {
    GenerateControlSelf();//for generate custom control in holder(as PlaceHolder)
    }
    else //second Page.isPostback
    {
    // you must declare again your custom control in second Page.isPostback
    var txt = new TextBox { ID = "tbx", Text = DateTime.Now.ToString(CultureInfo.InvariantCulture), ClientIDMode = ClientIDMode.Static };
    holder.Controls.Add(txt);
    var ddl = new DropDownList { ID = "ddlx" };

                var nextYear = Convert.ToInt32(DateTime.Now.Year.ToString(CultureInfo.InvariantCulture)) + 1;
                var lastYear = Convert.ToInt32(DateTime.Now.Year.ToString(CultureInfo.InvariantCulture)) - 10;
                for (var n = lastYear; n < nextYear; n++)
                {
                    ddl.Items.Add(n.ToString(CultureInfo.InvariantCulture));
                }
    
    
                ddl.AutoPostBack = true;
                ddl.SelectedIndex = 0;
                ddl.DataBind();
                holder.Controls.Add(ddl);
            }
    
        }
        private void GenerateControlSelf()
        {
            
            var txt = new TextBox { ID = "tbx", Text = DateTime.Now.ToString(CultureInfo.InvariantCulture) ,ClientIDMode = ClientIDMode.Static};
            holder.Controls.Add(txt);            
            var ddl = new DropDownList {ID = "ddlx"};
    
            var nextYear = Convert.ToInt32(DateTime.Now.Year.ToString(CultureInfo.InvariantCulture)) + 1;
            var lastYear = Convert.ToInt32(DateTime.Now.Year.ToString(CultureInfo.InvariantCulture)) - 10;
            for (var n = lastYear; n < nextYear; n++)
            {
                ddl.Items.Add(n.ToString(CultureInfo.Inva
    
    ASP.NET csharp question asp-net tutorial

  • How to get the value of a dynamically created textBox in asp.net C#?
    C chester_it21

    Can you give your sample code, for us its logic flow analysis, or you did not make his code..??

    ASP.NET csharp question asp-net tutorial

  • Export data in Excel(xlsx) without using Excel Object from Datatable.
    C chester_it21

    Redirect/open window to pageListForExportExcel.aspx in page1.aspx so in page1 set input button to redirect/open window to pageListForExportExcel.aspx in page1 :

    and you need javascript or JQuery for create function redirect/open window to pageListForExportExcel.aspx

    <script type="text/javascript">
    function ExportToExcel()
    {
    var txt = window.open("pageListForExportExcel.aspx");
    }
    </script>

    in ASPX (pageListForExportExcel.aspx), use repeater for display you data from datatable,Example set to be this :

    <%@ Page Language="C#" AutoEventWireup="true" EnableSessionState="ReadOnly" EnableViewState="false" CodeBehind="BukuInduk_exportToExcel.aspx.cs" Inherits="LimSys.Web.Laporan.BukuInduk_exportToExcel" %>

    		<HeaderTemplate>
    			
    		</HeaderTemplate>
    

    NAME

    ADDRESS

    TELP

    GENDER

    <%# Eval("name")%>

    <%# Eval("address")%>

    <%# Eval("telp")%>

    <%# Eval("gender")%>

    and the last,in code behind pageListForExportExcel.aspx.cs use this :

         protected void Page\_Load(object sender, EventArgs e)
        {
            Response.Clear();// this for clear any response
            Response.Buffer = true; // and then set to Buffer is true
            Response.ContentType = "application/vnd.ms-excel";// and this is for call type what you want to set File extention for save....you can export to pdf ,if you change value Response.ContentType
    
            var process = new DataLayersCollections();//set here by name your BusinesLogic
            var list = process.GetListFromDataTable(); //set here by name your functions  
            rep1.DataSource = list;
            rep1.DataBind();
        }
    

    and the latter again ....... good luck .... hope this help you.....:D

    ASP.NET

  • FindControl not working in Gridview ItemTemplate of Button
    C chester_it21

    So, in event OnRowCommand(Code Behind) :

    Protected Sub GridView_RowCommand(sender As [Object], e As GridViewCommandEventArgs)
    Select Case e.CommandName
    Case "Findx"
    MethodFindControlValue()
    Exit Select
    End Select
    End Sub

    ..in MethodFindControlValue() :

    Private Sub MethodFindControlValue()
    For Each row As GridViewRow In ApprovalGrid.Rows
    Dim chkItemSelect As CheckBox = CType(row.FindControl("chkItemSelect"), CheckBox)
    Dim chkItemSelect As Label = CType(row.FindControl("lblname"), CheckBox)

    	Dim id As String = Convert.ToString(NameGridView.DataKeys(row.RowIndex).Value.ToString())
    Next
    

    End Sub

    hope this help you............:D

    ASP.NET csharp help

  • two buttons in one page
    C chester_it21

    can see Your code in aspx,and code behind.... so we can be clear shadow of the problems you

    ASP.NET com question announcement

  • Response and Redirect
    C chester_it21

    detailed explanation of mr.jkirkerx like here may be:

    var prevPage = Page.Request.Url.Referer.ToString();

    if(prevPage == "pageA.aspx")
    {
    Response.Redirect("pageA.aspx",false);
    }
    else
    {
    Response.Redirect("pageB.aspx",false);
    }

    ASP.NET csharp asp-net tutorial

  • DropDownList changed after reading SelectedValue !!!!
    C chester_it21

    whether in its Page_Load event has been added like this:

    (! Page.IsPostBack)
    {

    }

    to be this

        protected void Page\_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
            }
        }
    
    ASP.NET help database tutorial

  • gris view and sql id (have to set without GUI)
    C chester_it21

    if for Gridview and SqlDataSource, I guess you do not need to define its data type colum can, ...

    C# database css question

  • gris view and sql id (have to set without GUI)
    C chester_it21

    I think,if you want show all colums in GridView, you can define columns or not..both it's yes can... If you dont want define columns in gridview,you can set Autogeneratecolumns=true in Properties Gridview ,and result will show data column c1,c2,c3.. If you set Autogeneratecolumns=false,you must define columns in gridview..

    C# database css question

  • gris view and sql id (have to set without GUI)
    C chester_it21

    it all depends on your needs .... for example: If you have a query like this in your SqldDataSource to display the data to the Gridview :

    select * from TableMasterCity

    then you can use it to Bind dropdownlist or other control. it all depends on the manufacture of the SQL query that you created and the need for its control.

    C# database css question

  • Reading DBF file....???- - - - Please help Me- - -
    C chester_it21

    i am sory christian, I do not find your suggestion on the blog.. clearer please...

    C# question help csharp tutorial

  • Reading DBF file....???- - - - Please help Me- - -
    C chester_it21

    dear all, i have question,about my code have problem.... how do I know if this dbf file or not, with a different extension, but it is a dbf file example: "12345.bck" file above is actually a dbf file, which just changed its extention. i am develop using C#.... please all,help me

    C# question help csharp tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups