|
@Vishnu
Think of it this way, Outlook is NOT a web application, its a windows application. Your is a web application that "executes" in a browser and so would have no access to the client's machine (in general). In order to do this you need to have a windows service on your client's machine which could talk to your server and get the information required. So when there are remainders to be pushed to the client, the windows service on the "Client" side gets it from your server and the windows service can in turn do something to display that to the client. So essentially your server should have another windows service or a web service to serve the requests from the client's windows service.
If its a web application that you are talking about, as Mark said, unless the user logs in to your site, he/she cannot get the remainders.
Hope this helps.
Cheers,
Karthik
|
|
|
|
|
hi,
The functionality on which i am working is that unless the user logs in to our web application, he/she cannot get the reminders. As soon as the user logs in, he/she must get the reminders irrespective of the section he /she is browsing in our web application by showing popup window according to the time in the client system and update the status on the server. Please suggest me a solution.
Thanks in advance
Regards,
Vishnu
|
|
|
|
|
You could do something like this, but this may not be the best solution.
* Once the user logs in on Page_Load verify whether the user has any remainders and show it if it matches w/ the remainder date/time.
* If there are none, you could then find if there are any remainders in the near future say, in the next "few" minutes, you will have to decide this "few"
* If there are remainders set up in the next "few" minutes, use javascript (setTimeOut) to wait for that time and then when its the time to dispaly the remainder get it from the server using AJAX and display it.
* If the user navigates away from this page to another page, the same rule applies.
* If the user is in a page where-in he can set remainders, you need to have a javascript function that is being called w/ setTimeOut to verify if there are any remainders to be displayed
PS - Again this may not be the best solution as this one was an immediate solution that occurred to me.
Cheers,
Karthik
|
|
|
|
|
Hi,
in my application - when I traverse for sometime to various tabs - suddenly login,aspx page is displayed.
When I checked logs - but no debugger statement printed there..and no javascript alerts are seen.
So I verified web.config for timeout properties but couldnot find anything to be changed
<authentication mode="Forms">
<forms loginUrl="login.aspx" protection="All" timeout="600" slidingExpiration="true" >
</forms>
</authentication>
and
<sessionState mode="InProc" timeout="600" />
Thanks and regards,
- Ajay Kale
|
|
|
|
|
You have already asked about asp.net login issues and received answers. Now you have spammed ever article you have found on the subject, 19 as I count, plus here.
How about following the last piece of advise given. READ THE DOCUMENTATION.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
But still after making changes - the issue is being reproduced for a particular page to logout while surfing the application.
- Ajay K
|
|
|
|
|
|
which one - at least do you know mere any name
|
|
|
|
|
hi i am using following code to auto complete educational institutes .. but my requirement is to fill educational institutes as per country id ..
i am unable to send country id as parameter to web method .. can any one help .... plz ??
<asp:TextBox ID="txtKey" runat="server" CssClass="regtxtbox" MaxLength="50"></asp:TextBox>
<asp:Panel runat="server" ID="myPanel1" Height="100px" ScrollBars="Vertical" style="overflow:hidden;width:50px;display:none;"> </asp:Panel>
<cc1:AutoCompleteExtender ID="AutoCompleteExtenderDemo" runat="server"
TargetControlID="txtKey" ServiceMethod="GetCompletionList"
MinimumPrefixLength="1" CompletionInterval="1000"
EnableCaching="true" CompletionSetCount="20" CompletionListElementID="myPanel1">
</cc1:AutoCompleteExtender>
public static string[] GetCompletionList(String prefixText, int count)
{
List<String> suggestions = new List<string>();
DataTable dtSchools = new DataTable();
Education education = new Education();
//List<String> suggetions = education.GetAllSchoolsSearch("",prefixText);
DataSet dsSchools = education.GetAllSchoolsSearch("", prefixText);
if (dsSchools != null)
{
dtSchools = dsSchools.Tables[0];
}
if (dtSchools != null && dtSchools.Rows != null && dtSchools.Rows.Count > 0)
{
foreach (DataRow dr in dtSchools.Rows)
{
string suggestion = dr["sschoolName"].ToString();
suggestions.Add(suggestion);
}
}
return suggestions.ToArray();
}
|
|
|
|
|
Dear Experts,
What are all the possible ways a session fixation can be solved. I have one solution(Anti-CSRF token implementation). Is there any other solutions.
Thanks in advance.
|
|
|
|
|
Hi guys,
Very good morning to all...,
i have a page in tht one image click i opened a pop up window...,
while openeing the popup window i have checked the session of "userid"...,
if session is expired i have to close the popup window and the parent page has to redirect to login page...,
so the popup window page i have declared in page load like this...,
_UserID = Session["UserID"] == null ? string.Empty : Session["UserID"].ToString().Trim();
if (_UserID == string.Empty)
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("<script language='javascript'>");
sb.Append("window.opener.location.href='/LoginPT.aspx?msg=se");
sb.Append("';");
sb.Append("self.close();");
sb.Append("</script>");
Page.RegisterStartupScript("FocusScript", sb.ToString());
}
but this is not working for me...,
plz guide me to solve this...,
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
Do you have script manager on the page ?
|
|
|
|
|
ScriptManager is irrelevant. It is for AJAX support and is not necessary for injecting normal JavaScript into a page.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote: ScriptManager is irrelevant.
I was asking becasue, If he has ScriptManager on the page, then the code he has written won't work.
Mark Nischalke wrote: It is for AJAX support and is not necessary for injecting normal JavaScript into a page.
|
|
|
|
|
Have you debugged it? Is the if condition being meet? Is the script being written and just not executed?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Dear All,
When i try to add master page to updatable page then when update a record it will update blank data to sql server.
Anyone has any idea?
Thanks in advance
|
|
|
|
|
OUCH NIRAN wrote: When i try to add master page to updatable page then when update a record it will update blank data to sql server.
Anyone has any idea?
Update in sql should not having any issue master page. I guess, there is some problem with event. Could you please share the code block for the same.
|
|
|
|
|
Thanks Abhijit Jana for your reply.
I have 3 textboxes and i try to get this value to update to the exist record.
I use sql update. when i get data from texboxes, it just blank even it really has information.
Sure this technique i successufully test without masterpage but when i try to put
masterpage it just return blank only.
Below is the save button
Please check.
string subject = Request.Form["question"];
string content = Request.Form["answer"];
string faq_date = Request.Form["date"];
string query = "update faq set doc_subject=N'" + subject + "', doc_content=N'" + content + "', doc_date='" + faq_date + "' where doc_id=" + Request.QueryString["doc_id"];
thanks and regards
|
|
|
|
|
I was just wondering how ASP.Net knows that the source code has been changed and it need to be complied?
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
All files in the file-system are date-stamped, that probably has something to do with it .
|
|
|
|
|
Yeah but I'm looking for correct answer
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
|
Abhijit Jana wrote: My Blog
htt:// is not a valid protocol. http:// is.
Best wishes,
Navaneeth
|
|
|
|
|
N a v a n e e t h wrote: htt:// is not a valid protocol. http:// is.
LoL.
Thanks Mate !!!!
|
|
|
|
|
It's still showing htt:
..Go Green..
|
|
|
|