|
try adding the checkedbox to the trigger collection of the UpdatePanel
|
|
|
|
|
Above step + Make the UpddateMode to Conditional.
|
|
|
|
|
Thanks alot, that worked fine... Its odd I forgot completely that i had set it to conditional about two weeks ago, and that was causing the problem.
|
|
|
|
|
In my app there are a lot of CheckBoxes in UpdatePanels all fireing the CheckedChanged event.
Could you please post a bit of your aspx definition, otherwise it is impossible to help.
btw: I do not use the trigger collection on the UpdatePanel, UpdatePanels are all set to Conditional as UpdateMode.
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
hi,
in my application i have a checkbox, when user checks it n goes to another aspx page and returns to the previous page, the checkbox gets unselected...it must maintain the value.
How to do this...can anyone help?
im new to asp.net...can anyone tell me is it using sessions then how to use it..or viewstate...
|
|
|
|
|
by default asp.net handles viewstate, ,if not u can put this in the checkbox code in
EnableViewState=true
winnie
|
|
|
|
|
|
please send me the code to get values from the database(SQL Server 2000) to a dropdown list in ASP.Net.
-- modified at 3:14 Friday 24th August, 2007
|
|
|
|
|
Which database?
Which language?
Use an OleDbConnection and a command object to perform a sql query and then as you loop through your results populate the list. You can find documentation on this in the MSDN.
|
|
|
|
|
try the following code:
C#:
-----
SqlConnection con = new SqlConnection(connectionString);
String sql = "SELECT <field name=""> FROM ";
SqlCommand cmd =new SqlCommand(sql,con);
SqlDataAdapter sda =new SqlDataAdapter(cmd);
DataTable dt =new DataTable();
con.Open();
sda.Fill(dt);
DropDownList1.DataSource =dt;
DropDownList1.DataBind();
|
|
|
|
|
SqlConnection con= new SqlConnection("Server=IBM;DataSource=Master;User Id=sa;Pwd=sa");
SqlDataAdapter ada=new SqlDataAdapter("select * from customer",con);
DataSet ds=new DataSet();
ada.Fill(ds);
DropDownList1.DataSource=ds1.Tables[0];
DropDownList1.DataTextField=ds1.Tables[0].Columns[1].ToString();
DropDownList1.DataValueField=ds1.Tables[0].Columns[1].ToString();
DropDownList1.DataBind();
VanithaVasu
|
|
|
|
|
First create Connection with database and then
Dim databaseRecord As SqlDataAdapter
Dim dstRecord As DataSet
databaseRecord = New SqlDataAdapter("Select * from ", con)
dstRecords = New DataSet
databaseRecord .Fill(dstRecords)
dropdownlistname.DataSource = dstRecords
dropdownlistname.DataTextField = "<table_column_name>"
dropdownlistname.DataValueField = "<table_column_name>"
dropdownlistname.DataBind()
ash83
|
|
|
|
|
First create Connection with database and then
Dim databaseRecord As SqlDataAdapter
Dim dstRecord As DataSet
databaseRecord = New SqlDataAdapter("Select * from ", con)
dstRecords = New DataSet
databaseRecord .Fill(dstRecords)
dropdownlistname.DataSource = dstRecords
dropdownlistname.DataTextField = "<table_column_name>"
dropdownlistname.DataValueField = "<table_column_name>"
dropdownlistname.DataBind()
I hope this will workout
ash83
|
|
|
|
|
|
The Calendar Control has a property called SelectedDate. When you post back your first page, store that value from Calendar1 into a session variable. On your second page, you set Calendar2's SelectedDate to the session variable that has the original date.
|
|
|
|
|
Hello Everyone,
Can anybody let me know how set the width of a text box and other controls so that they look similar as they look in Internet Explorer
Actually i set a textbox width : 250 px; and it's being displayed great in Internet Explorer but in Mozilla it's looking just simple and even there is no effect in textbox's width..............................
|
|
|
|
|
Why don't u use CSS.
ash83
|
|
|
|
|
Actually i'm not much familiar to it can u suggest me how to use css
plzzzzzzzzzzzzzzzzzzzzzzzzzzz......
|
|
|
|
|
You should know. After all, you are THE KNOWLEDGE, no?
Search online for CSS stylesheets, you will find plenty of examples
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
try to use properties which are supported by both IE & mozilla
|
|
|
|
|
Hi to all.
I have problem here. I need to get array of directories contained in the directory where my default.aspx is. If I write so:
<br />
DirectoryInfo dir1 = new DirectoryInfo(@".");<br />
I'm getting the "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE" directory.
My question is: how can I get the DirectoryInfo of the directory where my default.aspx file is, not pointing to DirectoryInfo constructor the whole path?
|
|
|
|
|
string[] dirs = Directory.GetDirectories(Server.Mappath(""));
Please let me know if it helps.
|
|
|
|
|
Should I include some additional namespace?
|
|
|
|
|
Thank you a lot. It really helped.
|
|
|
|
|
Can anyone teach me how to scroll news or data which is present in SQL Server Database on the web page using asp.net
Thanks in advance.
|
|
|
|