|
guys;
i have in the form several sumit buttons, how can i distinguish between them?
thank you;
Help people,so poeple can help you.
|
|
|
|
|
That depends a bit on what type of a button you are using. But if it is a input of the type button then you can give it a name. This name will be the parameter the value will be under in the POST or GET data.
Please note that the button should be inside the form tags for this to work.
|
|
|
|
|
thank you, sir;
but lets take some case to claerfy somthing:
<from id="form1" name="form1" method="post" >
<input type="text" id="textbox1" name="textbox1" />
<input type="submit" id="button1" name="button1" />
<input type="text" id="textbox2" name="textbox2" />
<input type="submit" id="button2" name="button2" />
</form>
when this form is post, how can i determin the control which caused the postback?
Help people,so poeple can help you.
|
|
|
|
|
With the type input='submit' the name and value of that input are also sent to the server. But not of any other buttons with type submit. So clicking on button2 would result in the followin querystring:
<br />
myform.html?textbox1=somevalue&textbox2=somevalue&button2=somevalue<br />
|
|
|
|
|
thank you, sir;
i that is what i was asking for
100 , man
Help people,so poeple can help you.
|
|
|
|
|
I don't think the button ID and text are sent to the server via the query string on a postback.
|
|
|
|
|
This Info really helped me!
|
|
|
|
|
I thought, this is related to web-development so posted here. Please excuse me, if there is alternate proper forum for this.
Hi,
I have a requirement in which, i need to import session of IE to Firefox.
I checked the Session Manager plugin in Firefox, but it is only Firefox limited.
This requirement came from an application that is hard-core written on Login to run for IE browser and says HTTPS session error by Servlet if any other browser is used. Solution to run on other browsers, say Firefox would be to import session from IE ton Firefox.
Any help appreciated. Thanks.
---
Solved by Gerben's answer. Thanks.
---
♫ 99 little bugs in the code,
99 bugs in the code
We fix a bug, compile it again
101 little bugs in the code ♫
modified on Thursday, May 5, 2011 6:19 AM
|
|
|
|
|
Ok how do you define a session. As the thing the server keeps track of in which you can store server side data for the duration of the visit or as in the session cookies which will persist for as long as the user keeps the browser open.
If it is the first then that should be relatively easily. The server side session is usually kept track of in a sessionid cookie, or a sessionid parameter in the request. You could pass this along from one browser to another, but you would be opening up the application to a possibility to hack it.
If it is the cookie type of session it becomes a bit more difficult, you could serialize the cookies in the session to the server using IE and store them there pending a second call from Firefox. During this second call you could set all the cookies back into the session. But this is a bit tricky.
|
|
|
|
|
Hi,
I use the wsdl command to generate the client proxy for the java web service. And the service contain only one method and it like this:
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace="namespacess", ResponseNamespace="namespacess", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("return", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string execute([System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] string arg0) {
object[] results = this.Invoke("execute", new object[] {
arg0});
return ((string)(results[0]));
}
I create a custom SoapExtension class that is used to calculate the serialize and deserialize time when calling this method. I found that serialize will take more than 2000
Milliseconds. The soap serialization take much time and it's not acceptable.
the soapextension class is like this:
public class TraceSoapExtension : SoapExtension
{
public override void ProcessMessage(SoapMessage message)
{
string methodname = message.MethodInfo.Name;
string tmpInfo = "Call web method: " + methodname + " ";
switch (message.Stage)
{
case SoapMessageStage.BeforeSerialize:
stc.Reset(); stc.Start();
tmpInfo = tmpInfo + "Before the soap message serialize: " + Environment.NewLine +
"Time is: " + System.DateTime.Now.ToUniversalTime().ToString("MM/dd/yyyy hh:mm:ss.ffffff");
break;
case SoapMessageStage.AfterSerialize:
stc.Stop();
tmpInfo = tmpInfo + "After the soap message serialize: " + Environment.NewLine +
"Time is: " + System.DateTime.Now.ToUniversalTime().ToString("MM/dd/yyyy hh:mm:ss.ffffff");
tmpInfo += " Client serialize stop watch take time: " + stc.ElapsedMilliseconds;
break;
case SoapMessageStage.BeforeDeserialize:
stc.Reset(); stc.Start();
tmpInfo = tmpInfo + "Receive soap message before deserialize: " + Environment.NewLine +
"Time is: " + System.DateTime.Now.ToUniversalTime().ToString("MM/dd/yyyy hh:mm:ss.ffffff");
break;
case SoapMessageStage.AfterDeserialize:
stc.Stop();
tmpInfo = tmpInfo + "Receive soap message after deserizlie: " + Environment.NewLine +
"Time is: " + System.DateTime.Now.ToUniversalTime().ToString("MM/dd/yyyy hh:mm:ss.ffffff");
tmpInfo += " Client deserialize stop watch take time: " + stc.ElapsedMilliseconds;
break;
default:
break;
}
CommonUtil.Logger.Info(tmpInfo);
}
}
So what's happened when the do the soap serialization? Why is it so slowly? What can I do to improve the performance?
thanks,
Eric
|
|
|
|
|
Hi All,
I work on a web application that has Excel and Word documents in it.
At the moment when a user opens these documents in IE9 they get presented with a dialog box asking:
What do you want to do with "filename"?
The user is presented with Open, Save and Save As as the options.
Unlike previous versions of IE there is no check box to tick to remember the user's choice so it comes up every time.
I really need to get rid to this box. Does anyone know how to disable it?
Thanks
Tom
Cheers
Tom
Philosophy: The art of never getting beyond the concept of life.
Religion: Morality taking credit for the work of luck.
|
|
|
|
|
OK this turned out to be very simple but I thought I'd publish the fix any way.
Basically, despite the fact that IE 9 doesn't have the check box previous versions of IE have that enables you to save your decission of what to do with a file of a particular type it doesn't mean it doesn't check the registry to see if an old choice (from a previous browser) isn't stored there. So the fix is to replicate the storage of a previous version of IE into the registry of the machine on which IE 9 is running. In my case it went as follows:
If it's not there already create the following key path in the registry:
HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\AttachmentExecute\{0002DF01-0000-0000-C000-000000000046}
Inside the InternetExplorer.Application GUID key create a list of binary values using the COM name of the document opening application as a title.
In my case (Office 2003):
Excel.Sheet.8
PowerPoint.Show.8
Word.Document.8
If the values are 0000 the the application will open without asking the user.
Cheers
Tom
Philosophy: The art of never getting beyond the concept of life.
|
|
|
|
|
you can try IFrame to show word or Excel document.
|
|
|
|
|
Iframes are done on the server side. They have NOTHING to do with this question.
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
I could experiment, but the propagation time makes that a pain..
I have a WebSite - Domain: MySite.com that is hosted on HostA
Name server ns1.hosta.com
ns2.hosta.com
I also have another site - TempSite.com that is hosted on HostB
Name server ns1.hostb.com
ns2.hostb.com
I want to have the web domain mySite.com to point to the site on HostB. The TempSite.com domain will be parked and the content of the site on HostA will be retired.
Which name server do I change? Are there any other considerations?
<Answer: Create a new website on hostb with the domain name required (MtSite.com), change the name servers on hostA to those supplied by hostB - Bada Bing.>
I don't speak Idiot - please talk slowly and clearly
'This space for rent'
Driven to the arms of Heineken by the wife
modified on Sunday, April 17, 2011 7:49 AM
|
|
|
|
|
How can we create nested Row Grouping in Matrix Layout in Reporting Services 2005?
Thanks in advance
|
|
|
|
|
You have asked the same question in Work & Training Issues forum[^]
Don't cross post. Pick the right forum and ask your question. BTW please wait for the responses.
|
|
|
|
|
I'm curious as to which is considered better accessibility design: tailoring your page layout to work with newer zoom abilities (which effectively resizes pixels, making everything on the page -- text, graphics, frames, etc. -- larger or smaller) or to stay with the older text resizing design (which resizes font size while leaving other objects on the page unchanged)?
|
|
|
|
|
I have IIS server and i want to upload some video files to it and be able to access them. I mean that i want to have the ability to enter the address
http://11.22.33.44/MyMovie/video_1.wmv
And see the video movie. ( i want to have the movie as stream and not for download )
How can i do it ?
( i need to have the ability to access the video thru silverlight MediaElement as uri )
P.S: the IP 11.22.33.44 is example to my server ip address.
|
|
|
|
|
You have a lot of things to read before you can get to that point.
I would start by going through http://www.silverlight.net/learn/quickstarts/audioandvideo/[^].
If you go up a few levels in the site you can see other video tutorials and helpful information. This is usually how I start. Try visiting the product page of the product you want to work with and then go from there. The "learn" tab or the "get started" tab are very helpful.
http://www.silverlight.net/[^] is the base website for all the silverlight information.
Please click answered if this answers your question.
That's called seagull management (or sometimes pigeon management)... Fly in, flap your arms and squawk a lot, crap all over everything and fly out again... by _Damian S_
|
|
|
|
|
I've seen some websites have background images that don't scroll with the page, but rather remain fixed.
How is that done?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
I don't know, however to find out, I would suggest you view the HTML source code that does it for a page of your choice.
And then, there is always uncle know-it-all[^].
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
|
A ha! Thanks.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
say I have a page with lots of data entered by the user. are there math javascript libraries out there that could do complicated computations accessing the local processor so it doesn't involve a postback?
----------------------------------------------------------
Lorem ipsum dolor sit amet.
|
|
|
|