You are on page 1of 21

CREATE TABLE Person ( SSN char(11) PRIMARY KEY, Name nvarchar(100), Address nvarchar(100), Birthdate datetime

) insert into Person values('1','vikash','Delhi',12/12/1988) insert into Person values('2','rahul','Up',12/07/1984) CREATE TABLE EmployeeTable ( EmployeeID int PRIMARY KEY, SSN char(11) UNIQUE, Department nvarchar(10), Salary money, CONSTRAINT FKEmpPer FOREIGN KEY (SSN) REFERENCES Person (SSN) ) insert into EmployeeTable values(100,'1','CSE',70000) insert into EmployeeTable values(101,'2','ECE',7000) --create view CREATE VIEW EmployeeView AS SELECT P.SSN as SSN, Name, Address, Birthdate, EmployeeID, Department, Salary FROM Person P, EmployeeTable E WHERE P.SSN = E.SSN select * from Employeeview --error log table CREATE TABLE PersonDuplicates ( SSN char(11), Name nvarchar(100), Address nvarchar(100), Birthdate datetime, InsertSNAME nchar(100), WhenInserted datetime ) --create trigger CREATE TRIGGER IO_Trig_INS_Employee ON Employeeview INSTEAD OF INSERT AS BEGIN SET NOCOUNT ON -- Check for duplicate Person. If there is no duplicate, do an insert. IF (NOT EXISTS (SELECT P.SSN FROM Person P, inserted I WHERE P.SSN = I.SSN)) INSERT INTO Person SELECT SSN,Name,Address,Birthdate FROM inserted ELSE -- Log an attempt to insert duplicate Person row in PersonDuplicates table. INSERT INTO PersonDuplicates SELECT SSN,Name,Address,Birthdate,SUSER_SNAME(),GETDATE() FROM inserted -- Check for duplicate Employee. If no there is duplicate, do an INSERT. IF (NOT EXISTS (SELECT E.SSN

FROM EmployeeTable E, inserted WHERE E.SSN = inserted.SSN)) INSERT INTO EmployeeTable SELECT EmployeeID,SSN, Department, Salary FROM inserted ELSE --If there is a duplicate, change to UPDATE so that there will not --be a duplicate key violation error. UPDATE EmployeeTable SET EmployeeID = I.EmployeeID, Department = I.Department, Salary = I.Salary FROM EmployeeTable E, inserted I WHERE E.SSN = I.SSN END select * from Employeeview select * from person select * from employeetable insert into employeeview values('3','raj','HP',4/4/1987,102,'CIVIL',50000) insert into employeeview values('3','Buddhi','jaipur',4/4/1985,102,'Mechanical', 750000) select * from PersonDuplicates <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or g/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><link rel="stylesheet" type="text/css" href="../Styles/style.css" /><link href="../Styles/StepCarousel.css" rel="stylesheet" type="text/css" /><link rel=" shortcut icon" href="../images/geektek.ico" /> <script language="javascript"> var message = "Sorry!!!! No right Click"; function clickIE4() { if (event.button == 2) { alert(message); return false; } } function clickNS4(e) { if (document.layers || document.getElementById && !document.all) { if (e.which == 2 || e.which == 3) { alert(message); return false; } } } if (document.layers) { document.captureEvents(Event.MOUSEDOWN); document.onmousedown = clickNS4; } else if (document.all && !document.getElementById) { document.onmousedown = clickIE4; }

") </script> <script language="javascript" type="text/javascript"> function StartProgressBar() { var myExtender = $find('ProgressBarModalPopupExtender'). -khtml-opacity: 0. } </script> <style type="text/css"> div. myExtender. } </style> . } </style> <style type="text/css"> .5.lst { font-size: . "Segoe UI" .scroll { height: 200px. } .document. width: 300px. } </style> <style type="text/css"> . Arial .style3 { width: 179px.style1 { width: 465px. "Lucida Grande" . -moz-opacity: 0.oncontextmenu = new Function("alert(message).ModalBackground { background-color: Gray. } . overflow: auto. return true. padding: 8px. Verdana. font-family: "Helvetica Neue" .return false.show().5. sans-serif. border: 1px solid #666. } .5.98em. background-color: #ccc. Helvetica.style2 { width: 61px. opacity: 0. filter: alpha(opacity=50).

filter:alpha(opacity=65).backgroundColor1 { background-color:Gray. } #docFrame { width: 572px.<style type="text/css"> ." id="form1"> <div class="aspNetHidden"> <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" /> <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" /> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTQ0NDEx NjYwNA9kFgJmD2QWAgIDD2QWAgIDD2QWCAILD2QW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JDQog ICAgICBXSEVSRSBQLlNTTiA9IEkuU1NOKSkNCiAgIElOU0VSVCBJTlRPIFBlcnNvbg0KICAgICAgU0VM RUNUIFNTTixOYW1lLEFkZHJlc3MsQmlydGhkYXRlDQogICAgICBGUk9NIGluc2VydGVkDQpFTFNFDQot LSBMb2cgYW4gYXR0ZW1wdCB0byBpbnNlcnQgZHVwbGljYXRlIFBlcnNvbiByb3cgaW4gUGVyc29uRHVw bGljYXRlcyB0YWJsZS4NCiAgIElOU0VSVCBJTlRPIFBlcnNvbkR1cGxpY2F0ZXMNCiAgICAgIFNFTEVD VCBTU04sTmFtZSxBZGRyZXNzLEJpcnRoZGF0ZSxTVVNFUl9TTkFNRSgpLEdFVERBVEUoKQ0KICAgICAg RlJPTSBpbnNlcnRlZA0KLS0gQ2hlY2sgZm9yIGR1cGxpY2F0ZSBFbXBsb3llZS4gSWYgbm8gdGhlcmUg aXMgZHVwbGljYXRlLCBkbyBhbiBJTlNFUlQuDQpJRiAoTk9UIEVYSVNUUyAoU0VMRUNUIEUuU1NODQog . } </style> <link href='/WebResource. height: 246px.axd?d=IWkz6-UMt7sKbY5UZGlwBEITYTEDpBpai6eSx1KR97z-fsDLo F2Tw_vs06tcto_E42EOxJGIJhdGkWKwnNdyV07FaNPSgG87MZlQGmhn4cpcAow6sXTZaUAVEyWRNymi8 fa0jeJhnxFx2S6HTFe64g2&t=634655334800500778' rel='stylesheet' type='text/css' /> <title> </title></head> <body> <form method="post" action="GeekSearch.aspx" onsubmit="javascript:return Web Form_OnSubmit().

