Click here to Skip to main content
15,895,370 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Url rewrite Pin
SeMartens27-Aug-09 2:39
SeMartens27-Aug-09 2:39 
GeneralRe: Url rewrite Pin
Ramkumar_S27-Aug-09 3:04
Ramkumar_S27-Aug-09 3:04 
GeneralRe: Url rewrite Pin
SeMartens27-Aug-09 3:13
SeMartens27-Aug-09 3:13 
QuestionDatalist itemtemplate : hide text box through javascript Pin
Hemant Thaker27-Aug-09 0:45
Hemant Thaker27-Aug-09 0:45 
AnswerRe: Datalist itemtemplate : hide text box through javascript Pin
Arun Jacob27-Aug-09 1:03
Arun Jacob27-Aug-09 1:03 
GeneralRe: Datalist itemtemplate : hide text box through javascript Pin
Expert-Net-Developer27-Aug-09 2:16
Expert-Net-Developer27-Aug-09 2:16 
GeneralRe: Datalist itemtemplate : hide text box through javascript Pin
Hemant Thaker27-Aug-09 2:22
Hemant Thaker27-Aug-09 2:22 
Questionpopulate form Pin
mylogics27-Aug-09 0:21
professionalmylogics27-Aug-09 0:21 
public void populatepage()
    {
        string s = Page.User.Identity.Name;
        string str = "Select * From Company Where(Owner='s')";
        SqlCommand cmd = new SqlCommand(str, conn);
        SqlDataReader dr = null;
        conn.Open();
        dr = cmd.ExecuteReader();
        while (dr.Read())
        {
            txtcompname.Text = dr["CompanyName"].ToString();
            txtcompaddress.Text = dr["CompanyAddress"].ToString();
            txtmail.Text = dr["Email"].ToString();
            txtphoneno.Text = dr["PhoneNo"].ToString();
            txtpincode.Text = dr["PinCode"].ToString();
            //txtcompid.Text=dr["CompanyId"].ToString();
            Button1.Visible = false;
            Label1.Visible = true;
            Label1.Text = "You have already created your company";
            txtcompaddress.ReadOnly = true;
            txtcompid.ReadOnly = true;
            txtcompname.ReadOnly = true;
            txtmail.ReadOnly = true;
            txtphoneno.ReadOnly = true;
            txtpincode.ReadOnly = true;

        }
        conn.Close();
    }

i have written this code to poulate a form but it doesnt works.
all textbox are still empty.there is one row in database but it does not go in while loop....plz guide..
AnswerRe: populate form Pin
Coding C#27-Aug-09 0:47
Coding C#27-Aug-09 0:47 
GeneralRe: populate form Pin
mylogics27-Aug-09 0:55
professionalmylogics27-Aug-09 0:55 
GeneralRe: populate form Pin
nagendrathecoder27-Aug-09 1:12
nagendrathecoder27-Aug-09 1:12 
QuestionGauge Control (Speedometer) chart in asp.net [modified] Pin
rahul.net1127-Aug-09 0:07
rahul.net1127-Aug-09 0:07 
AnswerRe: Gauge Control (Speedometer) chart in asp.net Pin
japss3-Mar-10 10:16
japss3-Mar-10 10:16 
Questiondatasource for girdview Pin
haleemasher26-Aug-09 23:27
haleemasher26-Aug-09 23:27 
AnswerRe: datasource for girdview Pin
Vimalsoft(Pty) Ltd26-Aug-09 23:40
professionalVimalsoft(Pty) Ltd26-Aug-09 23:40 
Questionfocus inside a bitmap Pin
michael@cohen26-Aug-09 23:07
michael@cohen26-Aug-09 23:07 
AnswerRe: focus inside a bitmap Pin
Robert_Pan27-Aug-09 15:03
Robert_Pan27-Aug-09 15:03 
QuestionData Access application Block with support to asp.net 3.5 Pin
vaishali.terse26-Aug-09 22:51
vaishali.terse26-Aug-09 22:51 
AnswerRe: Data Access application Block with support to asp.net 3.5 Pin
Expert-Net-Developer27-Aug-09 2:09
Expert-Net-Developer27-Aug-09 2:09 
GeneralRe: Data Access application Block with support to asp.net 3.5 Pin
vaishali.terse28-Aug-09 19:17
vaishali.terse28-Aug-09 19:17 
GeneralRe: Data Access application Block with support to asp.net 3.5 Pin
vaishali.terse28-Aug-09 19:38
vaishali.terse28-Aug-09 19:38 
AnswerRe: Data Access application Block with support to asp.net 3.5 Pin
Anish Gopi27-Aug-09 23:06
sitebuilderAnish Gopi27-Aug-09 23:06 
QuestionProblem with Panel Pin
nagendrathecoder26-Aug-09 22:39
nagendrathecoder26-Aug-09 22:39 
AnswerRe: Problem with Panel Pin
Arun Jacob26-Aug-09 22:46
Arun Jacob26-Aug-09 22:46 
GeneralRe: Problem with Panel Pin
nagendrathecoder26-Aug-09 22:55
nagendrathecoder26-Aug-09 22:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.