|
Thanks for ur reply....But my problem is that if i have a dropdownlist on my .aspx page then on collapse of the dropdown menu the menu goes behind the dropdownlist.It works fine for all other controls except dropdownlist.
Can any1 suggest me how to go about in doing this? Is there any other way to do this?
Please help me out in doing this....it's very urgent.
|
|
|
|
|
Hai friends,
I have a problem please solve me.
I have a dataset in Session["dset"].I want to find whether a datatable with name "dtable" is present in that dataset or not.If not present I would like to add to that dataset. I am doing like below.
DataTable dtable = new DataTable("dtable"); // Scope for this is
//through out the page
if (((DataSet)Session["dset"]).Tables["dtable"] == null)
{
((DataSet)Session["dset"]).Tables.Add(dtable);
}
When I execute this I am getting an exception as "Object Reference not set to an instance of an object". Please help me.
thanks,
from,
pavansagar
|
|
|
|
|
try this
ds.Tables.Contains("abc")
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
Hi firends ,
I have dropdownlist on my datagrid , i want that dropdownlist's zero index as null , and i want to bind my inserted record on first index.
Please Guide me.
Thanking you ,
Param
param
|
|
|
|
|
This you can do in onitemdatabound event of the datagrid. There you have to find the control and then insert one item at the top of it, like this:
DropDownList1.Items.Insert(0, New ListItem("select", "0"))
Best Regards,
Apurva Kaushal
|
|
|
|
|
I have one page in which user will entre some location details and after that admin person should be able to display image according to that location details...
Is there any Google earth API is available?? Plz help me out for this...
Gurudatta B. Shelke
|
|
|
|
|
How to copy a file from ftp to server?
or how to copythe file from one machine to another machine???
please Help me..
Gurudatta B. Shelke
|
|
|
|
|
hai
iam having 3 images
i need to place 1 image as backgound
2 image as top right corner
3 image would be top left
any ideas highly appreciated
with regards
|
|
|
|
|
I HAVE MULTIPLE LISTBOXES,STATE LISTBOX IM BINDING FROM DB AND THE 2ND LISTBOX IS BASED ON THE USER SELECTION,THE DISTRICT LISTBOX IS BASED ON THE SELECTED STATES FROM THE 2ND LISTBOX,
ON BUTTON CLCIK IM BINDING THE DISTRICT LIST BOX BASED ON THE STATES SELECTED,BUT THE 2ND LISTBOX ITEMS ARE GETTING CLEARED SINCE THE PAGE IS GETTING REFRESHED ON CLICKING BUTTON
HOW SHUD I PROCEED ,PLS HELP ME
all the listboxes are html control and im seleting the items in javascript
kavitha
-- modified at 1:49 Thursday 23rd November, 2006
|
|
|
|
|
how can i get the values form the cells of the excel sheet.
My requriment is to upload an excel sheet and read the valuses from the sheet.
thank you
|
|
|
|
|
I have problen connecting to the access database through
asp.net,
this is the page load code
i have already set the connection strings through the
design views...
private void Page_Load(object sender, System.EventArgs e)
{
oleDbConnection1.Open();
oleDbDataAdapter1.SelectCommand.CommandText="select
country from players";
dataReader=oleDbDataAdapter1.SelectCommand.Execute
Reader();
while(dataReader.Read())
{
nameList.Items.Add(dataReader.GetString(0));
oleDbConnection1.Close();
}
}
i got an error
c:\inetpub\wwwroot\dropdown_database\WebForm1.aspx
.cs(32): The name 'dataReader' does not exist in the
class or namespace 'dropdown_database.WebForm1'
c:\inetpub\wwwroot\dropdown_database\WebForm1.aspx
.cs(33): The type or namespace name 'dataReader' could
not be found (are you missing a using directive or an
assembly reference?)
what it means and how i can overcome this problem ??
|
|
|
|
|
have you careted new object of datareader class ? if not then please first try it.
|
|
|
|
|
Hi, The problem may be with var declaration. Use the following Declaration statement.
OleDbDataReader DataReader=new OleDbDataReader ();
|
|
|
|
|
Hi guys
There is one problem with my project.
I have treeview control which loads at runtime, i mean i am fetching data from database and fill the tree.
Now my prob is that i want to select each and every node and when i select node then on right side text of that node should come in one label.
I have tried all methods of treeview but in selectednodechanged event level 0 nodes can not be selected
and in other methods if node is selected first time then it is display but if i select it again then it is not displayed
Thanks in advance
Regards,
DJ Rock
|
|
|
|
|
got it
i have done
Tree1.SelectAction = TreeNodeSelectAction.Expand
So removing that it is done
Thanks any way
Regards,
DJ Rock
|
|
|
|
|
Hai,
I’ve to store the contents in word/text documents along with the format in SQL Server table field. The document may be upto 3MB. But, the length of varbinary and varchar fields in SQL Server can be of 8000 at the max.
Any suggestions….Please welcome.
-Priya
|
|
|
|
|
|
It's able to store only upto 250 characters. But, my file size may be upto 3MB.How can I store the content of such a file??
|
|
|
|
|
kvPriya wrote: It's able to store only upto 250 characters.
Not at all. It's able to store up to 2147483648 characters.
To store a binary file though, you should rather use the image data type. It's capable of storing up to 4 GiB.
---
b { font-weight: normal; }
|
|
|
|
|
Hello,
I am working with asp.net 1.1
I have a datagrid.I am using paging for the datagrid.
Now if I delete the record in the last page which is the only record in that page I am getting the following error.
"Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount."
How to handle this.
THanks in advance
Uma
|
|
|
|
|
This you can check in the when you are bindind the datagrid again after the deletion. Check for the condition and if true reduce the page to previous one.
Best Regards,
Apurva Kaushal
|
|
|
|
|
hey there,
use the following code after deleting ....this will solve your problem
dt is the datatable for binding grid (datasource actually)
Dim currentindex = DATAGRID.CurrentPageIndex
If dt.Rows.Count > 0 Then
If DATAGRID.CurrentPageIndex > 0 Then
If dt.Rows.Count / currentindex = DATAGRID.PageSize Then
DATAGRID.CurrentPageIndex = currentindex - 1
End If
DATAGRID.Visible = True
DATAGRID.DataSource = dt
DATAGRID.DataBind()
Else
DATAGRID.Visible = True
DATAGRID.DataSource = dt
DATAGRID.DataBind()
End If
Else
lblError.Visible = True
lblError.Font.Bold = True
lblError.Text = "No records exists"
DATAGRID.Visible = False
End If
|
|
|
|
|
hi use this code
Datagrid1.currentpageindex=0
rggards
saravanan

|
|
|
|
|
Hello All,
Help me for one code.
I'm using web form pages in conjuction with master pages. I'm facing some problem.
Let me know first, whenever I'm using webform & looks results in IE browser it shows form id
as 'aspnetForm'. can I change it.
Regards
Balasaheb
-- modified at 23:50 Wednesday 22nd November, 2006
-- modified at 23:51 Wednesday 22nd November, 2006
Balasaheb
Software Developer
Platform: Asp.net,vb.net
Database: SQL Server 2000
|
|
|
|
|
Good Morning,
I'm developing web application in c#.NET.
I have two tables on a webpage out of which I have print button on one table and i want to take print out of that table only .
using window.print() of javascript i got print of
complete page but i have to take print out of only that table that have print button on it.
So please tell some way to achieve this functionality.
Thank you.
yog
hui gfgh kgdgrt njjn hjgkn
|
|
|
|