theForm.form1.onsubmit || (theForm. asbArray[sTextBoxID]=oJSAutoSuggestBox.__EVENTARGUMENT.axd?d=oe0IDLf-meawiZxQqCgvg8UdSR-Mst2oOrHEgH8TY_2RkYiY drb3iTYnimKGThGMWhpeN1R5inENbCY9z--TmPLU91OUuSkr8aMC1p5rweA1&amp.__EVENTTARGET.value = eventArgument.value = eventTarget. eventArgument) { if (!theForm. if (!theForm) { theForm = document.submit().forms['form1']. } } //]]> </script> <script src="/WebResource.t=6347739121000 00000" type="text/javascript"></script> <script type="text/javascript"> //![CDATA[ //Global variable that keeps track of all ASB //javascript objects on the page var asbArray. } function asbGetObj(sTextBoxID) { return asbArray[sTextBoxID]. } function __doPostBack(eventTarget. } function findPos(obj) { .onsubmit() != false)) { theForm. oJSAutoSuggestBox) { if (typeof(asbArray) == "undefined") asbArray=new Array(). var disableMessage = false.ICAgICBGUk9NIEVtcGxveWVlVGFibGUgRSwgaW5zZXJ0ZWQNCiAgICAgIFdIRVJFIEUuU1NOID0gaW5z ZXJ0ZWQuU1NOKSkNCiAgIElOU0VSVCBJTlRPIEVtcGxveWVlVGFibGUNCiAgICAgIFNFTEVDVCBFbXBs b3llZUlELFNTTiwgRGVwYXJ0bWVudCwgU2FsYXJ5DQogICAgICBGUk9NIGluc2VydGVkDQpFTFNFDQot LUlmIHRoZXJlIGlzIGEgZHVwbGljYXRlLCBjaGFuZ2UgdG8gVVBEQVRFIHNvIHRoYXQgdGhlcmUgd2ls bCBub3QNCi0tYmUgYSBkdXBsaWNhdGUga2V5IHZpb2xhdGlvbiBlcnJvci4NCiAgIFVQREFURSBFbXBs b3llZVRhYmxlDQogICAgICBTRVQgRW1wbG95ZWVJRCA9IEkuRW1wbG95ZWVJRCwNCiAgICAgICAgICBE ZXBhcnRtZW50ID0gSS5EZXBhcnRtZW50LA0KICAgICAgICAgIFNhbGFyeSA9IEkuU2FsYXJ5DQogICBG Uk9NIEVtcGxveWVlVGFibGUgRSwgaW5zZXJ0ZWQgSQ0KICAgV0hFUkUgRS5TU04gPSBJLlNTTg0KRU5E DQoNCg0Kc2VsZWN0ICogZnJvbSBFbXBsb3llZXZpZXcNCnNlbGVjdCAqIGZyb20gcGVyc29uDQpzZWxl Y3QgKiBmcm9tIGVtcGxveWVldGFibGUNCmluc2VydCBpbnRvIGVtcGxveWVldmlldyB2YWx1ZXMoJzMn LCdyYWonLCdIUCcsNC80LzE5ODcsMTAyLCdDSVZJTCcsNTAwMDApDQppbnNlcnQgaW50byBlbXBsb3ll ZXZpZXcgdmFsdWVzKCczJywnQnVkZGhpJywnamFpcHVyJyw0LzQvMTk4NSwxMDIsJ01lY2hhbmljYWwn LDc1MDAwMCkNCnNlbGVjdCAqIGZyb20gUGVyc29uRHVwbGljYXRlc2RkZA+BnFmEiT0tIII3ruv1Em/k lQ/eVSmLKb1Sa0TzK8d/" /> </div> <script type="text/javascript"> //<![CDATA[ var theForm = document. function asbAddObj(sTextBoxID. theForm.

OnKeyUp =SetSelectedValue. =GetTextBoxValue. if (obj.GetTextBoxCtrl this.offsetLeft curtop += obj. this. var mbUseIFrame. =SetTextBoxValue. var mbCancelSubmit. =OnKeyDown. var msSelMenuItemCSSClass.offsetTop while (obj = obj.offsetTop } } return [curleft.SetSelectedValue this. var ControlID. var AutoCallBack. //Class methods this.SetTextBoxValue this. =OnKeyUp. //Internal attributes var mnSelMenuItem = 0.GetDataFromServer =GetDataFromServer. .OnMouseClick this. =OnMouseClick. =OnKeyPress. var currentValue = ''.GetKey this. var mnMaxSuggestChars. var mbHasFocus. var msMenuDivID.GetTextBoxValue this.offsetParent) { curleft += obj. var msOldTextBoxValue="".var curleft = curtop = 0.GetMenuDiv =GetKey.OnMouseOver this. this. var BlankPageURL. =OnMouseOver.OnKeyDown this.offsetLeft curtop = obj. var msMenuItemCSSClass. =GetMenuDiv. var MenuWidth.curtop]. var msMenuCSSClass. var mnKeyPressDelay. var HiddenTextBoxID.OnKeyPress this.offsetParent) { curleft = obj. =GetTextBoxCtrl. } /////////////////////////////////////////////////// //Class that stores all auto suggest box properties /////////////////////////////////////////////////// function JSAutoSuggestBox() { //Class properties var msTextBoxID.

charCode) ? evt. } ).keyCode : ((evt.msTextBoxID).OnBlur this. =MoveUp.MoveDown this. } function SetSelectedValue(sValue) { //TRACE("SetSelectedValue: " + sValue). } function GetDataFromServer(sValue) { disableMessage = true.this. return cCode. if (evt) { var cCode = (evt.MoveUp this.IsVisibleMenuDiv =IsVisibleMenuDiv. } function GetMenuDiv() { return document. Anthem_InvokeControlMethod( this. this.HideMenuDiv =HideMenuDiv.charCode : ((evt.ControlID.GetSelMenuItemDiv this.event) ? event : null.getElementById(this. this. this. =MoveDown.which : 0)). function(result){ disableMessage = false.which) ? evt. this. 'GetSuggestions'.getElementById(this. =UnselectMenuItem.MoveMenuDivIfAbsolutePos =MoveMenuDivIfAbsolutePos. =SelectMenuItem. =GetMenuItemDiv. =GetMenuItemDivID.keyCode) ? evt. [sValue]. .GetMenuItemDivID this. } } function GetTextBoxCtrl() { return document.GetMenuItemDiv this. //Detects what key was pressed function GetKey(evt) { evt = (evt) ? evt : (window.UnselectMenuItem =OnBlur.ShowMenuDiv =ShowMenuDiv.SelectMenuItem this. =GetSelMenuItemDiv.msMenuDivID).

sValue).getElementById(this.getElementById(this. //Set selected value of control to the value of selected menu item this. return hdnSelectedValue. TRACE("SetTextBoxValue : Set selected item to " + sValue ). if(divMenuItem) { var sValue=divMenuItem.GetTextBoxCtrl().value.GetTextBoxCtrl().value=sValue.mnSelMenuItem=nMenuIndex. } .value = textboxDisplay. txtCtrl.HideMenuDiv(). this. this.var hdnSelectedValue=document.SetTextBoxValue().HiddenTextBoxI D).SelectMenuItem(nMenuIndex).HiddenTextBoxI D).value). } function OnMouseOver(nMenuIndex) { this.getAttribute('textboxdi splay'). } } function GetTextBoxValue() { var txtCtrl=this. var textboxDisplay = divMenuItem. } function GetSelectedValue() { var hdnSelectedValue=document. var txtCtrl=this. } function SetTextBoxValue() { var divMenuItem=this. } function OnMouseClick(nMenuIndex) { this.getAttribute('value').SetSelectedValue(sValue). hdnSelectedValue. //GetInnerHtml(divMenuIt em.GetSelMenuItemDiv(). return(txtCtrl.

stopPropagation) evt. evt.returnValue = false. //Indicate that control has focus this.IsVisibleMenuDiv()) { this." + this.MoveUp() } else if(nKey==13) //Enter { //TRACE("OnKeyDown : IsVisibleMenuDiv .mbCancelSubmit=false. this.msOldTextBoxValue=this. //TRACE("OnKeyDown : Key is " + nKey). } } else { this. if (evt.mbHasFocus=true. //Save current text box value before key press takes affect this.msTextBo xID).returnValue) evt.stopPropagation().IsVisib leMenuDiv()). //Detect if the user is using the down button if(nKey==38) //Up arrow { this.GetKey(evt) + ". } return true. if (this. } else { this.mbCancelSubmit=true.GetKey(evt). //TRACE("OnKeyDown : old text box value='" + this.HideMenuDiv().MoveDown() } else if(nKey==40) //Down arrow { this. } function OnKeyPress(evt) { .GetTextBoxValue().msOldTextBoxVa lue + "'"). nKey=this.HideMenuDiv(). if (evt.function OnKeyDown(evt) { //TRACE("OnKeyDown : " + this. var nKey.cancelBubble = true. " + this.

} if (this. //Add escape char to single quote sNewValue=sNewValue. if ((this.length <= this.GetDataFromServer('" + sNewValue + "')". //Skip up/down/enter if ((nKey!=38) && (nKey!=40) && (nKey!=13)) { var sNewValue. sNewValue=this.GetMenuDiv(). } return true.t imer).timer) window.clearTimeout(divMenu.mnMaxSuggestChars) && (sNe wValue.length > 0)) { //TRACE("OnKeyUp : Getting data for '" + sNewVal ue + "'"). var divMenu = this. //TRACE("OnKeyUp : " + nKey). var sFunc="asbGetObj('" + this.GetKey(evt). nKey=this. . } } } function OnBlur() { //TRACE("OnBlur").timer = window. //Limit num of characters to display suggestions if ((sNewValue. divMenu.GetKey(evt)==13) && (this.msOldTextBoxValue!=sNewValue) { this.msTextBoxID + "') .GetKey(evt)). //Set timer to update div.GetTextBoxValue(). this.setTimeout(sFunc. } function OnKeyUp(evt) { var nKey.mn KeyPressDelay). //TRACE("OnKeyUp : " + sFunc).replace(/\'/.mbCancelSubmit)) { return false.//TRACE("OnKeyPress : " + this.SetSelectedValue(""). If user types quickl y return suggestions when he stops. if (divMenu. "\\\'").

nMenuItem=this.AutoCallBack == true && this.SelectMenuItem(nMenuItem) . 'FireSelectedValueChangedEvent'. } function GetSelMenuItemDiv() { return this. } function GetMenuItemDiv(nMenuItem) { var sDivMenuItemID=this.value. this.currentValue = selectedValue. } this.msTextBoxID + "_mi_" + nMenuItem).mbHasFocus=false.getElementById(this. } function GetMenuItemDivID(nMenuItem) { return (this.mnSelMenuItem+1.HideMenuDiv().currentValue != selectedVal ue) { Anthem_InvokeControlMethod( this.GetMenuItemDiv(nMenuItem)) { this.ControlID.mnSelMenuItem-1. if(this. [selectedValue]. var selectedValue = document.this.getElementById(sDivMenuItemID) } function MoveUp() { var nMenuItem.GetMenuItemDiv(this. function(result){ } ). if(nMenuItem!=0) { this. nMenuItem=this.GetMenuItemDivID(nMenuItem).SelectMenuItem(nMenuItem) } } function MoveDown() { var nMenuItem.mnSelMenuItem). return document.HiddenTextBoxID ). //Check if menu item exists if(this. //TRACE('Item com o foco no moveup: ' + nMenuItem).

mnSelMenuItem=nMenuItem.GetMenuDiv(). } } function IsVisibleMenuDiv() { if (this. this.GetSelMenuItemDiv() if(divMenuItem) { divMenuItem.SetTextBoxValue().UnselectMenuItem().positi on != "") return.msSelMenuItemCSSClass .style.position != "absolute" && txtCtrl.style.mnSelMenuItem) { this. this.} } //Highlights a div function SelectMenuItem(nMenuItem) { var divMenuItem=this. . } else { return true. } } function MoveMenuDivIfAbsolutePos() { var txtCtrl=this. if (txtCtrl.msMenuItemCSSClass.GetMenuDiv(). } } } //unhighlights a div function UnselectMenuItem() { var divMenuItem=this.visibility == 'hidden') { return false. var divMenu=this.GetMenuItemDiv(nMenuItem) if(divMenuItem) { if (nMenuItem!=this.style. divMenuItem.GetTextBoxCtrl().className=this.className=this.

