|
Thank u very much for reply me..was useful to me..
Muthu
|
|
|
|
|
Hi all,
I have to make one web page where user can add dropdownlist dynamically. As many time user clicks on one button it add one dropdownlist control to webpage. Is it possible to do this using ASP.NET without java script?
Thanks in advance,
Priyank
|
|
|
|
|
You can use a PlaceHolder control. On every click of the button event, create a dropdownlist and add it to the PlaceHolder
protected void btnCreateDropDown_Click(object sender, EventArgs e)
{
PlaceHolder phDropdownlist = new PlaceHolder();
DropDownList dropdown = new DropDownList();
dropdown.ID = "SomeName";
dropdown.DataSource = dataset1;
dropdown.DataTextField = "Text";
dropdown.DataValueField = "Value";
dropdown.DataBind();
phDropdownlist.Controls.Add(dropdown);
}
|
|
|
|
|
:-OHow to clear all cookies and Session ids after complete signout.
I have tried Session.Abandon()
Session.Contents.RemoveAll(),Session.Contents.Clear();Session.RemoveAll();
Session.Clear(); method.
whenever i click on Back button in the browser bt,the cookie and session id still alive.what i do? help me.....
GaneshKalai
|
|
|
|
|
Don`t worry.The page is actually loaded from the cache and the user cannot perform any server side operation unless and until you are checking the cookie on page load of every page.
|
|
|
|
|
I have same problem and I want members don't watch previous page after signing out.(like mail.yahoo.com)
|
|
|
|
|
Hi everyone,
I am shifting from .NET 1.1 to 2.0.I installed VS .NET 2005 with AJAX extensions. I am very fascinated by the term AJAX and its advantages but i didn`t get any samples for it. Can anyone spend a moment to help me out!!!!!
|
|
|
|
|
when you download
AJAX toolkit there are two version, the one with samples and the other without Samples.
also in the asp.net ajax home page, there is a lot of videos about how to start using the ajax toolkit, remember, the toolkit is just that a easy and fast way to use some AJAX capabiities.
http://www.asp.net/learn/videos/default.aspx?tabid=63#ajax
http://www.asp.net/ajax/downloads/
|
|
|
|
|
download ajax toolkit: http://www.asp.net/AJAX/Control-Toolkit/
toolkit demo live: http://www.asp.net/AJAX/Control-Toolkit/live/
kiet vu
(-,-)am from VietNamese.
|
|
|
|
|
HI, i have two gridview one will show all my product category and the other one my product related to the category selected in the gridview1. but when i create a ButtonField and activate the commandName to select i get the word "Select" in fronto of every single category, the funcionality works fine, but i dont want the word "select" there, how can i add fix that, or there is a better way to do that?
here is my test code
<asp:sqldatasource id="SqlDataSource1" runat="server" connectionstring="<%$ ConnectionStrings:vpx_newConnectionString %>"
="" selectcommand="SELECT * FROM [prod_categories]">
<asp:gridview id="GridView1" runat="server" autogeneratecolumns="False" datakeynames="pcatid"
="" datasourceid="SqlDataSource1" width="504px">
<columns>
<asp:buttonfield datatextfield="pcatname" commandname="Select" insertvisible="False">
<asp:sqldatasource id="SqlDataSource2" runat="server" connectionstring="<%$ ConnectionStrings:vpx_newConnectionString %>"
="" selectcommand="SELECT * FROM [vpx_products] WHERE ([pcatid] = @pcatid)">
<selectparameters>
<asp:controlparameter controlid="GridView1" name="pcatid" propertyname="SelectedValue" type="Int32">
<asp:gridview id="GridView2" runat="server" autogeneratecolumns="False" datakeynames="pid"
="" datasourceid="SqlDataSource2" width="596px">
<columns>
<asp:boundfield datafield="pname" headertext="pname" sortexpression="pname">
|
|
|
|
|
|
Hello All,
i want connect to sql server when i click on the button in my site.i know how i connect to sql server for a page that my information be in my page from sql server, but i don't know how i obtain my information from sql server, when i click on my button .
i double clicked in my design page on my button but i don't know what i must write there, my purpose is here :
protected void btn_Click(object sender, EventArgs e)
{
}
please help me,
thank you very much
H.Jafari
|
|
|
|
|
Just put a google query and you are done.Why don`t you try it googling before posting on the forum????
When you fail to plan, you are planning to fail.
|
|
|
|
|
How I can get the value of first column of the selected row of the gridview?
Thanks In advance
Ejaz
|
|
|
|
|
string s = gridview.Rows[0].Cells[0].Text;
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
Thanks for the reply.And how I can get the selected row id.
I tried with the following line but it returns the null value.
msgbox(gridview.rows(0).cells(0).text)
I am using VB Language.
|
|
|
|
|
gridview.SelecteIndex for the index or gridview.SelectedRow for the row itself.
But I strongly recommend that you start reading the documentation in the MSDN about the controls you want to use!
--> google --> search for "gridview site:msdn2.microsoft.com"
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
hi every buddy
i have a table with single colums named id.
and i want to change is column into array
please reply some one
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|
|
An array is not a valid datatype for an item in a database. Or do you mean you want to turn all those values into a single array ? Which bit are you stuck on ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Do you mean SQL Array for temp use in stored procedures etc or scripting/programming array in application? and whats your platform.
for SQL Array : Read following
The ARRAY In SQL Server 2000
[^]
In ASP.NET you can use dataset which will provide you the built in rows array for that column.
Any systematic work reflects its significance for a long time. So let's discuss the best...
|
|
|
|
|
actualy i am working on asp.net with c# and i have generate a data table which contain the one column name id. and i want to generate an array which contains to values of that table (id)
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|
|
DataTable dt = yourdataset.Tables[0];
List<int> ids = new List<int>();
foreach(DataRow row in dt.Rows)
{
ids.Add(((int)row[0]));
}
//Now you have the list of ids from the table.
|
|
|
|
|
Hi
I am using Visual Studio 2005 to develop a Web application. I have an image at the top of a Master page. I have created a separate folder, called SecurePages, for the pages that require authorization. I have specified the same master page for the normal pages as well as the pages in the separate folder. When I run the application, the image on the master page display correctly for the normal pages, but not for the pages in the secure folder.
Any ideas?
Thanks.
Kobus
|
|
|
|
|
Are you sure about the path of the image.
Any systematic work reflects its significance for a long time. So let's discuss the best...
|
|
|
|
|
Asalam-O-ALikum!
How can custmize lagend's label text in crystal report
B asharatA li
Internee
METESYS Lahore
Pakistan
|
|
|
|