Click here to Skip to main content
       

ASP.NET

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
QuestionSalable Comet (server hang while more user)membervaibhav.baldha17 Dec '12 - 3:47 
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??
AnswerRe: Salable Comet (server hang while more user)memberChandrabhan Sangale18 Dec '12 - 17:49 
Try to use client side code.
may be you have used more session or application state
QuestionThe underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.memberkapil sharma 4917 Dec '12 - 2:02 
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
AnswerRe: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.memberryanb3118 Dec '12 - 4:58 
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.

QuestionCan only book for yourself and not other users?memberxnaLearner17 Dec '12 - 1:29 
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
QuestionRe: Can only book for yourself and not other users?memberZaf Khan19 Dec '12 - 5:49 
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.
QuestionEval + onclientClick Gridview Error [modified]memberjojoba201116 Dec '12 - 20:38 
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) {
           // to handle in IE 7.0
           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");
           }
           // to handle in Firefox
           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");
 
           }
          // window.showModalDialog(location.protocol + "//" + location.host + "/" + "WorkFlows/Forms/BuyingKala/Estelam.aspx?Id=" + IdItem, null, "height=290px,width=400px,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,modal=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.

QuestionRe: Eval + onclientClick Gridview Errormemberryanb3118 Dec '12 - 4:59 
What is the error?
There are only 10 types of people in the world, those who understand binary and those who don't.

QuestionSound transmissionmemberleone16 Dec '12 - 5:16 
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.
QuestionRe: Sound transmissionmemberryanb3118 Dec '12 - 5:00 
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 General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 24 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid