سلام و عرض ادب
از راهنمائی شما بسیار بسیار متشکرم.زحمت کشیدید.ولی متاسفانه همچنان مشکل پابرجاست
کد اول را که کپی کردم،بعد از کلیک روی Debug صفحه مورد نظر باز میشود،یوزر و پسورد را که وارد کردم و روی دکمه کلیک کردم،بلافاصه به برنامه با خطای زیر برمیگردد:
Object reference not set to an instance of an object.
خطای اعلام شده را در خط :
string constr = WebConfigurationManager.ConnectionStrings["myconnectionstring"].ConnectionString;
نمایش میدهد
کد آپلود شده شما رو هم دانلود کردم،گریدویو اونو به جدول موجود در SQL متصل کردم،ولی بعد از ورود یوزر و پسورد،و کلیک روی دکمه Login،با خطای زیر در خط conn.open(): مواجه میشم.
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server
)
از شما شرمنده ام،ولی همچنان به کمکتان احتیاج دارم.ممنون