|
Both have their own signicficance if you want to do Client side coding then its better to use html controls else at the server side you should have control which could render at server side so use asp control or html control with run at server
|
|
|
|
|
Using the HTML controls will give you more control over the resulting markup but certain options (such as manipulating a drop down list) are only available on the ASP.NET controls.
|
|
|
|
|
ASP.NET controls - classes from System.Web.UI.WebControls namespace - are meant as abstraction for controls that goes beyond simple HTML. Web controls are typically compound of lot of javascript, HTML and server-side logic. You use HTML controls - from namespace System.Web.UI.HtmlControls when you don't need that abstraction, when you just need to control HTML elements from server-side.
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
|
|
|
|
|
HI friends
i am working in asp.net with c#
i have one gridview
i want to bind data on rowdataboud event of gridview but event is not fired.
plz help me
thanks
pathan
|
|
|
|
|
|
Hi
my problem is that rowdataboud event of gridview is not fired.
protected void GV_account_RowDataBound(object sender, GridViewRowEventArgs e)<br />
{<br />
}
this event of gridview is not fired.
pathan
|
|
|
|
|
Please check ur code again as this should not happen.
|
|
|
|
|
is the event handler hooked up to the grid view in the markup? (or added via code)
|
|
|
|
|
Can any one please give me coding of nochex responderurl varialble's page.
Thankx in Advance
|
|
|
|
|
Hi dear,
I am new to asp.net.
What would be ERD for online admission form for an educational institute.
regards
adil
m.adil.farooq
mcs & acca
adil-farooq@maktoob.com
|
|
|
|
|
Whts ur requirement. Which info do u want to keep in record.
|
|
|
|
|
did you mean Entity Relationship Diagram !!!!
Pavan Pareta
|
|
|
|
|
Yar Which Information do u want to save. Entities ?
|
|
|
|
|
thanks for your reply.
I got an assignment.... to design a online application form for an educational institute.
Please advise me your email address please ..i will send u request in complete detail.
hoping for your kind words.
regards
adil
|
|
|
|
|
|
Unfortunately you cannot insert pictures into standart <input type="text"> .
I can propose to search HTML editor tool (for example KTML) or write something similar with reduced functionality by yourself.
|
|
|
|
|
Sir,
I am developing an application in ASP.NET.It's using a MS-Access database and I am listing ten Emp_IDs from the table Employee to DropdownList.I want to select particular Emp_Name from Employee table on click on DropdownList. Pleas help me to solve this problem.
Praveen.K
System Engineer
Graviton Technologies Pvt.Ltd
|
|
|
|
|
What do u want to do??On select index change of combo u want to display the selected employee details or something else??
|
|
|
|
|
Make the auto post back of drop downlist true and use dropdownlist selectedItem prepertyn in the dropdownlist_selectedIndexchanged function ?
|
|
|
|
|
Your probelm is not clear when and why you want to select employee , please explain your question.
If you are filling dropdownlist use its property autopsotback=true which is false by default.
Now use SelectedIndexChange event of your dropdownlist.
if you have fetch data from database on the basis of rowselected in the dropdowlist.
You have to keep in mind that weahter you are using DataTexFiled property and DataValuefield property of the Dropdownlist
if you are using these two then you can query your database like this
sql="select * from tbl where field="+ dropdownlist.selectedValue or
sql="select * from tbl where field="+ dropdownlist.selectedItem
if you are not using these two properties then
you can use
sql="select * from tbl where field="+ dropdownlist.Text
Hope it will help you .
Naveed Kamboh
|
|
|
|
|
By using SQLString = "SELECT Name FROM test WHERE ID = +DropDownList1.SelectedValue"
I got the selected item from dropdown list.Now how can i place the out put of the query in a DataGrid? i want the syntax or coding?
-- modified at 23:32 Thursday 1st February, 2007
Praveen.K
System Engineer
Graviton Technologies Pvt.Ltd
|
|
|
|
|
I want a column in my datagrid to be edited by a drop down list.
I've put the dropdown list in the edititem template.
The contents of the DropDown is sourced from an SQLDataSource
And the data bindings set up a two way binding to the "Record" field.
I have added this update control parameter
Where:
"Recorded" is the Parameter name.
"gvOutgoing" is the GridView
"Selected Value" is the feild i want from the dropdownlist
<br />
<UpdateParameters><br />
<asp:ControlParameter name="Recorded" controlid="gvOutgoing" propertyname="SelectedValue"/><br />
<UpdateParameters><br />
This generates no errors except it passes a NULL value to @Recorded
Now I originaly thought i should put "ddlRecorded" (the drop down list) in the "controlid" as thats what i want the actaul value of.
except it kept giving me this error:
Could not find control "ddlRecorded" in ControlParamert "Recorded".<br />
<br />
Any adivce?<br />
<br />
Cheers
|
|
|
|
|
Because you want to get the value from the dropdownlist then the ControlID should point to this control, not the GridView. However, the dropdownlist is contained inside the GridView, therefore the value of the ControlID will be the uniqueID of the dropdownlist including the id of the containers. So it should be something like gvOutgoing$ctl02$ddlRecorded (or you can replace the $ with the : ). There's one more important thing is that the uniqueId of the dropdownlist varies from row to row, so you'll have to update the ControlID dynamically according to which row is being edited.
|
|
|
|
|
THANK YOU SO MUCH!
I've been pulling my hair out all day over that
Could you point me to some reference about this so I could understand why it works and possibly find a way to generate that automaticly?
Thanks again
|
|
|
|
|