Object reference not set.
Sushant Duggal.
Object reference not set.
Sushant Duggal.
HI Friends, I am trying to match the value from database with checkbox list items and if matched I want to check the checkbox: if(chklstGroups.Items[i].ToString() == objGroups.Title) { chklstGroups.SetItemChecked(i,true); // Method 1 -- Generates Error chklstGroups.SelectedValue = i; // Method 2 -- No Error but no result. chklstGroups.SetSelected(i,true); // Method 3 -- No Error but no result. break; } Please help me if you know the solution. Regards,
Sushant Duggal.
Thanks for the reply friends. Regards,
Sushant Duggal.
Hi Pete, Thanks for your post. Can you tell me after starting the osql process, what I need to do. Regards,
Sushant Duggal.
Hi friends, I want to run sql server 2000 script (abc.sql) file from my C# application. Can you guide me?? Regards,
Sushant Duggal.
Hi Create a windows control for that form. Regards,
Sushant Duggal.
I was talking about the distinct keyword. Perhaps, thanks for the query. Regards,
Sushant Duggal.
Thanks for your effort Sylvester Regards,
Sushant Duggal.
No data source is not on my machine. I am working in a network. It was working fine 1 month ago. From last month I was working on a desktopn application. But now I opened my previous project (web project) ans I discovered the error.
Sushant Duggal.
**string strConnect = @"server = (local)\SQLEXPRESS; integrated security = sspi; database = C:\SQL\NORTHWND.MDF"; string strQuery1 = @"SELECT * FROM employees"; string strQuery2 = @"SELECT * FROM orders"; string strQuery = strQuery1 + strQuery2; SqlConnection conn = new SqlConnection(strConnect); SqlDataAdapter da = new SqlDataAdapter(strQuery, conn); **When you add the strings : strQuery = strQuery1 + strQuery2; here the strQuery becomes: "SELECT * FROM employeesSELECT * FROM orders" and you can see this is an invalid query , so it results in error. Regards,
Sushant Duggal.****
Hi, I am using SQL authentication. I am using the same connection string for two projects. One is desktop application and other is web application. Desktop application is working fine, database connectivity is fine whereas I am unable to connect in web application. Still I am writing the connection string for ur reference. user id=sa;password=XXX;data source=XXX;initial catalog=XXX Regards,
Sushant Duggal.
Hi I am using the same connection string for two projects. One is desktop application and other is web application. Desktop application is working fine, database connectivity is fine whereas I am unable to connect in web application. Still I am writing the connection string for ur reference. user id=sa;password=XXX;data source=XXX;initial catalog=XXX
Sushant Duggal.
Distinct keyword is associated with one row, not with one column. So you can't get distinct rows on the base of two columns.
Sushant Duggal.
Do you want to read a RSS from any website???? Websites provide RSS feed URLs. You can read the predefined tags and parse the XML data to make it useable for your application Regards,
Sushant Duggal.
HI, You can try indexing your tables.
Sushant Duggal.
Hi friends, I am getting a strange error. I am working on .NET framework 1.1. When I work on a desktop application(C#.NET) and try to connect to SQL Server 2000 through my application, everything works fine and the connection is successfully established. But when I use the same database in web project(ASP.NET/C#), I am unable to connect to the database. I get an error: "SQL Server does not exists or access denied". I have carefully checked the connection string and everything in the code if perfect. Please help me out. Regards,
Sushant Duggal.
Hi friends, Does deploying more than one SMTP Servers with more internet lines i.e. plugging more than one LAN cards on one machine increase the outgoing mailing speed ???
Sushant Duggal.
Hi friends, Does deploying more than one SMTP Servers with more internet lines i.e. plugging more than one LAN cards on one machine increase the outgoing mailing speed ???
Sushant Duggal.
Hi friends, Does deploying more than one SMTP Servers with more internet lines i.e. plugging more than one LAN cards on one machine increase the outgoing mailing speed Please post ur comments.
Sushant Duggal.
Hi Kiran, I did similar to what you said... but i cant add
again in the web.config which i recently added .. it generates error Thanks for ur further help, Sushant Duggal.