Click here to Skip to main content
15,889,831 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Upload file to SQL database using html5 Pin
Richard Deeming10-Feb-14 8:11
mveRichard Deeming10-Feb-14 8:11 
GeneralRe: Upload file to SQL database using html5 Pin
Member 1057920210-Feb-14 11:39
Member 1057920210-Feb-14 11:39 
GeneralRe: Upload file to SQL database using html5 Pin
Richard Deeming11-Feb-14 1:03
mveRichard Deeming11-Feb-14 1:03 
GeneralRe: Upload file to SQL database using html5 Pin
Member 1057920212-Feb-14 11:57
Member 1057920212-Feb-14 11:57 
Questionweb api - global.aspx error - does not contain a constructor that takes 0 arguments Pin
miss78610-Feb-14 3:22
miss78610-Feb-14 3:22 
AnswerRe: web api - global.aspx error - does not contain a constructor that takes 0 arguments Pin
Richard Deeming10-Feb-14 4:42
mveRichard Deeming10-Feb-14 4:42 
GeneralRe: web api - global.aspx error - does not contain a constructor that takes 0 arguments Pin
miss78611-Feb-14 5:57
miss78611-Feb-14 5:57 
Questiona prefix of _ctl0_ to an asp.net link button Pin
Member 1058475710-Feb-14 0:25
Member 1058475710-Feb-14 0:25 
Hello Guys,

I have a simple asp.net page with an asp.net link button and asp.net content tag which point to a simple asp.net master page with an asp.net content place holder and a form tag. Here is the code of these two items:

Site.Master:

XML
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="WebApplication1.SiteMaster" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
    <form runat="server">
            <asp:ContentPlaceHolder ID="MainContent" runat="server"/>
    </form>
</body>
</html>


Default.aspx:

XML
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton>
</asp:Content>


From some reason when we run this simple web application on one server the id the link bhutton get is MainContent_LinkButton1
and when we run this application on another server the id the link button get is _ctl0_MainContent_LinkButton1

Doese someone have an idia why we get the prefix _ctl0_ in a specific server and in another server we don't get it?
AnswerRe: a prefix of _ctl0_ to an asp.net link button Pin
Deflinek10-Feb-14 2:24
Deflinek10-Feb-14 2:24 
AnswerRe: a prefix of _ctl0_ to an asp.net link button Pin
Richard Deeming10-Feb-14 3:07
mveRichard Deeming10-Feb-14 3:07 
GeneralRe: a prefix of _ctl0_ to an asp.net link button Pin
Member 1058475710-Feb-14 4:46
Member 1058475710-Feb-14 4:46 
GeneralRe: a prefix of _ctl0_ to an asp.net link button Pin
Richard Deeming10-Feb-14 4:52
mveRichard Deeming10-Feb-14 4:52 
GeneralRe: a prefix of _ctl0_ to an asp.net link button Pin
Member 1058475710-Feb-14 10:26
Member 1058475710-Feb-14 10:26 
QuestionHow to develop Time Scheduler in asp.net web application? Pin
vivek nuna10-Feb-14 0:21
vivek nuna10-Feb-14 0:21 
GeneralHow can Create this table in sql Pin
pabitra behera8-Feb-14 20:39
pabitra behera8-Feb-14 20:39 
AnswerRe: How can Create this table in sql Pin
Kornfeld Eliyahu Peter8-Feb-14 21:55
professionalKornfeld Eliyahu Peter8-Feb-14 21:55 
GeneralRe: How can Create this table in sql Pin
thatraja9-Feb-14 20:28
professionalthatraja9-Feb-14 20:28 
Questioninserting data in mysql database using c# Pin
Priyanka Sundaraj8-Feb-14 1:08
Priyanka Sundaraj8-Feb-14 1:08 
AnswerRe: inserting data in mysql database using c# Pin
Wombaticus9-Feb-14 3:10
Wombaticus9-Feb-14 3:10 
QuestionHow to tie a gridview row edit properly Pin
Member 105796217-Feb-14 6:55
Member 105796217-Feb-14 6:55 
AnswerRe: How to tie a gridview row edit properly Pin
Ali Al Omairi(Abu AlHassan)9-Feb-14 11:43
professionalAli Al Omairi(Abu AlHassan)9-Feb-14 11:43 
Questionhow to bind image from database to image control in asp.net Pin
Member 104959267-Feb-14 1:03
Member 104959267-Feb-14 1:03 
AnswerRe: how to bind image from database to image control in asp.net Pin
Richard Deeming7-Feb-14 1:58
mveRichard Deeming7-Feb-14 1:58 
Questionhow to convert image into text Pin
luckyhids7-Feb-14 0:21
luckyhids7-Feb-14 0:21 
AnswerRe: how to convert image into text Pin
Philip Cotan7-Feb-14 11:25
Philip Cotan7-Feb-14 11:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.