Click here to Skip to main content
15,912,756 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: problem in image display.... Pin
araja_pandian27-Dec-06 19:58
araja_pandian27-Dec-06 19:58 
GeneralRe: problem in image display.... Pin
Venkatesh Mookkan27-Dec-06 20:47
Venkatesh Mookkan27-Dec-06 20:47 
AnswerRe: problem in image display.... Pin
Venkatesh Mookkan27-Dec-06 19:26
Venkatesh Mookkan27-Dec-06 19:26 
QuestionProblem with Autopostback Pin
mohd imran abdul aziz27-Dec-06 16:41
mohd imran abdul aziz27-Dec-06 16:41 
AnswerRe: Problem with Autopostback Pin
Arindam Tewary27-Dec-06 18:25
professionalArindam Tewary27-Dec-06 18:25 
GeneralRe: Problem with Autopostback Pin
mohd imran abdul aziz27-Dec-06 18:30
mohd imran abdul aziz27-Dec-06 18:30 
GeneralRe: Problem with Autopostback Pin
Arindam Tewary27-Dec-06 18:32
professionalArindam Tewary27-Dec-06 18:32 
GeneralRe: Problem with Autopostback Pin
mohd imran abdul aziz27-Dec-06 18:44
mohd imran abdul aziz27-Dec-06 18:44 
Thanks for quick reply

Firh i am using Combo Box Control(Autopostback true). I wrote the following code which work fine(this code is to select service code and fetch from database corresponding max recordno and assign 1+ max record no to textbox1 )

protected void DropDownList1_SelectedIndexChanged1(object sender, EventArgs e)
{
setting = ConfigurationManager.ConnectionStrings["Databaseconnection"];
if (setting != null)
{
SqlConnection conn = new SqlConnection(setting.ConnectionString);
query = "select max(serialNO) from inquirydtl where serviceid = '" + DropDownList1.SelectedItem + "'";
SqlCommand cmd = new SqlCommand(query, conn);
conn.Open();
//TextBox1.Text = cmd.ExecuteScalar() + 1;
int i;
//SqlDataReader rdr = cmd.ExecuteReader();
if (cmd.ExecuteScalar().ToString().Equals(""))
{
TextBox1.Text = "000001";
}
else
{
TextBox1.Text = cmd.ExecuteScalar().ToString();
}
TextBox1.Focus();
}
}



Seond i am using Textbox(Autopostback) true .where i want to concatenate it with textbox1.text to generates inquiryid . check for its existnace but it does not work. In debug mode. flow does not go through it.even then i made corresponding TextBox1.AutoPostBack = true; in page load event what is problem. please help

regards
imran khan

GeneralRe: Problem with Autopostback Pin
Arindam Tewary27-Dec-06 19:25
professionalArindam Tewary27-Dec-06 19:25 
GeneralRe: Problem with Autopostback Pin
mohd imran abdul aziz27-Dec-06 19:40
mohd imran abdul aziz27-Dec-06 19:40 
GeneralRe: Problem with Autopostback Pin
Arindam Tewary27-Dec-06 19:57
professionalArindam Tewary27-Dec-06 19:57 
GeneralRe: Problem with Autopostback Pin
mohd imran abdul aziz27-Dec-06 20:37
mohd imran abdul aziz27-Dec-06 20:37 
AnswerRe: Problem with Autopostback Pin
siddu78628-Dec-06 0:15
siddu78628-Dec-06 0:15 
AnswerRe: Problem with Autopostback Pin
Vikram kshatriya28-Dec-06 18:37
Vikram kshatriya28-Dec-06 18:37 
QuestionRDL and AJAX... Pin
raphadesa27-Dec-06 8:57
raphadesa27-Dec-06 8:57 
QuestionModules in ASP.NET pages Pin
Quecumber25627-Dec-06 5:20
Quecumber25627-Dec-06 5:20 
AnswerRe: Modules in ASP.NET pages Pin
Venkatesh Mookkan27-Dec-06 15:43
Venkatesh Mookkan27-Dec-06 15:43 
AnswerRe: Modules in ASP.NET pages Pin
ednrgc28-Dec-06 8:54
ednrgc28-Dec-06 8:54 
AnswerRe: Modules in ASP.NET pages Pin
Vikram kshatriya28-Dec-06 18:44
Vikram kshatriya28-Dec-06 18:44 
QuestionAlready open Error Pin
Sarguna Reddiar27-Dec-06 2:16
Sarguna Reddiar27-Dec-06 2:16 
AnswerRe: Already open Error Pin
Arindam Tewary27-Dec-06 4:01
professionalArindam Tewary27-Dec-06 4:01 
GeneralRe: Already open Error Pin
Sarguna Reddiar27-Dec-06 18:40
Sarguna Reddiar27-Dec-06 18:40 
AnswerRe: Already open Error Pin
Venkatesh Mookkan27-Dec-06 15:38
Venkatesh Mookkan27-Dec-06 15:38 
GeneralRe: Already open Error Pin
Sarguna Reddiar27-Dec-06 18:41
Sarguna Reddiar27-Dec-06 18:41 
GeneralRe: Already open Error Pin
Venkatesh Mookkan27-Dec-06 19:23
Venkatesh Mookkan27-Dec-06 19:23 

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.