|
Hi
Can you post the part of the html code that giving the problem ?
|
|
|
|
|
< asp:TextBox id="TextBox1" runat="server">
it run as server but i face problem when running (debug)
its error : Control 'TextBox1' of type 'TextBox' must be placed inside a form tag with runat=server.
plz help me
|
|
|
|
|
sanaziuse wrote:
< asp:TextBox id="TextBox1" runat="server">
Place all your server controls inside a form with runat="server" attribute. For example,
< asp:TextBox id="TextBox1" runat="server"/>
< asp:TextBox id="TextBox2" runat="server"/>
< asp:TextBox id="TextBox3" runat="server"/>
|
|
|
|
|
what do u mean by Form?
how this will work?
|
|
|
|
|
thank you I fixed my problem by your help using
|
|
|
|
|
Hi
i think the problem is in HTML itself see the end tag of the form also
< asp:TextBox id="TextBox1" runat="server"> NO end tag for textbox <b<i>>No end tag for (Instead of )
OK next if then also preoblem is not solve give whole html file so that i can check it
|
|
|
|
|
Hi All,
You need to make the cell that contained the textbox run at server not only the table
|
|
|
|
|
I did ...it didnt solve the problem
|
|
|
|
|
sory try this code:
<table id="TABLE1" runat="server">
<tr>
<td style="width: 100px" id="TD1" runat="server">
<asp:TextBox ID="txtName" runat="server" ></asp:TextBox></td>
<td style="width: 100px">
</td>
</tr>
<tr>
<td style="width: 100px; height: 21px;">
</td>
<td style="width: 100px; height: 21px;">
</td>
</tr>
</table>
Mohammad Yousef
Software Developer
Image Tech.
-- modified at 10:18 Wednesday 31st January, 2007
|
|
|
|
|
Hi all,
In my appln' i want to play audioe/video file .
It is like the file is converted to binary format and saved in MSSQL 2005 database.
I saved file extension like(.mp3,.wav,.dat,.mpg) and file in binary form
any help is appreciatable
All I ever wanted is what others have....
CrazySanker
|
|
|
|
|
You can specify the url of a web page or a http handler for the media player and then you put your code to read the media file from DB to send out to the client in the web page/handler.
|
|
|
|
|
I don't have any sample code right here in my hand, but you might want to search on the net or write your own as it's simple enough. Basically, you normally use the media file ending with .mp3, .wav ...., to feed the media player, but now you specify a web page, say download.aspx instead (perhaps along with the id of the media file in the query string). Then in the download.aspx file, you just write some code to query the selected media file contents from DB based on the id passed in the query string. You finally write out the binary data to the Response object and that's it.
|
|
|
|
|
Thanq for ur valuable reply to my previous question.
My problem is "in asp.net,in calendar webcontrol,let us say for weekend days of everymonth should not be postback i.e u cannot perform click event on the weekend days or on particular date of particular month.
Neelima
|
|
|
|
|
You can use the DayRender event of the control and check if the day(e.Day ) is weekend or a particular day in a month.
|
|
|
|
|
Hi,
I am doing a asp.net app.My backend is MS-Access.Plaes send me the code to bring a access data base record to the DropdownList. Eg:To list all employee_names in a table to DropownList.
Praveen.K
System Engineer
Graviton Technologies Pvt.Ltd
|
|
|
|
|
Hi Praveen
if you are using .net 2.0,
You either use datareader and attach that with the dropdownlist (.net 1.1 and .net 2.0) OR create a acces datasource and attach it with the dropdown list...
Krishna Kumar
Kk
|
|
|
|
|
Sir that attaching code i am asking,My data base is attached to the page using oledb connection.Now on loading the page i want to display the data base records on the DropdownList
Praveen.K
System Engineer
Graviton Technologies Pvt.Ltd
|
|
|
|
|
Hi ..Try this..dont forget to include System.Data.OleDb namespace
OleDbConnection con= new OleDbConnection("Place your connection string here");
string sql="select id,name from users";
OleDbCommand sqlcmd = new OleDbCommand(sql,con);
con.Open();
DropDownList1.DataSource= sqlcmd.ExecuteReader(CommandBehavior.CloseConnection);
DropDownList1.DataTextField = "name";
DropDownList1.DataValueField = "id";
DropDownList1.DataBind();
Kk
|
|
|
|
|
sir,
What the "name" and "id" reprecents....Because both are bringing to the same dropdown list..
Praveen.K
System Engineer
Graviton Technologies Pvt.Ltd
|
|
|
|
|
Name is the test .. which will be displayed in the dropdown .. and id is the value which will be stroed internally...
Kk
|
|
|
|
|
sorry for the mistake...
Name is the text (and not test) .. which will be displayed in the dropdown .. and id is the value which will be stroed internally...
Kk
|
|
|
|
|
hi all,
can any one help me for handling files in asp.please help its urgent
|
|
|
|
|
You import System.IO namespace.. and use File object to handile files and Directory object to handile directory..
Kk
|
|
|
|
|
HI
You have system.IO namespace in dot net using that you can do what you want but What you want to do with file means read/write/append/update/delete ?
|
|
|
|
|