getElementById(this.body. } else { sInnerHtml=sDivContent.getElementById(this. divMenu.mbUseIFrame) { var divContent.left = xy[0] + "px". if (IsIE() && this.position = "fixed".// (txtCtrl.leftMargin)) + "px". divContent=document. } divMenu. var divMenu=this.offsetTo p + txtCtrl. sInnerHtml += sDivContent. var sInnerHtml. divIframe=document. //divMenu.//TRACE("MoveMenuDivIfAbsolutePos Moving absolute").BlankPageURL.offsetHeight + parseInt(window. //Use blank page to hide 'nonsecure items' message in IE when using HTTPS sInnerHtml += "<iframe id='" + this.body. } function ShowMenuDiv(sDivContent) { //if(!IsIE()) this.msMenuDivID + "_i .GetTextBoxCtrl().topMargin)) + "px".document.msMenuDivID + "_ content").offsetWidth + 'px'.GetMenuDiv().mbUseIFrame) { sInnerHtml = "<div id='" + this. //Move menu right under text box --> Estava dando problema no IE 7 var xy = findPos(txtCtrl).innerHTML = sInnerHtml.width = this.msTextBoxID).style.// (txtCtrl. sInnerHtml += "</div>".style.offsetLeft + par seInt(window. var sBlankPage=this.MoveMenuDivIfAbsolutePos(). //Use IFrame of the same size as div if (IsIE() && this. divMenu. var divIframe.style.document.msMenuDivID + "_ifra me' src='" + sBlankPage + "' frameborder='1' scrolling='no'></iframe>". //TRACE("ShowMenuDiv : " + this. divMenu.msMenuDivID + "_content' >".top = xy[1] + 20 + "px".style.

} divMenu.getElementById("txtASBTRACE"). divIframe.visibility = 'hidden'.marginTop = "-" + divContent. divIframe.appName=="Microsoft Internet Explorer" ). if (txtTRACE!=null) txtTRACE.style.axd?d=g33UWIkS_i7Yb2gbn78vOaf7zNYd8_GRH1473-aiXuCZ_kaf TUwDgJmy-Rldorz2Scf9lEdsxm6uklWbYUgUU4XPin2nogKtJ6-bvmCL4cTxH4B4fTRA6y5bNqelQm0F 0&amp. //]]> </script> <script src="/WebResource.value = txtTRACE.offsetWidth + 'px'.offsetHeight + 'px'. } } //]]> </script><script type="text/javascript"> //<![CDATA[ var Anthem_DefaultURL = "GeekSearch.offsetHeight + 'p x'.t=2f7a99f5" type="text/javas cript"></script> <script src="/ScriptResource.axd?d=VzeZ-xjjUuoIDIwvhAz37bONxltK8NtY-wvIQS9qczn6v na8PHfeikuxcK-m1Z3K3jBKvZaCkuepK_xegGKFyjTDQihbx3lKq3vUzfjLDC2BhmPzShxdOD9Z7eZML 4sF0&amp.t=634655334824992778" type="text/javascript"></script> <script src="/ScriptResource.axd?d=qg9d9TAHiOadRKzmd6zDnggSSYbP1KhKWZFdAlyFjbatZ yCL2-IzMw5IkxJ6u51IeTCyYymhUP_Ts-1H4DbTWAELcRY8eSGxNke4OsKdMFd0xuJ1mV5q07DLs8iAc 5fcC7BVv4To5UwazehHgQTw52IjYXbmBQjWZdqY8yolwMQ1&amp.style. divMenu.GetMenuDiv().aspx?Anthem_CallBack=true". var txtTRACE=document.value + sText + "\n". } function TRACE(sText) { return.height = divContent.) function IsIE() { return ( navigator. } function HideMenuDiv() { this. divIframe.style.width = divContent. //Remember display type divContent.mnSelMenuItem=0. this.style.className="asbMenuBase".visibility = 'visible'.t=f2cd5c5" type="text/javascript"></script> .className=this. } //Utility functions (don't need this.msMenuCSSClass. var Anthem_FormID = "form1".frame").

axd?d=XnwrtI4tfFmMVATJolF28sxnyAJTSokBe9lL5cb3IgaWD IAqP-2d7B_8AIMo2hUgqJzlRi3c8F3jW9oqp9tIfOxa3ujdrtXBKKh50W7c1zeSVk8nF6FBg4FzfSkUH fm-AmIS3WayXLM4ZoMp9SlpBQ2&amp. []. ['t ctl00$ContentPlaceHolder1$UpdatePanel1'.if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false ) return false.axd?d=B2lWT6abLSezaFNFsK4I2irjXLc-kmPX-UsOatVG3YQD1 Mz6-hn9zivw45MRKAbz5xPCajNYHIoO3Q_v0gEl9OlZDwunWJ5uIkxcEog6rdobVVEj9HUejnDswVMUT 2jnng5G0tdYMqZeeAHJEX4YAg2&amp._initialize('ctl00$ScriptManager1'. return true. .t=f2cd5c5" type="text/javascript"></script> <script src="/ScriptResource.axd?d=kCYhGBsPTpvP8J2i1wMcHQxQgJLmqstTaWyN9ZTeEG454 8bsjNpz5NNbd3fa4gbXL8SXX2fxet6EAdyubJ9j1WwLU2-q3nchaRlHWJEmEB_B15FyQKy1gIkHkNd9W Kiap289nnfm2Re-1yRQiYVYOrZTm7907x-805iH0Rvq9xo1&amp.axd?d=IUH9UYqktP5axQaMUj28Vwvu9WyN2krMe74NKEbqIMgWm 45NEHgnl6hb5rWqXRk9PSWkavq4ENcyCgujlXYXZtCq2NcVisWYlcJwwN53hzwkIJ1U6-Hfpf_He6OWJ 1cr7tM-2NfccTkWdUsugjh8jQ2&amp. //]]> </script> <div> <div id="main_container"> <div class="top_leafs"> <img src=".t=f2cd5c5" type="text/javasc ript"></script> <script src="/ScriptResource.t=f2cd5c5" type="text/javascript"></script> <script src="/ScriptResource.t=f2cd5c5" type="text/javasc ript"></script> <script type="text/javascript"> //<![CDATA[ function WebForm_OnSubmit() { null.axd?d=1Au3G4-Hmv4Yut-bmvCMLohJelCY4Nyccls4I7V3WFAey pSMaoIGfqgQi2Lw32AwWnrMneJS6deFVHHku-oo1LwIadFS5o68eN2ISDjEF1EFV-5rvpevlfsEevHFk 8ix7SZGGRVKyw9O3agl-iybZrf5-hbMXuY8U0bwXDRSZ-I1&amp.png" alt="" title=" " /></div> <div class="header" style="width: 960px.axd?d=9l1LGzEzDm87vPhLid6JbXOKyMf84ZFuDSBdUFoNVjLxR W5gsDiwmGyFq_3Gn8lCZYCRlTPC0Puu7dAMjh5PKgZmAeaAPRSiouuT_oZjEylmATozIQlN7uFMOkmaC EXn4xvfw9JazT3g_tG4ixfbpRAKTtxo4Cw84UvoMDSA76I1&amp.axd?d=Z4_vY60EnSFk-7qREUfhCFts_2brXpv0K_-OMrPECPUsT 7pvSRYmQ1vjaUeVTm-scgrcSRI1s4hXPvhHx0bYJ7ntfpUys8MYHcRtGVkkPF7DArEyyR2InQZ6kD2qf d0ocs6xnsBF6fflYNCO3khU3w2&amp./images/top_leafs. height: 196px.t=f2cd5c5" type="text/javascript"></script> <script src="/ScriptResource.. margin: 0px. [].t=f2cd5c5" type="text/javascript"></script> <script src="/ScriptResource.axd?d=25QQx6oRxIcJWNuFz8Mt5GfdxSsgnrfRUqOBnSeOxq1C5 vh1DT2ROceyrLqHu40A6G0JPc1X27VtWGlraYmmaEUts39rZFPUjAJCJBAfn6rAiaA_ChVZuxviAoL_Z 1Mbi-jLCJGE343rMmvvSUsKtw2&amp.t=f2cd5c5" type="text/javascript"></script> <script src="/ScriptResource.t=f2cd5c5" type="text/javascript"></script> <script src="/ScriptResource. pad ding: 0px.axd?d=P_YFZRwXMzXjqndxprqvfI0gvUncH7Iqm2EcSFwqCoLhv Nu3LU_YIfiiSOBUm8B9Wiq55KPZBVU0skbKp5ye__zerA5jhD2WARh0FB8tYxQeX4WCkhuSEm1xVbTrT xaqoca7M8l4eUru0tMrn1iEzg2&amp.<script src="/ScriptResource. 'ctl00').PageRequestManager. 'form1'.WebForms.'ContentPlaceHolder1_UpdatePanel1']. 90.t=f2cd5c5" type="text/javascript"></script> <script src="/ScriptResource.t=f2cd5c5" type="text/javascript"></script> <script src="/ScriptResource.axd?d=81Kw6NoWj1tA0-TVz1YDG5en3SPhhUhEYxlp7RqskhAXp X-CRLNUsVeMZsn6xIpfwzQ43n7AI7YiDA41oObSZw6UpoGtP4T0xE_CZ5rg24ByS3mN9ezvXCvDpqiZ7 l_10&amp.t=f2cd5c5" type="text/javasc ript"></script> <script src="/ScriptResource.axd?d=NLWpTdCmwyTPBYr9T7AKzDrPMwXgw436Smaqz6jdYVadW 6akRqTNS4yQFfFcmU89hxcBO1MXL1o872Dw9auKvinmZ8hQLpzzqhSqpRFAJ1f3X5JEPTWYtAoxSdAEE hweLN31TJi-xyj44quz-Ac5tA2&amp. } //]]> </script> <script type="text/javascript"> //<![CDATA[ Sys.

mbUseIFrame=true.msSelMenuItemCSSClass=' asbSelMenuItem'.axd?d=6WJI JHVTKPPzMbkjO0FAMenztzwmV-d6hWt_8A-pRSL9ZGnXLAxd8fRwSqNsdelk2IuiA29rP-NJ9rxBqaaw 0wg-BxapFoEb27fSvSnC-m-aUYZxUYu1PwlEz57BPRqkIoDeipQCugl9gY6e5WQ2cw2&t=6346553348 00500778'.oJSAutoSuggestBox.oJSAutoSugge stBox.oJSAutoSugges tBox.oJSAutoSu ggestBox." onkeydown="asbGetObj(&#39. oJSAutoSuggestBox)..as px">blog</a></li> </ul> </div> </div> <center> <input type="hidden" name="ctl00$ContentPlaceHolder1$tw1_ClientState" id="Conten tPlaceHolder1_tw1_ClientState" /> <input type="hidden" name="ctl00$ContentPlaceHolder1$TextBoxWatermarkExtender1_C lientState" id="ContentPlaceHolder1_TextBoxWatermarkExtender1_ClientState" /> <input type="hidden" name="ctl00$ContentPlaceHolder1$TextBoxWatermarkExtender2_C lientState" id="ContentPlaceHolder1_TextBoxWatermarkExtender2_ClientState" /> <div style=" padding-top:70px.oJSAutoSuggestBox../Pages/Studyhub.BlankPageURL='/WebResource.). OnKeyDown(event).mnSelMenuItem=0.aspx">photo gallery</a></ li> <li><a href="http://geeksblog." /></span><span id="Anthem_ContentPlaceHolder1_asbProduct__SelectedValue__"><inpu t name="ctl00$ContentPlaceHolder1$asbProduct$_SelectedValue" type="text" value=" instead of Trigger in SQl" id="ContentPlaceHolder1_asbProduct__SelectedValue" s tyle="display:none.HiddenTextBoxID='ContentPlaceH older1_asbProduct__SelectedValue'.font-size:X-Large.msMenuDivID='divMenu_ContentPlac eHolder1_asbProduct_ctl00'.ContentPlaceHolder1_asbProduct_ctl00&#39.OnKeyPress(event).oJSAutoSuggestBox." autocomplete="off" style="width:350px.OnKeyUp(event).msMenuCSSClass='asbMenu'.oJSAutoSuggestBox.ContentPlaceHolder1_ asbProduct_ctl00&#39.jpg) no-repeat top center"> <div class="logo"> <a href="..oJSAutoSuggestBox." onkeypress="return asbGetObj(&#39.).mnMaxSuggestChars=100. OnBlur().oJSAutoSuggestBox.mnKeyPressDelay=300./ /--> </script> <span id="Anthem_ContentPlaceHolder1_asbProduct__"><span id="Anthem_ContentPlace Holder1_asbProduct_ctl00__"><input name="ctl00$ContentPlaceHolder1$asbProduct$ct l00" type="text" value="instead of Trigger in SQl" id="ContentPlaceHolder1_asbP roduct_ctl00" onblur="asbGetObj(&#39./images/header_bg.).ControlID=' ContentPlaceHolder1_asbProduct'.).html">Geeks World</a> </div> <div class="menu"> <ul> <li class="selected"><a href="."> <span id="ContentPlaceHolder1_Label1" style="color:Green.oJSAutoSuggestBox.background: url(.msMenuItemCSSClass='asbMenuItem'.ContentPlaceHolder1_asbProduct_ctl00&#39.ContentPlaceHolder1_asbProd uct_ctl00&#39.com/MyBlog./index.asbAddObj('ContentPlaceHolder1_asbProduct_ctl00'.oJSAutoSuggestBox.AutoCallBack=false./index..aspx">geek search</a></li> <li><a href=".msTextBoxID='ContentP laceHolder1_asbProduct_ctl00'.">Geeks Search</span><br /> <script language="javascript"> <!-oJSAutoSuggestBox=new JSAutoSuggestBox().f ont-weight:bold./Pages/GeekSearch..oJSAutoSuggestBox." onkeyup="asbGetObj(&#39.html">home</a></li> <li><a href=". ' id='divMenu_ContentPlaceHolder1_asbProduct_ctl00'></div> </span> .aspx">study hub</a></li> <li><a href="../Pages/PhotoGallery.geekstechnoworld.oJSAutoSuggestBox." /></span><br><div class='asbMenu' style='visibility:hidden.

">instead of Trigger in SQl</span> <a id="ContentPlaceHolder1_searchList_LinkButton1_0" href="javas cript:__doPostBack(&#39."> <tr> <td class="style1"> <table id="ContentPlaceHolder1_searchList" cellspacing="0" style="width:272 px.border-collapse:collapse.&nbsp. border-style:solid."> <h3 style="text-align: center..)" style="color:Green." id="ContentPlaceHolder1_btnPost" /> &nbsp.&#39. " id="header" ><font color="#407E03"> Mail Us</font></h3> <center> <table> <tr> <td> <input name="ctl00$ContentPlaceHolder1$txtName" type="text" id=" ContentPlaceHolder1_txtName" /> <span id="ContentPlaceHolder1_RequiredFieldValidator1" style="co lor:#407E03.<br /> <input type="submit" name="ctl00$ContentPlaceHolder1$btnPost" value="Sea rch" onclick="StartProgressBar()."> <tr> <td> <table> <tr> <td> <span id="ContentPlaceHolder1_searchList_Label1_0" style="color:Whit e. <input type="submit" name="ctl00$ContentPlaceHolder1$btnAsk" value="Ask" id= "ContentPlaceHolder1_btnAsk" /> <br /> </div> </center> <center> <table style=" padding-left:60px.ctl00$ContentPlaceHolder1$searchList$ctl00$LinkButton1&# 39.wid th:400px.">Download</a> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </center> <div id="ContentPlaceHolder1_Panel1" style="background-color:#BA8845.font-weight:bold.visibility:hidden. padding:10px.&#39.display: none. border:1px.">Name is required!</span> </td> </tr> . padding-top:80px.

ctl00$ContentPlaceHolder1$btnSend&quot.">Wrong Email Format!</span> </td> </tr> <tr> <td> <textarea name="ctl00$ContentPlaceHolder1$txtQuery" rows="2" cols=" 20" id="ContentPlaceHolder1_txtQuery" style="color:#E9D9B5.border-color:Green. true. false."> <div class=scroll" > </div> </td> </tr> </table></center> <div id="ContentPlaceHolder1_UpdatePanel1"> .<tr> <td> <input name="ctl00$ContentPlaceHolder1$txtEmailId" type="text" i d="ContentPlaceHolder1_txtEmailId" /> <span id="ContentPlaceHolder1_RequiredFieldValidator2" style="co lor:#407E03.border-style:Inset.">Query is required!</span> </td> </tr> <tr> <td> <input type="submit" name="ctl00$ContentPlaceHolder1$btnSend" va lue="Send" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBac kOptions(&quot.g&quot.visibility:hidden. &quot. &quot..font -weight:bold.visibility:hidden.height:122px.&quot."> </textarea> <span id="ContentPlaceHolder1_RequiredFieldValidator3" style=" color:#407E03. &quo t. false))" id="ContentPlaceHolder1_btnSend" /> <input type="submit" name="ctl00$ContentPlaceHolder1$closeBtn" valu e="Close" id="ContentPlaceHolder1_closeBtn" /> </td> </tr> <tr> <td> <span id="ContentPlaceHolder1_lblStatus" style="color:Black.bo rder-width:3px.width:221px.visibility:hidden.">Email is required!</span> <span id="ContentPlaceHolder1_RegularExpressionValidator1" style ="color:#407E03...&quot."></span> </td> </tr> </table> </center> </div> <center><table> <tr> <td style="padding-left:70px..

document. document.all["C ontentPlaceHolder1_RequiredFieldValidator1"] : document./Images/loader. ContentPlaceHolder1_RequiredFieldValidator2. ContentPlaceHolder1_RegularExpressionValidator1.initialvalue = "". .getElementById("ContentPlaceHolder1_RequiredFi eldValidator2"). ContentPlaceHolder1_RequiredFieldValidator1. var ContentPlaceHolder1_RequiredFieldValidator2 = document."> <img src=". var ContentPlaceHolder1_RegularExpressionValidator1 = document. ContentPlaceHolder1_RequiredFieldValidator1.all ? document. //]]> </script> <script type="text/javascript"> //<![CDATA[ var ContentPlaceHolder1_RequiredFieldValidator1 = document. ContentPlaceHolder1_RequiredFieldValidator1.<div id="ContentPlaceHolder1_Panel2" style="display: none.validationGroup = "g".initialvalue = "".validationGroup = "g". ContentPlaceHolder1_RequiredFieldValidator1.all["C ontentPlaceHolder1_RequiredFieldValidator2"] : document. ContentPlaceHolder1_RequiredFieldValidator2.getElementById("ContentP laceHolder1_RequiredFieldValidator2"). background-color: #C0 C0C0.evaluationfunction = "RequiredFieldV alidatorEvaluateIsValid".al l["ContentPlaceHolder1_RegularExpressionValidator1"] : document. document.controltovalidate = "ContentPlaceHol der1_txtName".controltovalidate = "ContentPlaceHol der1_txtEmailId".gif" alt="" /> </div> <input type="hidden" name="ctl00$ContentPlaceHolder1$hiddenField" id ="ContentPlaceHolder1_hiddenField" /> </div> </div> </div> <script type="text/javascript"> //<![CDATA[ var Page_Validators = new Array(document. ContentPlaceHolder1_RequiredFieldValidator2.getElementById(" ContentPlaceHolder1_RegularExpressionValidator1"). ContentPlaceHolder1_RequiredFieldValidator2.getElementById("ContentP laceHolder1_RequiredFieldValidator1")..getElementById("ContentPlaceHolder1_RegularExpressionV alidator1").getElementById("ContentPlaceHolder1_RequiredFieldValidator 3")).controltovalidate = "ContentPlac eHolder1_txtEmailId".evaluationfunction = "RequiredFieldV alidatorEvaluateIsValid".getElementById("ContentPlaceHolder1_Re quiredFieldValidator1").all ? document.all ? document.

add_init(function() { $create(Sys. null.add_init(function() { $create(Sys. //]]> </script> <script type="text/javascript"> //<![CDATA[ var Page_ValidationActive = false. null.add_init(function() { . }).aspx".validationGroup = "g".Extended. {"ClientStateFieldID":"Con tentPlaceHolder1_tw1_ClientState".Application.Extended. }).evaluationfunction = "RequiredFieldV alidatorEvaluateIsValid".initialvalue = "". Sys. if (typeof(ValidatorOnLoad) == "function") { ValidatorOnLoad()."id":"ContentPlaceHolder1_TextBoxWatermarkExtender2"}. } } Sys. ContentPlaceHolder1_RequiredFieldValidator3. null.Application.all ? document."WatermarkText":"Email I d".]\\w+)*".\']\\w+)*@\\w+([-."CancelControlID":"ContentPlaceHolder1_closeBtn". ContentPlaceHolder1_RegularExpressionValidator1. Sys. null. {"ClientStateFieldID":"Con tentPlaceHolder1_TextBoxWatermarkExtender1_ClientState"."id":"ContentPlaceHolder1_TextBoxWatermarkExtender1"}.TextBoxWatermarkBehavior."id":"ContentPlaceHolder1_mymodalpopup"}.Application.Extended. }). {"BackgroundCssClass":"backgroun dColor1"."id":"ContentPlaceH older1_tw1"}. ContentPlaceHolder1_RequiredFieldValidator3. ContentPlaceHolder1_RegularExpressionValidator1.validationexpression = "\\w+([-+ .evaluationfunction = "RegularExp ressionValidatorEvaluateIsValid". Sys. null. ContentPlaceHolder1_RequiredFieldValidator3.Application.add_init(function() { $create(Sys.UI.focusOnError = "t". var ContentPlaceHolder1_RequiredFieldValidator3 = document.controltovalidate = "ContentPlaceHol der1_txtQuery". Sys."dynamicServicePath":"/Pages/GeekSearc h.TextBoxWatermarkBehavior."Pop upControlID":"ContentPlaceHolder1_Panel1". ContentPlaceHolder1_RegularExpressionValidator1. $get( "ContentPlaceHolder1_txtQuery")). $get("ContentPlaceHolder1_txtName")).UI. null."WatermarkText":"Your Qu ery!!!".getElementById("ContentP laceHolder1_RequiredFieldValidator3"). {"ClientStateFieldID":"Con tentPlaceHolder1_TextBoxWatermarkExtender2_ClientState". }). } else { return true.Extended."WatermarkText":"Username". $get("Cont entPlaceHolder1_txtEmailId")). null. $get("ContentPlace Holder1_btnAsk")). } function ValidatorOnSubmit() { if (Page_ValidationActive) { return ValidatorCommonOnSubmit().UI.]\\w+)*\\.TextBoxWatermarkBehavior.ModalPopupBehavior. null.\\w+([-.validationGroup = "g"."DropShadow":true.UI. ContentPlaceHolder1_RequiredFieldValidator3.add_init(function() { $create(Sys.ContentPlaceHolder1_RegularExpressionValidator1.Application.all["C ontentPlaceHolder1_RequiredFieldValidator3"] : document.

"Color" :"AliceBlue". null. {"BorderColor":"Red".getElementById('ContentPlaceHolder1_R equiredFieldValidator1')). } document. {"BackgroundCssClass":"ModalBack ground".Extended."id":"ProgressBarModalPopupExtender"}.getElementById('ContentPlaceHolder1_RequiredFieldValidator1').remove(Page_Validators.getElementById('ContentPlaceHolder1_R equiredFieldValidator2')).RoundedCornersBehavior. null.ModalPopupBehavior.remove(Page_Validators.getElementById('ContentPlaceHolder1_RegularExpressionValidator1').UI.UI. }).add_init(function() { $create(Sys.remove(Page_Validators.Application.dispose = function() { Array.getElementById('ContentPlaceHolder1_RequiredFieldValidator2').getElementById('ContentPlaceHolder1_RequiredFieldValidator3').dispo se = function() { Array.getElementById('ContentPlaceHolder1_R egularExpressionValidator1')). document. //]]> </script> </form> </body> </html> .aspx". null. $get("Conte ntPlaceHolder1_searchList"))."dynamicServicePath":"/Pag es/GeekSearch."PopupControlID":"ContentPlaceHolder1_Panel2". } document."id":"ContentPlaceHolder1_rc"}.getElementById('ContentPlaceHolder1_R equiredFieldValidator3')). } document. document. $get("Con tentPlaceHolder1_hiddenField"))."Radius":12. document. } Sys.dispose = function() { Array. document.dispose = function() { Array. null. }).remove(Page_Validators.$create(Sys.Extended. document.