|
Use a enum as your property signature. I believe dropdown will be displayed on the property grid then.
public enum Sample
{
First,
Second,
Third
}
public Sample YourPropertyName
{
get; set;
}
|
|
|
|
|
That works well
Now I am trying to add the form gridview controls name inside the Enum ...
May be a diffcult task ?
|
|
|
|
|
danasegaranea wrote: Now I am trying to add the form gridview controls name inside the Enum
It is done in other way. Check this[^]. In that article, I have shown how to edit collections through property editor. You can check and implement something similar.
|
|
|
|
|
|
How can i hide html buttun by code in a javascript function?
Thanks
The Developer - CEH
|
|
|
|
|
var btn =document.getElementById('button2');<br />
<br />
btn.style.display = 'none';
or
<br />
btn.style.visibility = 'hidden';
and to make it visible again:
<br />
btn.style.display = '';
or
<br />
btn.style.visibility = 'visible';
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
|
|
|
|
|
it works Thank you Blue_Boy
The Developer - CEH
|
|
|
|
|
No problem,you are welcome.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
|
|
|
|
|
Hi,
I'm having a problem updating my project files on the production server.
I usually update on the development server and then copy the files on the production server.
There's only one problem that happened once when I was updating. A user was online on the website while I was copying the files so it caused some kind of error and the pages couldn't load data from the database.
I need to know a safe way to copy the files and replace the old files on the server without causing any problems to online users.
Note that they are usually updating the database and stuff like that?
What can I do?
|
|
|
|
|
There are 2 ways of updating.
1. By setup
2. By publishing
I think you are using the second method. If so then i would suggest you to take down the server for the time you are updating and then make it online after updation. This is what all the hosting providers do. Because you are normally not updating your site daily.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
Thanks a lot.
there's only one thing, should I send all users that we're going to update the site on a certain day so their data won't be lost too during updates. or what?
|
|
|
|
|
No need to send all the users a message. Just replace your default index page with a custom html page with a message. "The site is currently down for maintainance purposes. Please check back in 2 hrs. Sorry for inconvenience."
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
We use to put a app_offline.html file to the website root. This will redirect all requests getting for ASPX pages to this html file. Write some friendly message which says the site is being updated, please wait.
If you use website copy tool integrated with visual studio, it does this automatically. When it starts uploading files, app_offline.htm file will be placed automatically to the website root and will get deleted automatically after upload. Here[^] is a MSDN article which talks about this.
|
|
|
|
|
|
HI,all
I want to set the visibilty of a menu item false form a page and the asp menu is located in a masterpage (Please Remember that i want to make invisible not the menu but an item in menu)after checking a session.Someone please give me the code to do so.
Thanx in advance.........
|
|
|
|
|
Make a new menu without the item you dont want to show.
Now make the table cell in which the menu is placed server side. Then in the code behind chek the session and the place the necessary menu in the table cell.
http://aspdotnetnstuff.blogspot.com
|
|
|
|
|
HI,
Thanx for your reply. You mean to make 2 menus and set toggle there visiblity according to my session?
|
|
|
|
|
I want to send parameter to javascript fuction. what do i put in the function. in vb.net i write "byval x as integer" what do i write in javascript function? i want to send one integer to the function
function sample(????){
}
Thanks
The Developer - CEH
|
|
|
|
|
function sample(int a){
}
OR
function sample(a){
int i = parseInt(a);
}
|
|
|
|
|
Thanks N a v a n e e t h it works but in javascript their is no int So i used var.
function sample(a){
var i = parseInt(a);
}
The Developer - CEH
|
|
|
|
|
The Developer wrote: it works but in javascript their is no int So i used var.
Ohh, but VS editor shows int in JS block. So I think it is valid.
|
|
|
|
|
Not in framework 1.1
The Developer - CEH
|
|
|
|
|
Either way, javascript has no changed. I believe you're right and it's var.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
it will support var only or else u can directly use
function sample(a)
{
i=parseInt(a);
Or
var i = parseInt(a);
}
|
|
|
|
|
I want to create the dynamic field in existing table of sql server 2005 database when the user save the records through front end in asp.net using c# code.can anybody suggest me how to write the code for this using c#.please reply...
|
|
|
|