Displaying and updating an HTML table with ASP.NET -
so, pretty new web programming , understand basic syntax, not many advanced features or anything. also, don't have experience javascript, again pretty understand syntax , general programming knowledge experience c++, can figure out.
here's i'm looking do. have web service returns dataset variable/array/data structure. since .net type, figured easiest access service asp.net well. can read data in web service , display individual elements specifying table, row, , column, know data there. however, want display results in table. did work(i don't have code me right now, however) when page first loads. web service method accessing performs sql query, , want able type in query string text box, submit server, , have update/populate/create table. i'm sure simple, said i'm new web programming.
i remember seeing page on w3's tutorial site used "web pages" syntax inside html table, , used foreach loop iterate through, create new rows, input data, etc. understood that, i'm not sure how accomplish similar "web forms" type of project(i'm stuck using visual studio or notepad++ since i'm doing on work pc, , think .cshtml files use different editor)
i'm thinking either form of inline code, or modifying html element c# code (within codebehind file) or using inline code within html element itself. i'm not sure how write event handler in asp.net, can use html form/button call asp.net function(again, within codebehind file)? also, sorry if similar has been asked, i'm going little crazy since i've learned web dev stuff on last week! btw, can explain happens asp.net elements when returned browser? server convert them basic html elements? application working on used on mobile devices needs simple possible on client side.
thank you.
you should able looking in asp.net application without many headaches. should able add controls page , call web service on postback.
is there reason results have bound in inline code? if not why not @ using asp.net gridview or data repeater control. can add controls web page , bind them in code behind once have retrieved values web service.
with gridview should able set columns want visible, set data source , call data bind. when rendered browser appear html table.
with repeater control have bit more work setup item template should work you.
Comments
Post a Comment