i have login page conatiend two button login and other for regsitration my login page i applyed validation textbox1 and textbox2 as i left it blank click on Registeration button it will not allow to move regsteration page bcoz all this validation.
tell me how can i group text box with login button
<tr><tdstyle="width: 100px"> First Name</td><tdstyle="width: 100px"><asp:TextBoxID="txtFirstName"runat="server"ValidationGroup="Name_Group"></asp:TextBox><asp:RequiredFieldValidatorID="RequiredFieldValidator1"runat="server"ControlToValidate="txtFirstName"ErrorMessage="Enter First Name"ValidationGroup="Name_Group"Width="149px"></asp:RequiredFieldValidator></td></tr><tr><tdstyle="width: 100px">Last Name</td><tdstyle="width: 100px"><asp:TextBoxID="txtLastName"runat="server"ValidationGroup="Name_group"></asp:TextBox><asp:RequiredFieldValidatorID="RequiredFieldValidator2"runat="server"ControlToValidate="txtLastName"ErrorMessage="Enter Last Name"ValidationGroup="Name_Group"Width="152px"></asp:RequiredFieldValidator></td></tr><tr><tdstyle="width: 100px"></td><tdstyle="width: 100px"><asp:ButtonID="btnRegister"runat="server"Text="Register"ValidationGroup="Register_Group"/></td></tr>
ValidationGroup="Register_Group" takes care of your scenario.
When I am debugging a C# 2010 web form application that is running against iis7 from my visual studio.net 2010 professional ide, I get messages like the following:
this Cannot obtain value of local or argument '<this>' as it is not available at this instruction pointer, possibly because it has been optimized away. Damport.DImportDataContext fileOrServerOrConnection Cannot obtain value of local or argument 'fileOrServerOrConnection' as it is not available at this instruction pointer, possibly because it has been optimized away. string mapping Cannot obtain value of local or argument 'mapping' as it is not available at this instruction pointer, possibly because it has been optimized away. System.Data.Linq.Mapping.MappingSource
This kind of error message occurs in different sections of the code. Some sections I do not have this problem.
Basically when this kind of error message occurs, I can not see the value in different variables. Thus can you tell me what I can do so that I can see the value of the variables when this error occurs?
I have a C# 2010 web form application that uses linq to sql connections. I am having problems with the visual studio.net 2010 ide opening up very slowly.
The problem looks like I need to change part of the name for a dbml file. Here are the names I am working with;
2. testapp.dbml.layout, and
I know the problem is the name called testapp1.designer.cs.
I do not know how to change the name of this element. The visual studio.net ide will not let me change
the name from testapp1.designer.cs to testapp.designer.cs.
Thus can you tell me how to change the name?
If you think something else is causing the problem, can you let me know what it is and how to solve the problem?
Strange, there must be some other naming system in web applications; I have never seen this before. Maybe you should create a new project and see if it follows the same pattern. I also forget why you need to change this name, perhaps you could clarify what the problem is.
I am having a problem with the default behavior of linq to sql when I added a new table to the app.dbml file to an existing C# 2010 web form app. . The application changed the connection string from appConnectionString (Settings) to OtherConnectionString (Settings).
I am trying to get the app.dbml file file to allow me to change it back to appConnectionString (Settings). However the designer is not allowing me to do that unless i create a new connection string.
Basically I am opening the app.dbml file so I can see the designer. From here I click on properties and I see the connection string settings.
Thus can you tell me how I can get access to change the setting back to appConnectionString (Settings)?
Whatever you have shared is insufficient to comment. There is some unexpected behavior and you ask us why so without any further reference or clue.
Have a look at the sample implementation of HTML Report engine here and see if you find any discrepancy: The HTML Report Engine[^]
Sorry Let me clearly ask the question again. I am binding the data from stored procedure. I must not touch the SP now. I just need to write a code in rowbound function for merging. I find only the below code in all blogs. It is merging rows of all columns in grid, i need it for only 1 column.