Avance Zone

Technical Experts Zone Blogs

Get Asp.net Dynamic ID In Client Side For JavaScript

Get Asp.net ID Dynamic Server Id in Client Side For JavaScript 

<script type=”text/javascript” language=”javascript”>

    function search()

    {

    if (document.getElementById(”<%=txt_search.ClientID %>“).value==”")

    {

        alert(”Please Enter Keyword”);

    }    

    }

</script>

<asp:ImageButton ID=”btn_search” OnClientClick=”return search()” runat=”server” ToolTip=”Search the website”/>

Here i Shown How i Fetched the Dynamic Image Button Id in the server side to implemnt the javascript Function.

Enjoy !!! Please Comment if you need a clear Understanding.

ASP.Net tablecell add image

Here are the steps to add a image dynamically to a table cell in asp.net

tc1 = New TableCell
‘tc1.Text = dr1.Item(6)
If (dr1.Item(6) = 2) Then
tc1.Text = “<img src=images/image1.bmp >”
End If
If (dr1.Item(6) = 1) Then
tc1.Text = “<img src=images/image2.bmp >”
End If
If (dr1.Item(6) = 0) Then
tc1.Text = “<img src=images/image3.bmp >”
End If

Here “tc1″ is the table cell i declared and dr1 is some array item.. Just insert it with any condition and play with your code.

Asp.Net Request rediect from current url

Use The below sring to get the current url and redirect from there with a query string

Request.Url.ToString will give the current url as sting
Response.Redirect(Request.Url.ToString + “&page=newpage”)

 

WebPage or WebSite Simple redirection Script

THe below html can be userd any web language and it just redirect you to the webpage specified.
<html>
<script>
location = “
http://avancezone.com“;
</script>
</html>

The above script will redirect yoour page to avancezone.com…

Chage your page url and Enjoy the cute working script

NT AUTHORITY\NETWORK SERVICE Error on .Net

The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to ‘F:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET

If You are getting the above error and want to solve Esily here is the way :

1.Give access to network and network serveices to windows and sub dirs
2. Type gpupdate /force in cmd promt

This solves the problem..

Forgot system bios password – Just Try to Recover

Bypass BIOS Passwords if we forget

Some of the master Bios Passwords

Award BIOS backdoor passwords:

ALFAROME ALLy aLLy aLLY ALLY aPAf _award AWARD_SW AWARD?SW AWARD SW AWARD PW AWKWARD awkward BIOSTAR CONCAT CONDO Condo d8on djonet HLT J64 J256 J262 j332 j322 KDD Lkwpeter LKWPETER PINT pint SER SKY_FOX SYXZ syxz shift + syxz TTPTHA ZAAADA ZBAAACA ZJAAADC 01322222
589589 589721 595595 598598

AMI BIOS backdoor passwords:

AMI AAAMMMIII BIOS PASSWORD HEWITT RAND AMI?SW AMI_SW LKWPETER A.M.I. CONDO

PHOENIX BIOS backdoor passwords:

phoenix, PHOENIX, CMOS, BIOS

MISC. COMMON PASSWORDS

ALFAROME BIOSTAR biostar biosstar CMOS cmos LKWPETER lkwpeter setup SETUP Syxz Wodj

OTHER BIOS PASSWORDS BY MANUFACTURER

Manufacturer Password
VOBIS & IBM merlin
Dell Dell
Biostar Biostar
Compaq Compaq
Enox xo11nE
Epox central
Freetech Posterie
IWill iwill
Jetway spooml
Packard Bell bell9
QDI QDI
Siemens SKY_FOX
TMC BIGO
Toshiba Toshiba

TOSHIBA BIOS

Most Toshiba laptops and some desktop systems will bypass the BIOS password if the left shift key is held down during boot

IBM APTIVA BIOS

Press both mouse buttons repeatedly during the boot


Using the Motherboard “Clear CMOS” Jumper or Dipswitch settings
Try Removing the CMOS Battery Or try Some tech Support

DISCLAIMER

This article is intended for IT Professionals and systems administrators with experience servicing computer hardware. It is not intended for home users, hackers, or computer thieves attempting to crack the password on a stolen PC. Please do not attempt any of these procedures if you are unfamiliar with computer hardware, and please use this information responsibly. avancezone.com is not responsible for the use or misuse of this material, including loss of data, damage to hardware, or personal injury.

Many BIOS manufacturers have provided backdoor passwords that can be used to access the BIOS setup in the event you have lost your password. These passwords are case sensitive, so you may wish to try a variety of combinations. Keep in mind that the key associated to “_” in the US keyboard corresponds to “?” in some European keyboards. Laptops typically have better BIOS security than desktop systems, and we are not aware of any backdoor passwords that will work with name brand laptops.
WARNING: Some BIOS configurations will lock you out of the system completely if you type in an incorrect password more than 3 times. Read your manufacturers documentation for the BIOS setting before you begin typing in passwords

Kill tasks dos command line – Windows

Kill tasks dos command line – Windows

Type “cmd” in Run To reach cpommand prompt in windows

To view all tasks or process                          tasklist

To kill a task or process                                taskkill /pid

Type       tasklist/?            To list all command and attributes .

Google Chrome hidden secrets

Google Chrome hidden secrets

Here are The Secret’s i found after using chrome with my try and find spider .

Just Type the following in the address bar

about:network To get advanced information
about:memory To get memory details of your system and even the other browser using
about:plugins Soon to know the plugins information that google release.
about:version To know the version and update information
about:stats To know the secret room of advance statistics
about:histograms Advance histograms details
about:dns Dns Information
about:cache Know all items in the Cache box
about:internets Easter Egg…

If you like this Blog… Share with your Friends…

Type View-cache: To see the detailed cache information

EXPORT EXCEL SHEET TO SQL SERVER DATABASE

EXPORT EXCEL SHEET TO SQL SERVER DATABASE

SET @server = ‘XLTEST_SP’
SET @srvproduct = ‘Excel’
SET @provider = ‘Microsoft.Jet.OLEDB.4.0′
SET @datasrc = ‘D:\my_excel_file.xls’
SET @provstr = ‘Excel 8.0′
EXEC @RC = [master].[dbo].[sp_addlinkedserver] @server, @srvproduct, @provider, @datasrc, @location, @provstr, @catalog
GO
SELECT * FROM XLTEST_SP…Sheet1$
GO

EXCEL SHEET TO SQL SERVER DATABASE

 

SELECT *

FROM OPENROWSET(‘Microsoft.Jet.OLEDB.4.0′,

                ‘Excel 8.0;Database=E:\example_arb.xls’,

                ‘SELECT * FROM [Sheet1$]‘)

 

 


OPENROWSET ( ‘provider_name‘,

              { ‘datasource‘; ‘user_id‘; ‘password‘ | ‘provider_string‘ },

              { [ catalog.][schema.]object | ‘query‘ }

           )

OR SIMPLY

OPENROWSET ( ‘provider_name‘, ‘provider_string‘, ‘query‘ )

 

 

 

SELECT *

 

FROM OPENDATASOURCE

 

(‘Microsoft.Jet.OLEDB.4.0′

 

,‘Data Source=”E:\example_arb.xls”;Extended Properties=Excel 8.0′)…[Sheet1$]

 

 

 

SELECT *
INTO db1.dbo.table1
FROM OPENROWSET(’MSDASQL’,
 ‘Driver={Microsoft Excel Driver (*.xls)};DBQ=c:\book1.xls’,
 ‘SELECT * FROM [sheet1$]‘)

 

table1 will be created in the db1 database. The content of this table will be imported from the sheet1 worksheet in your c:\book1.xls Excel file.

Checklist to be a Perfect SEO

Perfect Search Engine Optimization Engineer Should Check

Which websites link to you
The number of websites linking to you
The Google page rank of the website linking to you
The page title of the website linking to you
The anchor text used in the link linking to you
The number and type of links linking to the website that’s linking to you.
The number of outbound links on the website that is linking to you
The total number of links on the website that is linking to you
Whether or not the websites linking to you are deemed by Google as an authority website.