|
Hi every one can any one help(using asp,vbscripts)
its urgent
i wants to slect option from combo when select type is floppy and cd then enput type is enable if select type is cabinate then desable
thanks in advance to response
regards
sanjeev jha
sanjeev
|
|
|
|
|
Put onChange="Javascript: disableInputFields()" in your select field
then put the following JS
and chnage names of fields/form and so on..
function disableInputFields()
{
if (document.Form1.ddltype.value == "cabinate")
document.Form1.inputName.disabled=true;
else
document.Form1.inputName.disabled=false;
}
hope it helps
|
|
|
|
|
Hi
Thanks to reply
my problems is here when the option 1 selected and added on next addtion it not work for 2, and 3 position but my need is selection depends on user so it have to work fedomeally becouse in one requestion user can submit request with all option it work when first visble option is selected
[code]
function toggle_state(obj) {
// here we check the value of your select-box
var val = obj.value == 1;
var input_node = document.getElementById('purpose');
input_node.style.visibility = val ? 'hidden' : 'visible';
}
<input type="text" name="purpose" style="visibility:hidden; width:400px" maxlength="150" value=<%=porpose%>>
[/code]
sanjeev
|
|
|
|
|
Im just starting to build a .NET program that sends out a request for a webpage ( html via tcp ). Ive got alot of research to do and feel like a fish-out-of-water. If you have an example ( doesnt mater which language ) of anything related, or some tips I greatly appreciate it!
Thanks
|
|
|
|
|
|
Hi everyone
I'm creating a control were I'm adding items to a listbox via javascript (AJAX). But I can't seem to being able to acces the control in my code-behind. Does anyone know why?
Now I'm saving the elements added to my listbox in a HtmlInputHidden() called "list" and trying to access this control in my C# code but still it is set to null.
Any suggestions please...??
Here is a piece of C# code:
public void RaiseCallbackEvent(String eventArgument)
{
returnValue = eventArgument;
}
public String GetCallbackResult()
{
//the hiddenControl is set to null, even if it is filled by javascript
HtmlInputHidden hiddenControl = (HtmlInputHidden)Page.FindControl("list");
return returnValue;
}
Best regards
Al
|
|
|
|
|
Have you added the attribute "runat=server" to your hidden field? If you haven't, you won't be able to access it in your server-side code.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Can I directly store the user gender information in main user information table,without making gender table.
|
|
|
|
|
Yes, the gender would only be one column, not much point creating a new table for it.
There are 10 types of people in the world, those who understand binary and those who dont.
|
|
|
|
|
I want to code 2 listbox, items of listbox B depends on listbox of A. Ex: listbox A is list of countries. when user selects a country, listbox B just lists all the cities of that country (data is stored in database). How can I code this issue with ASP 3.0?
AA
|
|
|
|
|
Hi Guys,
Is there a way in asp.net where we can validate the control state of the textbox?
Example:
Page_Load
Textbox1.text = "AAA"
Textbox2.text = "BBB"
Textbox3.text = "CCC"
End Sub
Based on the example above, how can the control detect automatically if the values in Textbox1, Textbox2, and Textbox3 were changed? Is there a property like control.state or textbox1.state, if was it edited or not?
Or any other solutions in doing this?
And by the way, I didn't use scriptmanager and updatepanel because I have a FileUpload control included in the page.
Thank you
hifiger2004
|
|
|
|
|
This is in the wrong forum but have you tried the TextChanged event? Don't forget to set AutoPostBack to true.
There are 10 types of people in the world, those who understand binary and those who dont.
|
|
|
|
|
Hi Guys
We have a ASP.NET Form with data on there. What we want to do is take the information that is currently on the screen (Say what you view in Internet Explorer) and by a click of a button sent it into a PDF file.
Does anyone know where I might find code examples of something similar like this please.
Kind Regards,
Elizma
|
|
|
|
|
You would need to purchase a 3rd party tool to create PDF files.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi There,
Thanx for you reply.
This is not an option at our business. They want us to write the logic to Export our data to PDF. They dont want to buy it already, because they need custom functionality before it will be eventually exported. That is why I am trying to find code samples to give me a kind - of - idea how we go about doing something like this. I know it can be done. I have seen a few demos, but not the code files or sample code.
|
|
|
|
|
|
I have different css style sheets.Each of which has different color
scheme for the web site.I have used the <Link rel="stylesheet" type="text/css"
href="css/stylesheet.css"> tag to apply the css style sheet.
I want to allow the user to choose from those different color schemes
and apply that color scheme to entire web site.So
How I change the css style sheet at runtime. Basically, I want to change
the href attribute of <Link> tag. Is there any way to apply style sheet that
user selects?
Thanks,
Vipin Chauhan
|
|
|
|
|
Google it?
First result[^] from searching "dynamic stylesheet javascript".
|
|
|
|
|
Reading client side serial port in a web application.
Code of treatment of strings in hexadecimal where "0 (zero)" it does not indicate end of string, for managing of devices in the client side.
Scenario:
I am working with a web application in Visual Studio 2005, which needs receives information from peripheral devices connected to the serial port of the client’s pc. It is needed to obtain the information of the above mentioned devices to realize certain processes and to display it on screen.
I’m working with an ActiveX for the managing of the serial port. This part was developed in Javascript.
I send or receive commands like this:
F0 F1 0B 19 02 00 00 00 00 03 05 02 0F
Problem:
The problem is that due to the fact that in Javascript all strings are zero-terminated, Javascript considered the sixth byte (00) to be an end of the string and cut off the rest of it.
If someone knows some solution to this problem already be with JavaScript, VBScript or components .NET would be of great help … Thank you
|
|
|
|
|
AFAIK you can't count on a Javascript interpreter to represent your bytes they way you want it to. I mean you could make an array of numbers but they might be 32 bit for all you know. I think you would have to have an interface in the ActiveX control that was designed to deal with this. Like take a hex string or base64 or something and do the conversion internally before writing to the port.
But I have no direct experience with this issue, I'm just guessing.
you haven't told us what your problem is (apart from an inability to think clearly).
Pete O'Hanlon - the C# forum
|
|
|
|
|
Hi all
I need to create a web site and host it on a server somewhere, and i need to create a page in that website that submits a form and send the form data to a/an (application, web service, anything) on another machine (My pc) for example
could anyone help me please ?!
i don't know where to start
Regards
|
|
|
|
|
You haven't explained which technologies you want to use. Your question is of too basic a nature to be handled in a forum. I suggest you choose your tools and then buy some books and learn how to use them.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi Guys,
I am struggling from two days.i want to convert the binary format to image and assign the image to datalist.
i writen the code like this.
the value is coming from database through item array[6]
string nani = Convert.ToString(ds.Tables[0].Rows[0].ItemArray[6]);
byte[] mybite = new byte[nani.Length];
System.IO.MemoryStream mstream = new System.IO.MemoryStream(mybite,0,mybite.Length);
ds.Tables[0].Columns.Add("imagefile_");
how to assign the image to datalist.
i want to assign the image to imagefile_.....
pls help me .....
Regards........
|
|
|
|
|
Either
1) Write a HTTPHandler that handles requests for images
2) Write a separate ASPX page that handles the requests and is configured to return binary image data instead of HTML
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
hi
can any body tell me how can i create a popup with click a button? i wrote this code but it dose'nt work.
Response.Write("<script>function d(){windows.open(Default2.aspx);}</script>")
|
|
|
|