Click here to Skip to main content
15,918,050 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRegarding Textbox Focus Pin
sandhya1414-Feb-08 0:08
sandhya1414-Feb-08 0:08 
GeneralRe: Regarding Textbox Focus Pin
Venkatesh Mookkan14-Feb-08 0:23
Venkatesh Mookkan14-Feb-08 0:23 
GeneralRe: Regarding Textbox Focus Pin
sandhya1414-Feb-08 0:28
sandhya1414-Feb-08 0:28 
GeneralRe: Regarding Textbox Focus Pin
rahul.net1114-Feb-08 0:36
rahul.net1114-Feb-08 0:36 
GeneralRe: Regarding Textbox Focus Pin
Sun Rays14-Feb-08 0:41
Sun Rays14-Feb-08 0:41 
GeneralRe: Regarding Textbox Focus Pin
Venkatesh Mookkan14-Feb-08 0:46
Venkatesh Mookkan14-Feb-08 0:46 
GeneralRe: Regarding Textbox Focus Pin
Shaik Haneef14-Feb-08 1:20
Shaik Haneef14-Feb-08 1:20 
Generalplz help... connection problem to sql server 2000 Pin
haseeb_saeed13-Feb-08 23:59
haseeb_saeed13-Feb-08 23:59 
hello... i have made windows app before and now am making my first web app in asp.net and cant figure out why my database connection won't open for the executenonquery method whereas it works fine with executereader method... i have tried debuggin it and the only error that i find is that in the connection object ... there is an exception of invalid server version... (wat is it or why is it.. i have no idea)...
the code for the execute query method is

public static int ExecuteNonQueryCommand(string sqlProcName, params IDataParameter[] procParameters)
{
SqlCommand command = null;
try
{
command = new SqlCommand();
command.CommandType = CommandType.StoredProcedure;
command.CommandText = sqlProcName;
if (procParameters != null)
for (int index = 0; index < procParameters.Length; index++)
command.Parameters.Add(procParameters[index]);

Connection.Open(); // a getter property that returns //connection made from the web.config connectionstring property
//the connection doesnt' open...some error with the server version
command.Connection = Connection;
return command.ExecuteNonQuery();
}
catch
{ return 0; }
finally {
if (command != null)
command.Dispose();
procParameters = null;
Connection.Close(); }

I have made a property that returns a connection as
return new sqlConnection(configurationmanager....)) /// if this is a bad approach .. plz lemme know why it is so and what should i do.. .
i call this method by passing the procedure name and parameters..
Plz help

haseeb

GeneralRe: plz help... connection problem to sql server 2000 Pin
Paddy Boyd14-Feb-08 0:23
Paddy Boyd14-Feb-08 0:23 
GeneralRe: plz help... connection problem to sql server 2000 Pin
haseeb_saeed14-Feb-08 3:13
haseeb_saeed14-Feb-08 3:13 
GeneralRe: plz help... connection problem to sql server 2000 Pin
Shaik Haneef14-Feb-08 1:35
Shaik Haneef14-Feb-08 1:35 
Generalset up Pin
248912813-Feb-08 23:39
248912813-Feb-08 23:39 
Generalweb charts in .net Pin
Member 387988113-Feb-08 23:05
Member 387988113-Feb-08 23:05 
QuestionMoving Listitems of a Listbox with mouse in asp.net Pin
Member 469089613-Feb-08 22:28
Member 469089613-Feb-08 22:28 
GeneralRe: Moving Listitems of a Listbox with mouse in asp.net Pin
Christian Graus13-Feb-08 22:34
protectorChristian Graus13-Feb-08 22:34 
GeneralRe: Moving Listitems of a Listbox with mouse in asp.net Pin
Member 469089613-Feb-08 23:44
Member 469089613-Feb-08 23:44 
GeneralRe: Moving Listitems of a Listbox with mouse in asp.net Pin
Sandeep Akhare14-Feb-08 0:13
Sandeep Akhare14-Feb-08 0:13 
GeneralRe: Moving Listitems of a Listbox with mouse in asp.net Pin
Member 469089614-Feb-08 0:33
Member 469089614-Feb-08 0:33 
Questionexport pdf document in asp.net Pin
prasanna54813-Feb-08 22:19
prasanna54813-Feb-08 22:19 
GeneralRe: export pdf document in asp.net Pin
Christian Graus13-Feb-08 22:39
protectorChristian Graus13-Feb-08 22:39 
GeneralRe: export pdf document in asp.net Pin
Vasudevan Deepak Kumar14-Feb-08 0:04
Vasudevan Deepak Kumar14-Feb-08 0:04 
GeneralAutomation server cannot create object ERROR Pin
Sutheesh13-Feb-08 22:19
Sutheesh13-Feb-08 22:19 
GeneralRe: Automation server cannot create object ERROR Pin
Venkatesh Mookkan13-Feb-08 23:31
Venkatesh Mookkan13-Feb-08 23:31 
GeneralRe: Automation server cannot create object ERROR Pin
Sun Rays13-Feb-08 23:46
Sun Rays13-Feb-08 23:46 
GeneralRe: Automation server cannot create object ERROR Pin
Sutheesh14-Feb-08 2:04
Sutheesh14-Feb-08 2:04 

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.