|
Hello,
Using view source option of browser, Check that ClientID you are passing as argument and actual id are same.
Kiran Banker
|
|
|
|
|
Thanks for reply,
I Checked Id's both are same.
|
|
|
|
|
Try this
document.getElementById('lnktext').value;
Kiran Banker
|
|
|
|
|
It gives following error after using the code which you suggested.
document.getElementById("lnktext") has no properties
|
|
|
|
|
var LblCountry =document.getElementById(lnktext.ClientID);
alert(LblCountry);
// It will alert as object. If it is not then try to copy same id from source and check.
var ltext= LblCountry .value;
Kiran Banker
|
|
|
|
|
I have a form with some textboxes and a dropdown list.
The dropdown list has a high number of items in it and I want to be able to type in a textbox which will prompt the dropdown list selected text to select the list item which closely matches.
so for instance if I have a dropdown list with Text Items :
c tutorial
c datatypes
c arrays
and I type in the Textbox C language
then I want the selected Item in the dropdown list to be 'c tutorial' as this is the first item which closely matches the entry in the textbox.
can anybody help?
|
|
|
|
|
|
Hi all, I am facing a problem in generating an excel file from an ASP.Net Web Application. When I run the code from within Visual Studio 2005, the file generates properly without any problem, whereas, When I configure the application in IIS and run the same from there, no file is getting generated and the page seems to be hung up. What might be the reason.
I have included Microsoft.Office.Interop.Excel.dll 11.0. Kindly help me.
Thanks in advance.
Neeraj
-----Have A Nice Day-----
|
|
|
|
|
I guess... there might be some permission issue, where the IIS user cannot write on the directory.
Abhishek Sur
|
|
|
|
|
Hi Abhishek, how do I set the permission for the anonymous user on the folder where I wish to write the excel file.
-----Have A Nice Day-----
|
|
|
|
|
Just right click on the folder and add permission to the users you want.. isnt this what you are doing?
Abhishek Sur
|
|
|
|
|
hello,
How to create a folder for storage uses accessed from iis account only.
Do someone have any idea.
best regards
dghdfghdfghdfghdgh
|
|
|
|
|
Give the Sharing and Security Right to user ASPNET for the folder. You will be able to the folder for storage purpose.
|
|
|
|
|
Hello everybody,
This is my problem.
I'm using textboxs and getting the values from the users. The values from the text boxes are read and stored in the SQL database and as well as binded to the grid. There is NO connection between the grid and the sql database. I want to delete a particular row corresponding to a primary key. I also don't use arraylist to index and delete it. I want to kow whether there is any provision to delete a record in the grid without the sql databse help or the arraylist help. Plz help me out in this. Thanks in anticipation.
Regards,
prabhu
Prabhuram Natarajan
|
|
|
|
|
Every Grid is bound to a DataTable.
You store the datatable in memory, when user request a row delete from grid. Remove the Row from datatable and rebind table to grid.
|
|
|
|
|
But is it possible to delete it without storing the datatable to memory?
Prabhuram Natarajan
|
|
|
|
|
Amandeep Singh Bhullar wrote: Every Grid is bound to a DataTable.
This is not correct.
GridView/DataGrid can take any IEnumerable type as data source.
|
|
|
|
|
Hi, i am reading data from csv file to datatable. But some data is not reading. if the columns contains data with hyphens "234-456" is not reading. if hypen appears in text like 'sat-ish' is reading...why?
if (_fileexten == ".csv")
{
string str = Path.GetFileName(_filename);
OdbcConnection conn = new OdbcConnection("Driver={Microsoft Text Driver (*.txt; *.csv)};Dbq=" + _fpath + "\\;Extensions=asc,csv,tab,txt;Persist Security Info=False");
conn.Open();
string sql_select = "select * from [" + str + "]";
OdbcDataAdapter myCommand = new OdbcDataAdapter(sql_select, conn);
myCommand.Fill(myDataSet, "csv");
dt = myDataSet.Tables[0];
conn.Close();
myCommand.Dispose();
}
G. Satish
|
|
|
|
|
Well, I think the OleDbProviders chooses according to the no of occurance basis.
To honor mixed mode, I think you need to include some Extended properties.
Use
Extended Properties=HDR=YES;IMEX=1
IMEX = 1 will honor mixed mode and choose everything as string.
To do that you also need to set the registry engine
HKLM\Software\Microsoft\Jet\4.0\Engines\YourEngine\ImportMixedTypes = Text
This fixed once, to me.. hope this works for you too...
Abhishek Sur
|
|
|
|
|
I'm filling a dropdownlist using an update panel. Following is the code:
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<asp:DropDownList ID="CompanyList" runat="server"
Height="22px" Width="155px" AutoPostBack="True" AppendDataBoundItems="true"
onselectedindexchanged="CompanyList_SelectedIndexChanged" >
<asp:ListItem Selected ="True" Text="--Please Select--"></asp:ListItem>
</asp:DropDownList>
<br />
<asp:DropDownList ID="ProjectList" runat="server" AppendDataBoundItems="true"
Height="23px" Width="155px" >
<asp:ListItem Selected ="True" Text="--Please Select--"></asp:ListItem>
</asp:DropDownList>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress ID="UpdateProgress2" AssociatedUpdatePanelID="UpdatePanel2" runat="server" >
<ProgressTemplate>
<span class="ProgressBar">
Data Loading. Please Wait....</span></ProgressTemplate>
</asp:UpdateProgress>
Everything is working fine and data is populating in both the dropdownlists without postbacks. After saving the data, I need to clear the dropdownlist by keeping the item "--Please Select--". When I say, ProjectList.Items.Clear();, all the items are getting cleared. I am not sure how to achieve this. Anybody please provide any help on this.
Thanks,
|
|
|
|
|
meeram395 wrote: ProjectList.Items.Clear();, all the items are getting cleared
it will clear all the Items.
You can achieve your task using two differnt ways
Firstly,
After clearing the Dropdown add new item "--Please Select--"
Secondly,
Try using method Remove or RemoveAt or list.Items
|
|
|
|
|
Thank you. i have added it again and it worked. Thanks a lot.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Thank you. I have added it again and it got worked.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Hi, Iam using Repeater control in my Project. I want to get the specified values from the row when the clicked? Can u give the code or any Idea? Its urgent. pls...
karthick_gc
|
|
|
|
|
Karthick_gc wrote: Its urgent. pls...
Yeah I know
Since it is urgent, I can give you a hint. No server side events are fired when an item is clicked in the repeater. Work with JS and use the click event.
|
|
|
|