2008-08-18
శ్రీదీపిక » Technical: An intermediate way to generate Indic Pdf’s using iText/iTextsharp
వీవెనుడి టెక్కునిక్కులు: అత్యుత్తమ తెలుగు బ్లాగులు (రెండవ దఫా)
2008-08-11
Bharath Radhekrishna's Weblog: Email sending problem from Godaddy server solved in ASP.NET (108 situations)
Hello everybody. When I am trying to send an email with HTML format the values are coming from database i felt problem with godaddy server.
నేను ఒకసారి GoDaddy ద్వారా ఈమెయిలు పంపిస్తుంటే చాలా ప్రొబ్లెంస్ వచ్చాయి
నేను వాటిని పరిశోధించి చివరికి చిన్న సమాధానం కనుకునా ఏమైనా సందేహం వుంటే మెయిల్ చెయ్యండి
Email; radhek@gmail.com
To solve that we must add relay hosting.
I’d just like to add that when you’re sending email via “relay-hosting.secureserver.net” you will be able to send email via the GoDaddy server but it will not work if you run it locally. This is normal - it’s a security feature.
Code below
using system.net.mail namespace.
const string SERVER = “relay-hosting.secureserver.net”;
System.Net.Mail.MailMessage objMail = new System.Net.Mail.MailMessage();
objMail.From = new MailAddress(“”);objMail.To.Add(MailId);
objMail.Bcc.Add(BCC);
objMail.IsBodyHtml = true;
objMail.Subject = “Order Confirmation”;
objMail.Priority = System.Net.Mail.MailPriority.High;
objMail.Body = “<h1>hi</h1>”;
SmtpClient Client = new SmtpClient(SERVER);Client.Send(objMail);
U need to Specifie the SMTP CLIENT SERVER LIKE THAT
This is working with my Godaddy Server try out

2008-08-07
Bharath Radhekrishna's Weblog: Gmail down
Hi friends My gmail account is not opening from yesterday night i.e 6th Aug 08 and also not opening today.
ఫైరుఫాక్సు లో జిమెయిల్ రావటం లేదు కాని అదే ఇంటర్నెట్ ఎక్సప్లోరర్ లో వస్తుంది
I dont know what happened exactly so I have send a mail to gmail team they send the following reply:
Hello,
Thank you for your report.
We are aware of this problem, and our engineers are making progress to
restore account access. You can find timely updates in the Gmail Help
Discussion group at:
http://groups.google.com/group/Gmail-Help-Announcements-and-Alerts-en/browse_thread/thread/f92b062153654584.
We apologize for any inconvenience this has caused.
Sincerely,
The Google Team
I dont know what happened this is drawback of google.
I have read many blogs and I found that same account is opening in IE.
I tried opening in IE it is working fine.
I dont know what happened with IE only its working.
I must switch to some other alternative to gmail.

2008-08-06
నా మదిలో ...: విండోసు ఉపకరణాలకి లినక్సు ప్రత్యామ్నాయాలు ...
Bharath Radhekrishna's Weblog: How to know the width & height of an uploaded image in ASP.NET
How to know the width & height of an uploaded image in ASP.NET
ఇమేజ్ యొక్క పొడవు వెడల్పు in ASP.NET
Import the namespace using System.IO;
Step 1:
using System.IO;
Step 2:
System.Drawing.Image UploadedImage = System.Drawing.Image.FromStream(Image1.PostedFile.InputStream);
Here Image1 is the name of uploaded image.
System.Drawing.Image.FromStream
Creates an Image from the specified data stream.
To know more visit: http://msdn.microsoft.com/en-us/library/system.drawing.image.fromstream.aspx
Step 3:
Now you can get width and height of image using
UploadedImage.Width
UploadedImage.Height

Bharath Radhekrishna's Weblog: Random number generation in ASP.NET
Random number generation in ASP.NET
ఏదో ఒక్క నెంబర్ జనరేషన్ in ASP.NET
Step 1:
write a class file.
eg:
Create a cs file named as rand.cs
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Microsoft.VisualBasic;
/// <summary>
/// Summary description for random_number
/// </summary>
public class random_number
{
public string GetRandomNumber(int length, string characterSet)
{
string randomData = “”;
int position = 0;
byte[] data = new byte[length];
int characterSetLength = characterSet.Length;
System.Security.Cryptography.RandomNumberGenerator random = System.Security.Cryptography.RandomNumberGenerator.Create();
random.GetBytes(data);
for (int index = 0; (index < length); index++)
{
position = data[index];
position = (position % characterSetLength);
randomData = (randomData + characterSet.Substring(position, 1));
}
return randomData;
}
}
step 2:
use this in codebehind of any aspx page
random_number r1 = new random_number();
string str= r1.GetRandomNumber(5, “ABCDEFGHIJLLMNOPQRSTUVWXYZ_1234567890″);

