i am maintaining a project a have a form addrecord.aspx use FormView control having different dropdownlist with different datasource. formview control use1 sqldatasource1 to bind using visual tool.if the database table have a single or more record then formviw appear in addnew and edit mode.if there is not record in database table the formview not appear. give a msg no record found. i want a interface to insert the first record if the database table has is empty. all the code used in configuration mode(html) so i am not getting when i check
IS sqldatasource is null.
if (sqldatasource ==null)
i am not getting the event.
i got some idea from codeproject but i am not getting exact what i should do.
so have explain my problem.
please send me the suggestion with code.
Thanks in advance .
I have a button on an aspx file called page A. so when i click the button, page B will pop up and need to send a command to printer to print the page B, sp can somebody share the coding for me how i code the printer function ? Thanks..
so i load a page which requires a Guid on the querystring (but i chop some of the guid off) then click the button whose handler is above, and it goes to the 500.aspx page but Server.GetLastError() is always null.
note: it is suppose to go to 500.aspx on load but i disabled that to do some testing.
In this case, you need to manage to redirect to the error on your own by using the Application_Error in the Global file with the Server.Transfer method. You can see the sample code from the link:
Last Visit: 31-Dec-99 18:00 Last Update: 26-Sep-23 5:09