|
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..
|
|
|
|
|
I guess you are checking the old signature. After posting that message I have changed the signature.
|
|
|
|
|
I think there is no correct answer to this question as no one has access to the source code to verify how they do it internally. The most likely implementation would be this.
ASP.NET keeps track of all the files it has compiled with a date/time stamp. When IIS gets request to serve a ASPX page, it redirects it to the ASP.NET processing handler. This will compare the requested file's modified time against the one in the cache. If it is newer, it does a compilation and updates the cache. Compilation strategy depends on what file you have changed. If the change is for top level files like, global.asax or assemblies in the bin directory, it will recompile all the files.
Best wishes,
Navaneeth
|
|
|
|
|
I've read many article to solve this mystery and don't want to waste more time on it now
Anyway thanks for the reply, your answer make sense!
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
I have created a windows application in VB.Net 2005 using SQL SERVER as backend.
Now before delivering its setup to client I have to create its trial version of 30 days and 60 days.
How to do this ?
Also my setup should be installed only on one computer.
I mean my setup copy should be used for one time only.
I know how to deploy the project i.e. I can create a simple setup of my project.
modified on Monday, September 27, 2010 2:42 AM
|
|
|
|
|
Well, first of all you are talking of a windows application and not a web application. We got that, no issues.
What you are trying is a Licensing kinda feature. There are different ways to achieve:
1) encrypted license files that contains the expiry dates etc.
2) encrypted license keys held in the registry
3) challenge/response mechanism which require an internet connection
4) probably others.......
Try: License Key Generation[^] or: How can I create a Product Key for my C# App[^] or: c# Licensing[^]
Also,
Cryptography 101 for the .NET Framework[^]
MohanMbnr wrote: I mean my setup copy should be used for one time only.
This part is little tricky. Probably there can be other ways for this, to me one thing looks good is something like, completing the registration online on your site. This would give you power to activate the application completely only once.
|
|
|
|