|
Arindam Tewary wrote: Performancw wise Input with Ruat=server is better
I don't think you will see a huge difference as both needs to processed to render HTML input. ASP.NET engine is quick enough to do this.
Arindam Tewary wrote: asp:textbox webcontrol is converted into input control from server(when it is rendered by browser)
ASP.NET just converts the asp:textbox to equivalent HTML input control and emits the HTML to response and it is rendered by browser. Browser is not the one who is converting from asp:textbox HTML input.
Arindam Tewary wrote: This is an extra step done by server if you use asp:textbox.
This step is happening for input element with runat=server attribute.
|
|
|
|
|
N a v a n e e t h wrote: both needs to processed to render HTML
In HTML server control, actually the code written is copied back to browser.
But if you have asp web server server control, AS.NET engine emits equivalent HTML output therfore a CONVERSION happens. Yah I agree system quick enough, still you cant ignore the basic difference of HTML and asp web server controls.
It was never told that browser does that conversion. It was wriiten that server does that job.
Anywaz good post by you. I must appreciate.
Thanks,
Arindam D Tewary
|
|
|
|
|
Arindam Tewary wrote: In HTML server control, actually the code written is copied back to browser.
Not exactly. It also will go through all the phases like loading/saving viewstate etc.
Arindam Tewary wrote: It was never told that browser does that conversion. It was wriiten that server does that job.
I know, but something written in the brackets was giving confusion.
|
|
|
|
|
You won man !!!
Thanks,
Arindam D Tewary
|
|
|
|
|
Arindam Tewary wrote: You won man
you are sporty.
|
|
|
|
|
It depends on purpose certainly..
but I use "input/select.. with runat=server" as much as possible because you find difficult to perform Javascript functions like "OnClick" or "OnChange" or "OnKeyUp"... likewise on server controls. It give strange error at that perticular HTML line..
Using "input/select.. with runat=server" solves that smoothly.
And as I have to use Javascripts frequently with my coding, i prefer runat=server
comments pls.
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
Hi Ananth,
First you can never have a OnClick or OnChange in javascript. This are server side event so you can never haandle that using javascript (No way)
In javascript what you handle is onclick and onchange event. Please check the case of this (Upper case and lower case which I mean).
Thanks,
Arindam D Tewary
|
|
|
|
|
Anand Desai wrote: as much as possible because you find difficult to perform Javascript functions like "OnClick" or "OnChange" or "OnKeyUp"... likewise on server controls. It give strange error at that perticular HTML line..
Then you are not using it in the proper way. Since ASP.NET 2.0, most of the server controls provide "OnClientClick" event which can be used to hook JS methods. You can also use Attributes.Add() to add these type of attributes to the control as well.
|
|
|
|
|
Thank you all for your replies. My general perception from all your replies is that it doesn't really matter for simple textboxes what method one chooses.
I wonder though with a dropdownlist, with lets say a 100 entries (static, written inside the markup, so no databinding), would there be a difference in using select runat="server" and asp:dropdownlist runat="server ?
|
|
|
|
|
how to get whole url with querystring of addressbar like
http://www.codeproject.com/script/Forums/Edit.aspx?fid=12076&floc=/script/Forums/View.aspx
|
|
|
|
|
Hi,
Request.Url.ToString();
Thx,
Gayani
|
|
|
|
|
Hi,
I m looking to fetch data from excel file and insert in to sql server 2005 database using asp.net c# 2.0. I can do it with sqlbulk copy but I have an extra column field that is not in excel sheet. Can any one suggest me how I can insert that column data. It is basically ID field which I want to keep for table.
thanks
|
|
|
|
|
I have not worked with Sql BulkCopy. But have a thought.
Would it be helpful that you have an Identity column in the table which is updated by BulkCopy. So you can easily update/insert except ID column.
Thanks,
Arindam D Tewary
|
|
|
|
|
Hi Arindam,
Thanks for reply.
I too thought of keeping an identity column initially but I think its better to have any other alternative coz I want an alphanumeric value for ID and its not possible with Identity column.
SQLBULK copy will directly copy all the rows to their respective rows in sql server DB but since I dont have that ID column in Excel and hence its getting difficult for me.
Other option is to add the id column to excel file but data is in thousands so....
Any suggestions?
|
|
|
|
|
Hello,
I have created table dynemically. and then bound the value from database.
and i want to give paging in the table.
how can i give paging please suggest me....
Thanks
Raushan
|
|
|
|
|
|
|
How about GridView control ?
Apurv
|
|
|
|
|
What u want to know about Gridview control.....?
|
|
|
|
|
Well gridview has custom paging in it, you can just turn that on rather then using your own paging
|
|
|
|
|
Actually i also facing problem in gridview custom paging. how to give own paging in gridview, DtataList.....and so on.
Please give me some tips about this....
If u will give reasponse then its my pleasure...
so.. Please Reply me......
|
|
|
|
|
raushan_9 wrote: also facing problem in gridview custom paging.
whats the problem?
|
|
|
|
|
actually i do not want to use grid view default paging. i want to give own paging in gridview...
Because if we use gridview deafult paging then its bind all the record every time from database..
but i want to use own paging(custom paging). then it bind only one page record ata a time from database.
so please help me for use own paging(custom paging) in Gridview..
|
|
|
|
|
.netman wrote: Well gridview has custom paging in it, you can just turn that on rather then using your own paging
Thanx
Apurv
|
|
|
|
|
i had created a crystal report and it is displayed in a crystal reportviewer control.
problem is whenever i click any links in the report,including drilldown in the reports,the report is not getting displayed,plz help me regarding this
|
|
|
|