|
window.status='hi username';
You can use this code to display in status bar of the window using javascript
|
|
|
|
|
Hi
i am developing asp.net web application in which i have to read and send all the name ranges of the excel sheet i am using com Excel object but it is taking too much time to read the excel sheet . Please suggest me what to use for performance basis ?
Here is code
ExcelObj=new Excel.Application();
Excel.Workbook theworkbook=null;
string[] strColumnDetails=new string[180];
int excelRows=1,excelColumns=1;
string[] excelColumnnames={"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"};
int columnRecordIndex=0;
try
{
theworkbook = ExcelObj.Workbooks.Open(path,0,true,5,"","",true,Excel.XlPlatform.xlWindows,"\t",false,false,0,true,false,false);
Excel.Sheets sheet=theworkbook.Application.Worksheets;
Excel.Worksheet worksheet=(Excel.Worksheet)sheet.get_Item(1);
int rows = worksheet.UsedRange.Rows.Count;
int columns = worksheet.UsedRange.Columns.Count;
for( excelRows=1;excelRows<=rows;excelRows++)
{
for( excelColumns=1;excelColumns<=columns;excelColumns++)
{
try
{
Excel.Range ExcelRange=(Excel.Range)worksheet.Cells[excelRows,excelColumns];
Excel.Name rangeName=(Excel.Name)ExcelRange.Name;
string columnName= rangeName.Name.ToString(); //strColumnNames[columnRecordIndex,2];
strColumnDetails[columnRecordIndex]=columnName+"#$"+excelColumnnames[excelColumns]+"$"+excelRows.ToString();
columnRecordIndex++;
}
catch(Exception ex)
{
ex.ToString();
}
}
}
}
catch(Exception ex)
{
ex.ToString();
}
finally
{
ExcelObj.Quit();
}
-- modified at 2:42 Monday 19th June, 2006
|
|
|
|
|
take a look on this link http://zamov.online.fr/EXHTML/CSharp/CSharp4.html
Pilo
|
|
|
|
|
Hi Pilo i can't access that page from organization please give some other link or paste the content on that page please
|
|
|
|
|
Hi all,
I am implementing two pages for resume Search one page contain Brief information about searched resumes as shown in following link.
http://dynamicscareers.com/Employer/Resumes/List.aspx?
Second page Is contain detail information about selected resume as shown in
http://dynamicscareers.com/13964
I completed First Page.Now I want to create secod page,So what should use(i.e.Nested datagrid,Repeater,Gridview etc.) If some one have implemented such thing please let me know
Let's Teach Life To Laugh......
Regards,
Nagraj
|
|
|
|
|
In my page i am having a dropdownlist control. I have populated the data for this dropdown using javascript.
i.e it has 5 items.
But upon postback ,it says that the data in the dropdown is 0.How to solve this.
|
|
|
|
|
I think to make a Postback you must use a control that run at server...
May you write your code so you make every thing clear?
"I am too late but i will never give up"
|
|
|
|
|
see my code
1<code>.<asp:DropDownList ID="ddemp" runat=server></asp:DropDownList></code>
2.I have used this javascript to populate the dropdown ( For sample i have used the count,it is getting at runtime)
<code><script language=javascript type="text/javascript" >
function add()
{
var ddlobj = document.getElementById('ddemp');
for (var count = ddlobj.options.length-1;count >-1; count--)
{
ddlobj.options[count] = null;
}
for (var count = 0; count < 5;count++) // For sample i have used the count,it is getting at runtime
{
value = count;
text = "List" + count ;
listItem = new Option(text, value , false, false);
ddlobj.options[ddlobj.length] = listItem;
}
}
</script></code>
3.while clicking one more button, i am not getting the selected value. it shows ddemp.Items.Count as 0
|
|
|
|
|
When you add them on clientside like this, they are not posted back to the server. You might want to consider putting the selected value of this listbox into a hidden field ( i assume that is what you want in the server code.)
|
|
|
|
|
Thank You. I will use like that.
|
|
|
|
|
Hi dear friends.
I'd like to fix size of my webpage that my users can't be able to change the size of page in their browser.
How can I do this?
If U know plz answer me as soon as possible
Thanks alot.
|
|
|
|
|
Smilies are just like exclamation marks. If you use them too much, they become totally meaningless.
You can only limit the size of a window if you use window.open to open it.
---
b { font-weight: normal; }
|
|
|
|
|
Hi(Papa)
U mean in .NET we don't have any feature to fix size of our webpage when we are designing it?
Thanks alot.
|
|
|
|
|
That has nothing to do with .NET. The browser won't let you take control over the size of the main browser window. If you want a window with a specific size, you have to open a new window.
---
b { font-weight: normal; }
|
|
|
|
|
Hi everyone
I'd like to disable "Back" button on my browser for my users on my webApllication or webSite.
How can I do this??
If U know plz answer me as soon as possible
Thanks alot
|
|
|
|
|
You can't disable back button.But you can restrict the back button functionality
// go forward
window.history.forward();
while pressing back it will automatically forwards once.So the same page retains.
while the history.forward() method lets you access the next URL in the history list (equivalent to hitting the browser's "Forward" button).
|
|
|
|
|
Hooooraaaaa
I'm very delighted and so happy to find my answer.
If U were near me I would kiss U
Thanks alot.
|
|
|
|
|
Hi
Where Should I add this code?
In my webpage htmlSource?
Thanks
|
|
|
|
|
Hi
How to send dropdownlist back???
Thanks in advance
|
|
|
|