NOVELTY - N-methylimidazole and dodecylamine chloride are mixed, heated and refluxed, to obtain 1-methyl-3-dodecyl glyoxaline thiocyanate. 1-Methyl-3-dodecyl glyoxaline thiocyanate is mixed with 1-methyl-3-dodecyl glyoxaline iodide, to obtain uniform solution. Then, lithium iodide, iodine and 4-tertiary butylpyridine are added to obtained solution, to obtain ionic liquid electrolyte. Then, counter electrode is applied on prepared transparent electrode, ionic liquid electrolyte is injected between two electrodes and heated, to obtain dye-sensitized solar battery.    USE - Preparation of dye-sensitized solar battery.    ADVANTAGE - The method provides dye-sensitized solar battery with improved photoelectric conversion efficiency.    DETAILED DESCRIPTION - (In ml) N-methylimidazole (80-100) and dodecylamine chloride (150-180) are added into a 500 ml bottle which is connected with reflux device. A dry tube is connected to reflux device. The bottle is placed in oil bath having temperature of 70-80 degrees C which is maintained for 10-30 minutes, heated, temperature of oil bath is controlled to 100-110 degrees C, refluxed for 60-80 hours, and then heating is stopped. Bottle containing oil liquid is placed in vacuum oven, temperature is controlled to 120 degrees C which is maintained for 10-16 hours and dodecylamine chloride is removed, to obtain light yellow 1-methyl-3-dodecyl glyoxaline thiocyanate. 1-Methyl-3-dodecyl glyoxaline iodide is prepared using N-methyl imidazole (80-100) and n-dodecane iodide (150-180) using similar procedure as that of preparation of 1-methyl-3-dodecyl glyoxaline thiocyanate. 1-Methyl-3-dodecyl glyoxaline thiocyanate and 1-methyl-3-dodecyl glyoxaline iodide in volume ratio of 1:1 are mixed, to obtain uniform solution. Then, lithium iodide (0.1-0.15 mole/L), iodine (0.15-0.35 mole/L) and 4-tertiary butylpyridine (0.45-0.55 mole/L) are added to obtained solution, to obtain ionic liquid electrolyte. Titanium oxide conductive material is coated on fluorine-doped tin oxide conductive glass substrate, to form transparent electrode which is then dipped into 0.3 mole/L of N719-type dye solution containing ethanol and acetonitrile in volume ratio of 1:1 for 32-48 hours. Counter electrode made of platinum is applied on electrode after dye adsorbing process, ionic liquid electrolyte is injected between two electrodes, heated to 80 degrees C for 5 minutes, to make electrolyte completely permeate and then temperature is reduced to room temperature, to obtain dye-sensitized solar battery.