Click here to Skip to main content
13,091,134 members (93,088 online)
Rate this:
Please Sign up or sign in to vote.
I copied and pasted an .html page to an .aspx file in visual studio . I added id and runat server to a link button , added a form tag with runat server attribute and added this code at the first of my code :
%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HostDomain.aspx.cs" Inherits="project.HostDomain" %>

but usually when you double click on a controll you see the code behind and you can code there ...I cant see the element id in the code behind and the page generates an error... PLZ HELP
Posted 26-Jun-13 7:46am
MaulikDusara 26-Jun-13 14:18pm
Please show your .aspx and .aspx.cs code
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

You have to Set property
of HTML controls

to use ID at codeBehind...... :)

Nirav Prabtani.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

before runn ur program just go through once ur design ...
that means in ur .aspx page below spilt and design source are their..
once go for design and check it their if their any errors..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.170813.1 | Last Updated 27 Jun 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100