|
It's closer but not exactly what I want. I think I'll just use something like FreeTextBox and retrieve the contents at runtime from an xml file or something.
I doubt it. If it isn't intuitive then we need to fix it. - Chris Maunder
|
|
|
|
|
Is there a way to create a socket between the http server and the client in order to continuously send data back and forth?
Thank you in advance.
|
|
|
|
|
I'm trying to interface a barcode scanner and a website using activeX. I have code that will read the barcode, but my issue is developing an activeX control that will run on the client machine to pick up input from the barcode scanner device. I am having trouble finding much on activeX control creation, let alone interfacing my activeX control with a device on the client machine.
If it isn't possible for the control itself to interface with the client side device, then is it possible to wite a C# windows app that the active X control installs on the client machine and then communicates with?
Thanks
Broken Bokken
You can't carry out a ninja-style assasination dressed as an astronaut. It's the luminous fabric; too visible. - Tripod
The story of your fighting is a poem of two words: YOU SUCK.
|
|
|
|
|
Broken Bokken wrote: I am having trouble finding much on activeX control creation
Try searching for COM Server[^] rather than activeX
Broken Bokken wrote: let alone interfacing my activeX control with a device on the client machine.
If your code works then it works. If you make it part of a COM Server it will still work, the COM Server part just uses a specific way for the hosting application to interface with your code. That said there are possibly security issues when your COM Server is hosted in a browser that you might have to deal with. Again that is an entirely separate issue from the other two.
led mike
|
|
|
|
|
Hi
I would like to know how to show a transparent layer on a web page. The transparent layer should allow web controls to be placed and the data should be available to be submitted. Once the form in the transparent layer is submitted, the underlying web page should become active.
Can someone help?
Thanks in Advance.
MPR2006
|
|
|
|
|
You can use panels and set them visible or invisible as needed.
Or a MultiView
|
|
|
|
|
Hi,
Thanks for the reply. Do you have a sample of how this can be used? Is it possible to do this through Javascript?
|
|
|
|
|
Hi,
I have a web form on which there is a register button.Now i want to fire a java script method after the post back of the page when the button click occurs.
Please help me.
Thanks in Advance
Alok...
|
|
|
|
|
You can do it as below:
On button click event (Server side) use
Response.write("javascrpt");
Parwej Ahamad
R & D with IIS 5.0/6.0
|
|
|
|
|
I am binding a generic list of products List<products> to an ASP DataGrid and was wondering what the best way to convert the Product object integer values of 0 to an empty string when binding to the grid. See, the Product object contains integer properties and when reading from the database if the value read is DBNull I assign a value of 0 to the property. Now, when displaying the List<products> using databinding I want the 0 to show as empty strings in their columns. What do you recommend?
Thanks,
Steve
|
|
|
|
|
I would recommend a string property you bind to, that returns an empty string if it's 0. Or use int? and then use ?? to return an empty string, perhaps ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Using a second property for binding sounds like the way to go.
Thanks for your help!!!!!!!!!
Steve
|
|
|
|
|
string val = string.Empty;
if (yourInteger != 0)
val = yourInteger.ToString();
Maybe I don't understand the question...
|
|
|
|
|
He wants to write binding statements in his aspx. He COULD do this, but it's messy
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I am trying to print to a receipt printer during our payment process.
The printer is not the default printer and I can't change that.
The problem is that from the browser you don't have permission to programatically get
a list of printers and select which one you want. So, currently we pop up the Print dialog
then select the desired printer and then click ok. This is two steps too many.
How can you get around this limitation and automate the printing of the receipt?
modified on Friday, June 6, 2008 11:29 AM
|
|
|
|
|
No, you cannot. As you said, in javascript, you can kick off the printing process, but you can't interact with it.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
So, I guess we could create a client side windows web service which accepts the html and then have the web page post to it and then it could do the printing.
|
|
|
|
|
Well, a client side app that calls a web service, yes, that would work. Or an ActiveX control perhaps.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Yes, I didn't what to do an ActiveX control but either way it is a client side solution.
thanks for your input.
|
|
|
|
|
|
Hi all
I am using ASP.NET 3.0 and I have a list box in content page. I am using Master Page architecture. I am binding data from the database into the listbox. but it gives me error of "object reference not set to an instance of an object". This is what I am doing..
((ListBox)(this.FindControl("ctl00_ContentPlaceHolder1_lMondayFD1"))).DataSource = ds.Tables[0].DefaultView;
Please guys any one can help me
|
|
|
|
|
Are you able to find other controls at the same place ?
OR can you try like below :
Note: Be sure if your Listbox control defined in Content Place holder
ContentPlaceHolder mpContentPlaceHolder;
ListBox lb;
mpContentPlaceHolder = (ContentPlaceHolder)Master.FindControl("ContentPlaceHolder1");
if(mpContentPlaceHolder != null)
{
lb=(ListBox ) mpContentPlaceHolder.FindControl("yourListboxid");
if(lb!= null)
{
lb.DataSource = ds.Tables[0].DefaultView;
}
}
OR In case List box placed on Master page then use try like this:
ListBox lb = (ListBox ) Master.FindControl("yourListboxid");
if(lb!= null)
{
lb.DataSource = ds.Tables[0].DefaultView;
}
Parwej Ahamad
R & D with IIS 5.0/6.0
modified on Friday, June 6, 2008 11:59 AM
|
|
|
|
|
Background:
We are using .NET 2.0 with the MS Ajax Extensions and the Ajax Toolkit. I'm using the Ajax ModalPopupExtender extender control to create modal popups on a page. I am using a custom datepicker control that uses javascript to pop up a calendar, and populates the textbox with the date selected.
Problem:
It seems that Javascript gets confused with the z-index of the popup. When used on a non-ajax popup panel, it works flawlessly. But, when it is placed on a modal popup panel, the javascript popup calendar is shown behind the modal form. Since the main form and the panel that is controlled by the modal popup are essentially the same form, the control cannot distinguish that its z-index should be set differently.
Failures:
I've tried moving the panel to the beginning of the page.
I've tried setting the z-index of the page to a high number
I've tried setting the z-index of the panel to 0 and 1
I've rechecked the code to verify it is not setting the z-index internally.
Any help on finding a solution to this problem would be greatly appreciated.
|
|
|
|
|
try to put an iframe under your custom calendar.
|
|
|
|
|
I'm looking for a way to make an applet communicate with the same aspx page it was loaded from and not a new one. Using the http protocol I'm able to connect the applet to the aspx, but it is a different one and I need to be the same since every aspx contains diferent information (data members).
|
|
|
|