Searched The Web A While Back And Didn't Found An Answer To Curiosity?
Feb 3, 2010
I'd searched the web a while back and I didn't found an answer to my curiosity. I am using a master page, and I have this content page, in which I have to store the entry on another content page. If I am not using a master page, then, I can simply specify on the form's action attribute the file name of the page where am I going to store my entry.
currently im trying to implement a quiz system on my website in which system will auto mark student's ans. if the student's ans is wrong, system will prompt an incorrect answer, highlight the errors and count the number of errors.
I have a list box which gets the value from a datasource as
[Code]....
Here, 'ALL' passes all the WORKSHOP_REQUEST_ID
Now, once the user enters the "Search" button on the window, the listbox shows all the searched values and also the "ALL" option. But here also , this "ALL" doesn't care of the searched values displayed on the listbox but sends all the WORKSHOP_REQUEST_ID if it is selected.
But i want to pass only the values which are searched and displayed on the listbox if the user selects "ALL" after searching some text.
How to highlight searched words in gridview when serach performed on multiple column, i have 5 column in gridview and i perform search through text box and a button and bind gridview with searched record on all 5 column...
How to highlight searched keyword on all 5 column...
I am trying to export a gridview that is returned from a search form. The gridview also has paging enabled. When the searched records are found in gridview it is exporting all data.instead of exporting only the searched data.
How can I only export the records from the search results, but also the make sure the records on the different pages export also?
I have 1 Datalist and BTNsearch in my page below is SP
ALTER procedure [dbo].[AdminSearchP] AS BEGIN SELECT * FROM House_p WHERE ID IN( SELECT DISTINCT houseP.ID FROM House_p houseP,SearchTerm WHERE [Description] LIKE '%' + SearchTerm.Name + '%') END
this SP show in dataList data that contain some words that I define in SerachTerm table
Now I want when I click on button and it show data in datalist it highlight the words in datalist that I define in SearchTerm Table i.e in serchTerm table i define below words
Paris-India-Itally-Germany
when I click on button it search in House_p table in Description Column and if in this column be above words show it in datalist
Like below
Name Description Sara She is from India
Now I want when show data in datalist it bold or Highlight the words that I define in SearchTerm table Like below
Name Description Sara She is from India How I can do it?
Looking for advice on how to troubleshoot an application (not something I wrote) that is on the old 2.0 Framework. It acts "crazy" sometimes when selecting an item from a drop down list. Sometimes the page will reload like it should on the post back with the new data, while othertimes, it just throws a Page Not Found error. What's the best way to troubleshoot and eliminate the various variables of IIS6, 2.0 Framework, SQL Server, the VirtualMachine, etc.
I have a pretty basic search feature on a site that queries a sqldb with a sqldarasource, and then displays the results on a page, in a panel within a Repeater. I'd like to figure out if it's possible to somehow highlight the words the user searched on as they are displayed in the search results. The code below is my repeater. Do you know of any way to manipulate the Title or Description if the words in it's body match the words searched?
I have a working dropdown box that gives the answers yes & no. When "yes" is selected I need to create a message box that displays a simple message and allows the user to click ok, to get back to the survey.
I have been working with it, and tried several things but no luck. What would the code look like, and where exactly would I place it to fire at the right time. I am working in VB, with an aspx & aspx.vb page.
how to do this.or is there any template that one can use for the following-
using visual studio to design questions and answers with outcome of the grade immediately after submition and with timing.
For example, having questions 1 to 10, providing options like A, B, C,D, then let students choose from the right answer from the questions, then, after submition, an outcome of grade is displayed based on the right answer.
In my application i need to add a module for question and answers (like a forum or similar to stackoverflow.superuser etc). I am confused about implementing Tags, Meta tag etc.
So i dont need to use Q and A for password retrevial ( I use email password recovery), but I would like to use Q and A as and Admin, just as that higher level of secuirty.How can I turn off the encryption of the answer of the Q and A, or decrypt it in a report or something ???
I am still studying to become a webintegrator and this is my private project to try and learn C# better.
I have a database with a table called Answers which holds AnswerID, Answer1, Answer2, Answer3 and CorrectAnswer + a table called Questions which holds QuestionID, QuestionNumber and QuestionText.
On a page i have a repeater that pulls the questions from the database and inside it i have another repeater with my 3 radiobuttons that pulls the 3 Answers from the database and are grouped so you can only check 1 of the radiobuttons as the user. See below:
What i need to do, is somehow find each CorrectAnswer checked correctly in the repeater holding the radiobuttons and give 1 point for each CorrectAnswer chosen by the user (if theres 10 questions there will be 10 repeateritems with 3 radiobuttons in each one) and write this into aspnet_Profile. Problem is i have no idea how to do this since it already seems a bit complicated in my head and i haven't had much C# yet. So any help would do and notice i do not ask for the entire coding but simply a push in the right direction.
When you click on the question, the answer expands. Click it again and it collapses.
My question, answers are stored in a database. I googled and found out there's this JavaScript code to achieve this BUT also came across something that said it can be done using Repeater Controls.
I am using password recovery control in forgotpassword.aspx page. By default the password recovery control validates the Login id and the security question of a particular user. But i want to give an alternate option. That is, If the user forgets the security answer he can give his PAN Number as identificaiton. Its should be an option like either he can provide security answer or his PAN number. Can we acheive this functionality. Because from my knowledge it looks like Security Answer is mandatory. But i want to provide alternate option that user should give his security answer, if he forgets he can use PAN number for his identificaition. UpmMembershipProvider has default property (requiresQuestionAndAnswer) which is set as true.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Request.ServerVariables("SERVER_PORT") = 80 Then Dim strSecureURL As String [code]....
The validation load in this page worked on the first click of btnDonation, if I don't change anything and click the btnDonation again, it automatically go to my confirm page. Instead, I want it to continue to check for requiredFieldsOK(). Note that if I fill in one of the missing required fields, the validation will work.
My question is: How can I continue to check for requiredFieldsOK() even if user didn't fill out any additional information?
Precondition: There's a web application that leverages ASP.NET security model. There's also an Active Directory (AD) integration component. It provides AD users and roles as if those are application's own users and roles. The relations like "is in role" between AD user and AD role are stored in AD domain, of course, but are cached by the web application.
Problem: Let's say AD user1 is a member of AD role1. When web application starts, it caches this relation. Now if the AD administrator removes user1 from role1 using AD console, the application doesn't know about this change - the cache entry is kept. This becomes a security hole because the role1 might have permissions the user1 should no longer have.
There are two сcontrary opinions how to solve this:
"Listen" to AD changes and trigger cache entry removal once the operation is detected on AD server - because we are responsible for correct AD component functioning Leave the cache untouched - because we didn't put the entry there and should not remove it either
1) login and send username,password, machineID and a rand string to the server 2) check the machineID whether it exists in the table.
Problem is the checking machine procedure:
select MachineID from computer where MD5MachineID=@MD5MachineID2 and SUBSTRING((master.dbo.fn_varbintohexstr(HASHBYTES('MD5',MachineID+@RString))),3,32)=@MIDST
RString,MD5MachineID2,MIDST are submited by Login MD5MachineID is stored in table.
I need the check if MD5(MachineID+RString) is match the MIDST (submited).
Now the situation is :
if RString is a fixed string(not a variable).like 'abcdefg', the MD5 is correct.
if I use the RString (submited value as a variable), the MD5 is incorrect.
I simply want to know how to manually check if the value a user has provided for the answer to their security question matches their current answer on record. I want to use the build in support of the ASP.Net membership and membershipuser objects.
I see that via the passwordrecovery control that the actual answer can be returned. However I am currently not using this control and it would take a good bit to integrate it as it does not meet our user's requirements.
In a worst case scenario, getting the actual answer (like the passwordrecovery control does) and manually checking it in our application would be acceptable.
A best case scenario is some sort of API where I can pass in the user name and the answer to their security question that was provided and simply get an indication of whether answer was correct or not.