|
Magh_M wrote: dgrdmain.Columns(0).Visible = False
dgrdmain.Columns(1).Visible = False
These may not be straight-forward in JavaScript. You may need to emit a DIV and then locate it in Javascript using document.getElementsByTagName .
You then toggle visibility using style.display = 'none'
|
|
|
|
|
When you set a column to Visible = False in your server-side code-behind it means no HTML is emitted for that column, so there is nothing for your javascript to detect (so short answer is no)
|
|
|
|
|
I guess he was asking the equivalent in JavaScript right?
|
|
|
|
|
Hi
How to use COM control on ASP.Net page?
Thanks
|
|
|
|
|
ASP.NET has nothing to do with it. If your control can be hosted on a web page, you need to write the HTML to do that, ASP.NET has no COM support.
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 COM Objects ? Like Excel ,IE Broswer ...etc
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
OK.. I have created my own OCX control in (C++,MFC) which i want to use it on aspx page by embeding HTML tags.
|
|
|
|
|
The question does not relate to ASP.NET, look for help on doing what you want in general, and that's what you need to do in ASP.NET
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 )
|
|
|
|
|
Make a CAB file for the OCX and expose via OBJECT tag?
|
|
|
|
|
in asp.net,I want to use the cmd command to do something,such as net user ,
I want to create a user in asp.net,my code is follow:
System.Diagnostrics.Process.Start("net user" , @"sysadmin 123456 /add" );
but the calling was failed!Why?
System.Diagnostrics.Process.Start
|
|
|
|
|
A required privilege of processing that request is not held by ASP.NET, which runs as a low-privileged account.
|
|
|
|
|
I want to use microsoft outlook express in asp.net application if there is any api inform me
|
|
|
|
|
Former is interactive client desktop app. Latter is serverside service.
|
|
|
|
|
I heard there is an API for using this in asp.net for that i am asking
|
|
|
|
|
You can create add-inns for outlook and theres probably an interop library so you can control it from you own program, but these are designed for client-side apps, what possible requirement could you have to do it server-side?
|
|
|
|
|
i am doing an application in which i want to display values from dataset in gridview.
i am having a difficulty in getting a particular value from dataset to show in gridview.
one of my friend suggested this code it is not working...
GridView2.Rows[0].Cells[1].Text=ds.Tables[0].Rows[0]["Column1"].ToString();
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
|
|
|
|
|
Is your grid view using bound column or templet column or autocolumn??
Give some more information.
Your friend's code seem to me is right one.
Check other gridview property
|
|
|
|
|
ya its an auto generated column gridview.....
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
|
|
|
|
|
opps sorry but,
In gridview we can not add any new rows, so your code will not work.
But insted of this you can use datasource property of gridview to display recored
|
|
|
|
|
Hi,
Can you paste some more code please?
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
I suggest that you use a DataSource to get the data that is linked by the GridView.
There are several types of DataSources available. SQLDataSource to get data directly form a database, XmlDataSourde to query XML data or ObjectDataSource to get data from custom data objects.
MSDN has some samples of how to use them or just use google to find samples with the key words GridView DataSource
Good luck
Urs
-^-^-^-^-^-
no risk no funk
|
|
|
|
|
I hav twwo submit buttons each coresponding to one texbox each...
I want that When i write in textbox1 then default button should be Button1 and if i write in TextBox2 then default button should be Button2..
Default means that when i press enter key then The default button is pressed....
|
|
|
|
|
it can possible by javascript in keypress event of textbox you can check for enter key and call appropreate button as form submit button
|
|
|
|
|
I don't know the use of java script....
could u halp me how to do this
|
|
|
|
|
<br />
if(window.event.keyCode==13)<br />
{<br />
var but = document.getElementById('Your Button ID');<br />
but.click();<br />
}<br />
This is sample code you can Modify as you like
|
|
|
|