|
Hi,
You should be able to accomplish this by marking your property with the required Editor attributes. By default all properties appear as straight text editable fields within the designer. By associating your property with an Editor that inherits from UITypeEditor, you should be able to achieve this. For example:
Reference the following namespaces within your class:
using System.ComponentModel;<br />
using System.Windows.Forms.Design;<br />
using System.Design;<br />
using System.Drawing.Design;
Mark your public property with the following:
Editor(typeof(FileNameEditor), typeof(UITypeEditor))
There are a number of pre-built editors that you could utilise so it may be worth having a play and seeing which works best.
Clean code is the key to happiness.
|
|
|
|
|
do you have to write something like this?
[Editor(typeof(FileNameEditor), typeof(UITypeEditor))]
public string PostbackURL
{
get
{
return ImageButton.PostBackUrl;
}
set
{
ImageButton.PostBackUrl = value;
}
}
It doesn't work, probably i'm doing something wrong.
modified on Wednesday, January 30, 2008 4:34:48 AM
|
|
|
|
|
I am developing a point-of-sales software on asp.net. When sending crystal
report to client browser for printing cash bill, browser always popup Acrobat Reader report viewer at client browser before bill can be printed.
Anyway for asp.net to send report directly to printer at client side? Too
many steps for cashier to get printed bills makes the system unfavorable.
):
|
|
|
|
|
ASP.NET works on the server and sends HTML to the browser. It don't have any access to the printer.
|
|
|
|
|
What about window.print()?
Thomas
|
|
|
|
|
thomas_joyee wrote: What about window.print()?
It's java script and won't send print command directly to printer. It will open the print dialog box.
|
|
|
|
|
Oh yes it will open printer dialog box. sorry that i forgot he want print directly. i think the window.print is the only way to print something from client side
Thomas
|
|
|
|
|
hi all
i am developing a website and maintaining session for user login.
problem is that
there is 3 sites all are diffrent sites
1 chating
2 blog
3 news
so user can switch to any of them so how to maintain the session for once login to visit all three sites
plz help
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|
|
Did you try investigating in maintaining the state using cookies?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
no
but i am not getting any idea to do this.
if you have then plz give me a solution.
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|
|
I think if you have a cookie with a path like vrisoftware.com , the associated subdomains like
news.vrisoftware.com
chat.vrisoftware.com
support.vrisoftware.com
should be able to share it.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi
I have recently moved an asp.net application onto a web server.
However I am getting the above error message.
How would I go about resolving this?
thanks in advance
feel free to ask for more details
cheers
|
|
|
|
|
|
thanks for the reply
I have already read that article but was not sure on a couple of things
What virtual directory do I need to right click on, where is this located?
"To resolve it, Right Click on the virtual directory - select properties and then click on "Create" next to the "Application" Label and the textbox. It will
automatically create the "application" using the virtual directory's name. Now the application can be accessed." -
|
|
|
|
|
Hi.
I need to get the user's IP address (C#) of the machine they will be using to access my website.
I tried:
HttpContext.Current.Request.UserHostAddress;
Request.ServerVariables("REMOTE_ADDR");
I do not think I am using it correctly.
Any advice/help will be greatly appreciated.
Thanks
|
|
|
|
|
|
Use
Request.ServerVariables["REMOTE_ADDR"];
use square brackets instead of round brackets
Bhanu
|
|
|
|
|
I have to build some ASP.NET reports and for that I have to directly access peachtree DB.(Bitrieve or whatever format they are using)
Is it possible?
How do we go for that?
Any idea for of a good information source for this?
Thanks much
Regards
|
|
|
|
|
|
Hi all,
I want to convert PDF files to HTML files in our web application(ASP.NET).
If any one knows the procedure or source code or any source link, then kindly send me.
Thanks
|
|
|
|
|
hello to all......
I want to get ASCII value of enter key through ASP.Net and what namespace should be included for that.
thanx in advacne...
Raushan
|
|
|
|
|
Hi Raushan,
When a user hits a key on the keyboard, a client-side event is fired. The server is not used to capture or use this information as the server is simply recieving a request from the client (through the HTTP GET and POST protocols). Therefore you should focus on capturing and handling keyboard strokes on the client-side. The DOM's event object should provide you with the information you need when used in conjuction with the DOM onkeydown event (this is the event that is fired when a user hits a key). The following code shows an example of how to achieve this:
Function to handle the key stroke:
function checkKeyStroke(e) {<br />
var characterCode;<br />
<br />
if ( e && e.which ) {<br />
e = e;<br />
characterCode = e.which;<br />
}<br />
else {<br />
e = event;<br />
characterCode = e.keyCode;<br />
}<br />
<br />
if ( characterCode == 13 ) {
}<br />
}
Attach it to the onkeydown event of the required element, in this case the body element:
<body onkeydown="checkKeyStroke(event); ">
Clean code is the key to happiness.
|
|
|
|
|
Hello Friends,
I've designed a contact page for the clients. But as i press Enter key from the keyboard it throws me on the Home Page or Default Page. But it must either save the record or fire the validation if the textboxes are empty.
Thnx
|
|
|
|
|
yes buddy ..
wats u prob
make clear...
.
yogesh
|
|
|
|
|
You ought to trap the button click event and if the event keyCode turns out to be of ENTER key, then invoke the submit button click event.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|