2008-08-05
Bharath Radhekrishna's Weblog: Gridview operations Edit,Delete,Update
గ్రిడ్ వ్యూ లో కొన్ని ఆపరేషన్లు
BoundField in Grid view and bind the data to each field using “Edit Column” option in smarttag of grid view.
We can also add images to Edit and Delete option in Grid view “edit columns” by adding a “commandfield”.
String con1 = ConfigurationManager.ConnectionStrings["con"].ToString();
DataSet ds = new DataSet();
protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
{
GridView1.EditIndex = -1;
bindata();
}
protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
string i = GridView1.DataKeys[e.RowIndex].Value.ToString();
int j = Convert.ToInt32(i);
TextBox t1 = new TextBox();
t1 = (TextBox)GridView1.Rows[e.RowIndex].Cells [0].Controls [0];
TextBox t2 = new TextBox();
t2 = (TextBox)GridView1.Rows[e.RowIndex].Cells [1].Controls [0];
TextBox t3 = new TextBox();
t3 = (TextBox)GridView1.Rows[e.RowIndex].Cells [2].Controls [0];
SqlConnection con = new SqlConnection(con1);
string upt = “update Allergies set Allergy = @allergy, Symptoms = @symptom, Action_to_be_taken =@action where Allergy_id=” + j;
SqlCommand cmd = new SqlCommand(upt, con);
cmd.Parameters.Add(“@allergy”, SqlDbType.VarChar).Value = t1.Text;
cmd.Parameters.Add(“@symptom”, SqlDbType.VarChar).Value = t2.Text;
cmd.Parameters.Add(“@action”, SqlDbType.VarChar).Value = t3.Text;
con.Open();
cmd.ExecuteNonQuery();
con.Close();
GridView1.EditIndex = -1;
bindata();
}
protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
{
GridView1.EditIndex = e.NewEditIndex;
bindata();
}
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
string i = GridView1.DataKeys[e.RowIndex].Value.ToString();
int j = Convert.ToInt32(i);
SqlConnection con = new SqlConnection(con1);
string del = “Delete from Allergies where Allergy_id=” + j;
SqlCommand cmd = new SqlCommand(del, con);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
GridView1.EditIndex = -1;
bindata();
}

2008-08-04
Bharath Radhekrishna's Weblog: Generating serial numbers in Data controls
If you want to generate serial number column in data controls just see below:
Gridview: Container.DataItemIndex+1
(For e.g. In gridview
<asp:TemplateField HeaderText=”S.No”>
<ItemTemplate><%#Container.DataItemIndex+1 %></ItemTemplate>
</asp:TemplateField>
)
Datalist: Container.ItemIndex+1
Formview: Container.PageIndex+1

