|
I just assumed he hated me, personally. I suppose it's possible he hates you too...
---- ...the wind blows over it and it is gone, and its place remembers it no more...
|
|
|
|
|
No, it's me he hates. I've been giving him the same range of answers for days.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Heh.
But who is the king of all of these folks?
|
|
|
|
|
I am sending login credentials through ActiveX Control developed in VC++ 6.0 to Server side which is developed in Delphi
//Client side struct in VC++ 6.0
typedef struct
{
char User[41];
char Password[41];
char ClientVersion[41];
char EndCode[2];
}TNetConnectCheck;
//Server side struct in Delphi6
TNetConnectCheck = record
UserName : string[40];
Password : string[40];
ClientVersion : String[40]; // Added by Ravi on : 03/08/2006
EndCode : array[0..1] of Char;
end;
but, I am getting some junk characters in the strings at serverside eg. User name like 'CrazyToLearn#0...#0'
I want to send the packet which is having the length 125 to server with exact 'CrazyToLearn' not with any padding 0 or junk characters.
I tried all the trims, dynamic char array but cant solve the problem.
I dont have to change code at server side,whatever we want to modify , its only at client side.
Please instant help will be really appreciated...
THANX
CraZyToLearn
|
|
|
|
|
Hi,
How do I capture an event of a button? I have a save and a cancel button on my page. When the user clicks on a button I need to know with an alert which button was clicked.
How would I do something like this?
Thanks
Brendan
|
|
|
|
|
onclick="alert('this is the save button')"
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
No I need ONE function that checks for the event, I'm not going to code an onclick for everything, and I DID think of the onclick (which every one knows about).
|
|
|
|
|
I don't do JavaScript, but I think you can write functions that each button calls... I'd look into that.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Code one function and set the onclick attribute to that function. Otherwise, you can include script before any of your buttons, that modifies the DOM for those buttons and adds the attribute.
|
|
|
|
|
You can get server control id through JavaScript in this fashion:
document.getElementById('<%=Test.ClientID%>').value;
where Test is the control name.
I hope this is what you are looking for.
"Legacy code" often differs from its suggested alternative by actually working and scaling.
—Bjarne Stroustrup
|
|
|
|
|
Hello,
We have a webserivce which is used to Import data to database. The user consume it and pass the XML as string. The size of the XML will be greater then 7 mb... . There are two type of error appears when we test this webservice.
And the user may use it multiple times depend on the number of files i.e this web service can be called in a loop.
Sample code of the consumer is as below:
using (StreamReader rdr = File.OpenText(@subPath))
{
stringXML = rdr.ReadToEnd();
string ret = A.InsertDMFProductData(stringXML); // call to a web method
Response.Write(ret);
}
Below are the three different errors:
1. The underlying connection was closed: An unexpected error occurred ...
2. System.Web.Services.Protocols.SoapException: There was an exception running the extensions specified in the config file. --->
System.Web.HttpException: Maximum request length exceeded ...
3. System.Net.WebException was unhandled by user code
Message="The operation has timed out"
Source="System.Web.Services"
I have tried placing this code in the consumer and web service Web.config file
<httpruntime maxrequestlength="2097150" executiontimeout="3600">
Could you please suggest how can we resolve this issue.
Regards,
Pavas
|
|
|
|
|
Please Try
1) Use BinaryFormatter insted of XMLFormatter
2) Set in web config file of Webservice
httpRuntime maxRequestLength="2097150"
Hope this helps.
Develop2Program & Program2Develop
|
|
|
|
|
How "BinaryFormatter" will be in use. We are passing a XML as string to the web service. And webservice then read the String and process it.
Do you mean to say we need to send the binary instead of String.
Regards,
Pavas
|
|
|
|
|
Anyway, Try to Encrypt the Data you are sending via Webservice and then
Decrypt it on the other side using BinaryFormatting.
Develop2Program & Program2Develop
|
|
|
|
|
I will try this and let you know, Hope this may solve this issue. WIll update you by tomorrow on this.
Regards,
Pavas
|
|
|
|
|
Is it possible to get a response from an ascx page by using an Ajax call in a HMTL page? Does anyone know of a good example they can point me to?
I am using:
JavaScript,
Prototype 1.6 Ajax framework
ASP.net (vb.net)
I am trying to extract the content of a html page that is contained in a div tag with an ID of "content". I can do this OK with a normal Prototype Ajax.Request and some javascript manipulation, but I now need to do some work on the hyperlinks in the returned content so that they work from the new location.
I can get the content and fix the links in an ascx control but am now wondering if I can call directly to the ascx page or if I need an aspx page between them.
Any advice would be greatly appreciated.
|
|
|
|
|
a sample could be helpful.
practically i think there will be a problem if the ajax is calling an ascx. the ascx will be embedded in some page thereby causing the response going to the page.
regards
|
|
|
|
|
Yes, I am coming to that conclusion myself.
I can get an aspx page to respond, but it has all of the html and head tags.
I can strip this out using JavaScript, but it seems to be defeating the purpose of the Ajax call.
It would be nice just to get back the html fragment I am after. Then I can use Prototype's Ajax.Updater function to insert the fragment where I want.
What I am after is some way to get asp.net to return a html fragment to my (non asp.net) Ajax call.
|
|
|
|
|
There is no such thing as an ascx page. An ascx is a control. There is no way to call a control out side of a page.
Also, we have an ASP.NET forum
Christian Graus - Microsoft MVP - C++
"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 know that ascx is a control. It was a bit of poor wording on my question to refer to it as a page. The crux of my question was can you call a control from outside of an aspx page via Ajax and I have come to the conclusion that you can not.
I will pursue this further in the ASP.net forum.
Cheers and thanks for your help.
|
|
|
|
|
Hi
i m using AJAX ModalPopupExtender and below is the code for this. i want that when i click on the Ok Button of ModalPopupExtender it should call the Click EVENT which is written in my asp.net source file but it does not do my defined fucntionality. what I have to do for this purpose?
<asp:UpdatePanel ID="UpdatePanel4" runat="server">
<ContentTemplate>
<asp:LinkButton ID="LinkButton2" runat="server">Details ...</asp:LinkButton>
<cc1:ModalPopupExtender ID="MPE" runat="server" BackgroundCssClass="modalBackground"
CancelControlID="CancelButton" DropShadow="false" OkControlID="OkButton" OnOkScript="onOk()"
PopupControlID="Panel2" PopupDragHandleControlID="Panel2" TargetControlID="LinkButton2"
X="100" Y="100">
</cc1:ModalPopupExtender>
<asp:Panel ID="Panel2" runat="server" Height="83px" Width="464px">
<asp:TextBox ID="TextBox3" runat="server" BackColor="SteelBlue" BorderColor="MediumBlue"
BorderStyle="Solid" ForeColor="ActiveCaptionText" Height="150px" TextMode="MultiLine"
ValidationGroup="Ok" Width="452px"></asp:TextBox><br />
<asp:Button ID="OkButton" runat="server" Text="Ok" Width="76px" OnClick="OkButton_Click"/>
<asp:Button ID="CancelButton" runat="server" Text="Cancel" />
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
Regards
|
|
|
|
|
<asp:ImageButton ID="imgbtnFromDate" runat="server" enabled="false" ImageUrl="~/Images/SmallCalendar.gif" />
I have this image button .
On click of the radio button which i am getting how can i get this button enabled.
i want to do this through javascripting.
|
|
|
|
|
that is what i am not getting.
|
|
|
|
|
What's the exact problem??
"Legacy code" often differs from its suggested alternative by actually working and scaling.
—Bjarne Stroustrup
|
|
|
|
|
through javascripting i want to enable and disabled a image button.
|
|
|
|