Click here to Skip to main content
15,893,381 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Remote File Upload Through ASP .Net page Pin
Vodstok14-Mar-13 4:27
Vodstok14-Mar-13 4:27 
QuestionASP.Net MVC 4? Pin
silentspeaker11-Mar-13 3:38
silentspeaker11-Mar-13 3:38 
AnswerRe: ASP.Net MVC 4? Pin
Sandeep Mewara11-Mar-13 4:16
mveSandeep Mewara11-Mar-13 4:16 
AnswerRe: ASP.Net MVC 4? Pin
Thomas Daniels11-Mar-13 8:40
mentorThomas Daniels11-Mar-13 8:40 
Questionrunat=server Pin
tiwal11-Mar-13 0:47
tiwal11-Mar-13 0:47 
AnswerRe: runat=server Pin
Deflinek11-Mar-13 4:24
Deflinek11-Mar-13 4:24 
AnswerRe: runat=server Pin
Sandeep Mewara11-Mar-13 4:26
mveSandeep Mewara11-Mar-13 4:26 
AnswerRe: runat=server Pin
jkirkerx11-Mar-13 9:06
professionaljkirkerx11-Mar-13 9:06 
To elaborate on Sandeeps explanation a little more,

ASP.Net objects can be used on a web form, that uses combinations of just plain old HTML and ASP.Net Objects such as the panel control.

So you can do it 2 ways, 1 in straight HTML or 1 as an asp.net object
<div style="float: left;"></div>
or
<asp:panel id="panel1" runat="Server" ></asp:panel>


Now you can also create that object in code behind, or pure code
Dim panel_Container as Panel = new panel
with panel_container
  .style.add(HtmlTextWriterStyle.float, "left")
end with
controls.add(panel_container)


I don't know what the exact description is of using runat="Server" is, but I know you need it when using system.web objects on the web form, which is a .aspx page. The server will convert that object to HTML, and send the HTML back to the browser.

So a Panel object is a set of div tags, a label is a span tag.

I came from vb and asp classic and went to asp.net, and thought that all the elements on a webform has to be a asp.net object, but over the years, I learned how to better manage my time and produce consistent looking products by keeping asp.net objects to a minimum now.

I just use straight HTML now, and only use asp.net object for things like master pages, or anything I need to interact with in code behind on the server side. I never us the object font attributes or colors anymore, and use CSS for that.

In my opinion, don't get too crazy using the asp.net objects in the beginning, and just use html and CSS. As you start writing more code, then you can go back and convert some HTML to objects when needed.
Questionquery regarding session nature Pin
Tridip Bhattacharjee11-Mar-13 0:28
professionalTridip Bhattacharjee11-Mar-13 0:28 
AnswerRe: query regarding session nature Pin
Keith Barrow11-Mar-13 0:54
professionalKeith Barrow11-Mar-13 0:54 
GeneralRe: query regarding session nature Pin
Tridip Bhattacharjee11-Mar-13 1:07
professionalTridip Bhattacharjee11-Mar-13 1:07 
GeneralRe: query regarding session nature Pin
Keith Barrow11-Mar-13 1:22
professionalKeith Barrow11-Mar-13 1:22 
GeneralRe: query regarding session nature Pin
Tridip Bhattacharjee11-Mar-13 4:49
professionalTridip Bhattacharjee11-Mar-13 4:49 
GeneralRe: query regarding session nature Pin
Keith Barrow11-Mar-13 5:02
professionalKeith Barrow11-Mar-13 5:02 
QuestionNeed to crawl a Microsoft WebPage which live authenticated... Pin
Mutturaj Bali10-Mar-13 23:25
Mutturaj Bali10-Mar-13 23:25 
QuestionFind and replace string Pin
karthisomu10-Mar-13 20:41
karthisomu10-Mar-13 20:41 
AnswerRe: Find and replace string Pin
Sandeep Mewara10-Mar-13 20:58
mveSandeep Mewara10-Mar-13 20:58 
GeneralRe: Find and replace string Pin
karthisomu10-Mar-13 21:29
karthisomu10-Mar-13 21:29 
GeneralRe: Find and replace string Pin
Sandeep Mewara10-Mar-13 22:36
mveSandeep Mewara10-Mar-13 22:36 
QuestionPost a comment (message ) on my web page Pin
kryptong10-Mar-13 0:10
kryptong10-Mar-13 0:10 
AnswerRe: Post a comment (message ) on my web page Pin
Richard MacCutchan10-Mar-13 3:01
mveRichard MacCutchan10-Mar-13 3:01 
GeneralConversion Pin
sausri18-Mar-13 22:56
sausri18-Mar-13 22:56 
GeneralRe: Conversion Pin
Sandeep Mewara10-Mar-13 20:53
mveSandeep Mewara10-Mar-13 20:53 
QuestionNovice inquiry: Webpage input screen with monthly or yearly columns for financial statements inputting and viewing Pin
mtbenson0078-Mar-13 15:10
mtbenson0078-Mar-13 15:10 
AnswerRe: Novice inquiry: Webpage input screen with monthly or yearly columns for financial statements inputting and viewing Pin
jkirkerx8-Mar-13 19:37
professionaljkirkerx8-Mar-13 19:37 

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.