2008-08-02
వీవెనుడి టెక్కునిక్కులు: కూడలిలో టపాల జీవితకాలాన్ని పెంచడం
2008-07-29
వీవెనుడి టెక్కునిక్కులు: మార్చిన టపాలు ఇక కూడలిలో రావు!
2008-07-28
నా మదిలో ...: మైక్రోబ్లాగింగు... - కుచించుకుపోతున్న సమాచారం
2008-07-11
Bharath Radhekrishna's Weblog: Encrypted querystring in ASP.NET
Encrypted Querystring
Hello friends When we are passing data between two asp.net pages we will use querystring. But the original value will be displayed there which is not a secure way to do. So we must encrypt that information.
I faced the same situation and searched GOOGLE and come across a nice article by Mr.Tiberius OsBurn of DEVCITY. The original article you can get at: http://www.devcity.net/PrintArticle.aspx?ArticleID=47.
Basically I am C# guy. I made some changes to that program and its working fine now.
First we will write a class file where Encrypt and Decrypt functions will be there.By using them we will execute that.
1) Create a class file in APP_CODE folder and paste this code.
Code Begins
“
using System;
using System.IO;
using System.Xml;
using System.Text;
using System.Security.Cryptography;
public class Encryption64
{
private byte[] key = { };
private byte[] IV = { 18, 52, 86, 120, 144, 171, 205, 239 };
public string Decrypt(string stringToDecrypt, string sEncryptionKey)
{
byte[] inputByteArray = new byte[stringToDecrypt.Length + 1];
try
{
//key = System.Text.Encoding.UTF8.GetBytes(Left(SEncryptionKey, 8));
key = System.Text.Encoding.UTF8.GetBytes(sEncryptionKey.ToCharArray(), 0, 8);
DESCryptoServiceProvider des = new DESCryptoServiceProvider();
inputByteArray = Convert.FromBase64String(stringToDecrypt);
MemoryStream ms = new MemoryStream();
CryptoStream cs = new CryptoStream(ms, des.CreateDecryptor(key, IV), CryptoStreamMode.Write);
cs.Write(inputByteArray, 0, inputByteArray.Length);
cs.FlushFinalBlock();
System.Text.Encoding encoding = System.Text.Encoding.UTF8;
return encoding.GetString(ms.ToArray());
}
catch (Exception e)
{
return e.Message;
}
}
public string Encrypt(string stringToEncrypt, string SEncryptionKey)
{
try
{
key = System.Text.Encoding.UTF8.GetBytes(SEncryptionKey.ToCharArray(), 0, 8);
DESCryptoServiceProvider des = new DESCryptoServiceProvider();
byte[] inputByteArray = Encoding.UTF8.GetBytes(stringToEncrypt);
MemoryStream ms = new MemoryStream();
CryptoStream cs = new CryptoStream(ms, des.CreateEncryptor(key, IV), CryptoStreamMode.Write);
cs.Write(inputByteArray, 0, inputByteArray.Length);
cs.FlushFinalBlock();
return Convert.ToBase64String(ms.ToArray());
}
catch (Exception e)
{
return e.Message;
}
}
}
“
Code Ends
Take an aspx page and write the code and write the code below.
“
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Security.Cryptography;
public partial class Test : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
public string encryptQueryString(string strQueryString)
{
//ExtractAndSerialize.Encryption64 oES =
// new ExtractAndSerialize.Encryption64();
Encryption64 oES = new Encryption64();
return oES.Encrypt(strQueryString, “!#$a54?3″);
}
public string decryptQueryString(string strQueryString)
{
Encryption64 oES = new Encryption64();
return oES.Decrypt(strQueryString, “!#$a54?3″);
}
protected void lnk_btn_Click(object sender, EventArgs e)
{
string strValues = “search”;
string strURL = “http://yoursite.com?search=”
+ encryptQueryString(strValues);
Response.Redirect(strURL);
}
}
“
In aspx
Take a link button with Id=”lnk_btn”.
when you click it will encrypt an you can decrypt by using the class file.
Bye

2008-07-10
Bharath Radhekrishna's Weblog: Erase all textboxes contents after submitting data in contentplace holder using Masterpages
Hello When we have some 30 textboxes in a page where it has a master Page. If we want to erase all th data in textboxes usuallywe will write TextBox1.Text==” “; But it s time consuming so I have the easy way to do it. wait…….
“
private void getAllCtl(ControlCollection ctls)
{
foreach (Control c in ctls)
{
if (c is System.Web.UI.WebControls.TextBox)
{
TextBox txt = c as TextBox;
txt.Text = “”;
}
if (c.HasControls())
{
getAllCtl(c.Controls);
}
}
}
In the button code event please write to recognize contentplaceholder in masterpage
“
ContentPlaceHolder ContentPlaceHolder1=this.Master.FindControl(”ContentPlaceHolder1″) as ContentPlaceHolder;
getAllCtl(ContentPlaceHolder1.Controls);
“

2008-07-08
నా మదిలో ...: వేగంగా మారుతున్న మొబైలు విపణి ...
2008-07-02
సరదా: పెన్ డ్రైవ్ లేదా మెమరీ చిప్లలో వైరస్ని క్లీన్ చేయడం ఎలా? (యాంటీ వైరస్ అందుబాటులో లేనపుడు)
2008-06-30
వేద సంహిత: dc.exe Virus Removal
వేద సంహిత: Taskmagager, Run, Regedit Disabled ?????
2008-06-27
నా మదిలో ...: మీ బ్లాగరు బ్లాగుని వర్డుప్రెస్సు లోకి మార్చుకోవడం ఎలా ?
2008-06-23
వీవెనుడి టెక్కునిక్కులు: హైదరాబాదులో ఫైర్ఫాక్స్ 3 పార్టీ నివేదిక
2008-06-20
సాయిచరణ్: యాహూలో ఇప్పుడు రె౦డు కొత్త ఇమెయిల్ డోమెయిన్స్ వచ్చాయి !
2008-06-18
నా మదిలో ...: మంట నక్క ౩, ఇతరాలు ...
2008-06-17
వీవెనుడి టెక్కునిక్కులు: ఫైర్ఫాక్స్ 3 ప్రపంచరికార్డులో మీరు పాల్గొనాలంటే…
2008-06-12
వీవెనుడి టెక్కునిక్కులు: హైదరాబాదులో ఫైర్ఫాక్స్ 3 సంబరాలకు ఆహ్వానం!
2008-06-08
సాయిచరణ్: వాల్ పేపర్స్ అటోమెటిక్ గా ఛే౦జ్ అవ్వాలా ?
2008-06-01
వీవెనుడి టెక్కునిక్కులు: బిగ్ బక్ బన్నీ, చిట్టి ఆనిమేషన్ సినిమా
2008-05-29
వీవెనుడి టెక్కునిక్కులు: నేటి లింకు: Help Firefox set a World Record
2008-05-26
సాయిచరణ్: పోయిన జన్మలో మీరు ఎవరు ?
2008-05-23
వీవెనుడి టెక్కునిక్కులు: నేటి లింకు: ఎర్రబస్సు.in
2008-05-14
సాయిచరణ్: ఎ సాఫ్ట్ వేర్ లేకు౦డా ఫోల్డర్ హైడ్ చేయడ౦
2008-05-12
ఈ-కబుర్లు: How I Recovered My Root Password in Debian Etch
2008-05-09
ఈ-కబుర్లు: Defining Muralidhar
ఈ-కబుర్లు: My Personal Mission Statement
ఈ-కబుర్లు: What is Love?
సాయిచరణ్: మీ బ్లాగు ఖరీదు ఎ౦త ?
వీవెనుడి టెక్కునిక్కులు: నేటి లింకు
2008-05-08
సాయిచరణ్: ఒకటేసారి అన్ని ఎ౦టీవైరస్ లతో స్కాన్ చేయడ౦
sowmyawrites .... » TechExperiences: A multi-lingual browser for WWW without pre-loaded fonts (1995)
I must have written my last remotely technical post some months ago
However, there is one 1995 experiment about which I read only today and about which I wanted to share with others…
A multi-lingual browser for WWW without pre-loaded fonts, Akira Maeda, Takehisa Fujita, Lee Swee Choo, Tetsuo Sakaguchi, Shigeo Sugimoto, Koichi Tabata,In Proceedings of ISDL95, August 1995.
However, as I read through this very short paper today, I can’t resist myself from writing about it. The concept appears interesting for me, as it eliminates the need for pre-loaded fonts on the client system. If this becomes(or did it became?) commercial, I believe, the problems of display, font installation etc will not exist and there will be absolutely no difference in browsing English and non-English sites.
Their idea is simple. They have demonstrated a new prototype called MHTML (Multilingual HTML). Their browser converts a HTML document to MHTML document, which involves in determining the set of characters in the document, assign code to each character, extract a font glyph for each character and reproduce the font on the client side browser. They have also compared this approach with other font-less approaches like - Image mapping and Character to inline map. This approach proved to be a better performer.
Iam somehow very fascinated by this idea and would love to know more on what happened afterwards. God knows how I found this 1995 paper in 2008 and am still fantasizing about it
I am clueless on “what happened next?”. Anyone…who chanced upon this post and knows about it…please drop a comment.

2008-05-03
సాయిచరణ్: నేను సేకరి౦చిన కొన్ని హాస్య చిత్రాలు(Pics)
సాయిచరణ్: డిస్పోసబుల్ ఛాట్ రూమ్
2008-04-29
సాయిచరణ్: ఓ చిన్న ట్రిక్ (ఎవరినైన ఆటపట్టి౦చడానికి)
2008-04-28
డి.వి.ఆర్.చౌదరి కంప్యూటర్ సందేహాలు: internet explorer title bar మీద పేరు మార్చటం....?
2008-04-26
డి.వి.ఆర్.చౌదరి కంప్యూటర్ సందేహాలు: మీ Drives కి సొంత ఇమేజ్ iconగా కావాలా?
2008-04-25
నా మదిలో ...: కుబుంటు హార్డీ హెరాన్ ...
2008-04-24
డి.వి.ఆర్.చౌదరి కంప్యూటర్ సందేహాలు: free pdf printer drivers.........?
ఈ సమీక్ష రాసిన పాలడుగు శ్రీకాంత్ ఎవరో కాదు. దైవానిక బ్లాగరు…
One of the blogs I LOVE!! సుజాత గారసలు సీరియస్ విషయాలు చెప్తూనే కడుపుబ్బ నవ్వించేస్తారు..
సమీక్ష చాలా బావుంది శ్రీకాంత్ గారు! అభినందనలు..
A blog I admire! Reviewed well.




