ASP.NET
|
|
 |

|
I have implement comet.when client request to server,that request wait to server till the new message arrives.when new message arrives it get back to client.after completion of responce processing client request to server again and wait for new message.
This is working fine for upto 10 request wait at server but then after server can't responce of new request and site getting hanged and have to recycle the application pool.I found the state of all request is ExecuteRequestHandler in workerprocess of IIS.
Please tell me what should i do??
|
|
|
|

|
Try to use client side code.
may be you have used more session or application state
|
|
|
|

|
string strUsername = "kapil.sh06@gmail.com";
string strPassword = "XYZXYZXYZZXYZXYZXYZXY";
string strSignature = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
string strCredentials = "USER=" + strUsername + "&PWD=" + strPassword + "&SIGNATURE=" + strSignature;
string strNVPSandboxServer = "https://sandbox.paypal.com/cgi-bin/webscr";
string strAPIVersion = "2.3";
string strNVP = strCredentials + "&METHOD=DoDirectPayment&CREDITCARDTYPE=VISA&ACCT=400000500002000&EXPDATE=122017&CVV2=808&AMT=212.95&FIRSTNAME=Rohit&LASTNAME=Singh&IPADDRESS=192.168.200.31&STREET=1234+Easy+Street&CITY=San+Jose&STATE=CA&COUNTRY=United+States&ZIP=95110&COUNTRYCODE=US&PAYMENTACTION=Sale&VERSION=" + strAPIVersion;
HttpWebRequest wrWebRequest = (HttpWebRequest)WebRequest.Create(strNVPSandboxServer);
wrWebRequest.Method = "POST";
StreamWriter requestWriter = new StreamWriter(wrWebRequest.GetRequestStream());
requestWriter.Write(strNVP);
requestWriter.Close();
HttpWebResponse hwrWebResponse = (HttpWebResponse)wrWebRequest.GetResponse();
StreamReader responseReader = new StreamReader(wrWebRequest.GetResponse().GetResponseStream());
string responseData = responseReader.ReadToEnd();
responseReader.Close();
Response.Write(Server.UrlDecode(responseData));
this code is not working proper please help me and suggest me right Code .. for paypalPro
|
|
|
|

|
I would suggest starting here.[^] They should have samples to show you. It is likely your URL or a parameter is off.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|

|
At the min, any user can book a holiday for ay employee,
I have added [Authorization] to the controllers, and @if (User.Identity.IsAuthenticated)
in the layout so only logged in users can view the pages. But how can I go about only allowing users to book a holiday for them selves
something like if loggedInUserID(is this assigned automatically when a user is created?) =currentPersoID, although this is only a guess and I would prob have to assign the same loggedInUserID to personID.
any suggestions?
Thanks
|
|
|
|

|
No doubt each employee has a username/name so you can use use compare the username/name of the logged in user to the username/name of the person for whom the holiday booking id for.
|
|
|
|

|
Hi,
I get error while using this code ?
<asp:TemplateField>
<ItemTemplate >
<asp:ImageButton ID="ImageDeleteBuyingKala" ImageUrl="~/ServerFile/ApplicationFiles/Icons/Button/add.png"
Width="25" runat="server" OnClientClick="Open('<%# Eval("Id") %>')" />
I have Solved this via :
<script type="text/javascript">
function Open(IdItem) {
if (window.showModalDialog) {
window.showModalDialog(location.protocol + "//" + location.host + "/" + "WorkFlows/Forms/BuyingKala/Estelam.aspx?Id=" + IdItem, "Show Popup Window", "dialogHeight:450px,dialogWidth:80%,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,modal=yes,center:yes");
}
else {
window.open(location.protocol + "//" + location.host + "/" + "WorkFlows/Forms/BuyingKala/Estelam.aspx?Id=" + IdItem, "Show Popup Window", "height=450px,width=80%,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,modal=yes,center:yes");
}
}
</script>
<ItemTemplate>
<asp:ImageButton ID="ImageEstelamBuyingKala" ImageUrl="~/ServerFile/ApplicationFiles/Icons/Button/add.png"
Width="25" runat="server" OnClientClick='<%# " Open("+ DataBinder.Eval(Container.DataItem,"Id") + ");" %>' />
</ItemTemplate>
now the problem is that when that child page open and i click the save button to save the items in the gridview in child page it repoen that child page once more .
modified 17 Dec '12 - 5:32.
|
|
|
|

|
What is the error?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|

|
Hi friends. is it possible to use an asp web site like a telephone. i ve made a website. there are 10 users of this website. ı can understand who is online and who isnt. is it possible to put a button whose text is "talk to this user" next to each user and send and play this sound stream at remote side. I found this Sending and playing microphone audio over network[^] but it is quite complicated to me. Do you have an easier idea.
|
|
|
|

|
Do you want the site to actually make phone calls to the users or do you want to just play the audio to them on their speakers?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
 |
|
|
General
News
Suggestion
Question
Bug
Answer
Joke
Rant
Admin