- Strength to Increase Rep
- +6
- Strength to Decrease Rep
- -1
- Upvotes Received
- 22
- Posts with Upvotes
- 21
- Upvoting Members
- 18
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
- Interests
- Swimming, walks, coding, learning new things
- PC Specs
- Windows 7
Re: might need to see more of the code than just that one line. That doesn't really tell anyone what is going on. | |
Re: Can you provide the code for the GridView, where you're databinding it, and the code where you're trying to get the radio button values? | |
Re: you tell it to cancel from the edit event by calling e.Cancel = true. This allows you to cancel edit mode when the edit was successful or leave it in edit mode if the edit failed. protected void gvTest_Edit(Object sender, GridViewEditEventArgs e) { gvTest.EditIndex = e.NewEditIndex; Response.Write("Editing..."); if (successful) { … | |
This snippet will allow you to easily work with session variables in your applications. This example is using a string type but it works the same for any data type, you would just need to change the default return value from string.Empty to something more appropriate. | |
Re: what does myBAL.GetRecord(_myRecord) return? It sounds like a single object, in which case it would not work because the GridView expects a list of items. It needs to return an IEnumerable, List, or something along those lines. | |
Re: are you using the SelectedValue property or the SelectedItem.Text property? | |
Re: Set the autogeneratecolumns property to false | |
Re: this looks like everything is in one page? Where is your code for the second page? How are you trying to load the ListBox on the other page? | |
Re: What is the exact process that you are having problems with? Are you getting some errors that you don't understand? You say you're having trouble which suggests you've made some attempts to get this working on your own, where's your code? | |
Re: what is "latest asp.net projects with abstract"? I really don't think anyone is going to send you every project they've worked on in the last year. If you're asking for something else then you need to make your question a lot more clear. | |
Re: Since you're wanting to run this from a web server your best choices would be either an asp.net webforms application or an asp.net mvc application. Either one should be able to do what you described. | |
Re: where's your code? | |
Re: If I understand what you're asking correctly then this is how I' would probably go about implementing it. I'd start it with a form for a single row and have a button that the user can click to add additional rows. Use a PlaceHolder control and add the new controls … | |
Re: Shouldn't the controls in the UpdatePanel be inside of a <ContentTemplate> tag? | |
Re: If you want to create a chat application in ASP.NET you should really look into Signalr. It's an async library built to specifically handles scenario's like this. Here's an example of a site using Signalr: [JabbR](http://jabbr.net/) | |
Re: that kind of depends on what you're using as a datasource for your gridview. If you're using a datasource control such as a SqlDatasource or LinqDatasource it can usually be set to handle the insert operation. If you're handling all of the code on the back end then just do … | |
| Re: [The Music Store](http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-1) is a pretty decent introduction to MVC |
Re: you can always initialize them to 0 just so they have a value and the compiler doesn't throw a fit about unused variables | |
Re: It's almost always a good idea to maintain a separation of concerns. It generally makes the troubleshooting process easier. If you need to change your data access you should be able to update your data access layer and not make changes to the rest of your application. The same he's … | |
Re: Let me try to get some clarification. You're wanting to access the value in a control on one page, let's call it pageA.aspx, from a completely different page, pageB.aspx? I think the better option would be to pass the value that you need from pageA to pageB either using a … | |
Re: knowing the error you're getting would help a lot. As a side note, you don't need to use .ToString() on the Text property of a textbox control, it's already a string. | |
Re: you can do while (!Name.Equals("himanshu", StringComparison.OrdinalIgnoreCase)) { // do something } That will compare your string variable to a string and ignore the case of the strings. Here's a link to Microsoft's "[Best Practices for Using Strings](http://msdn.microsoft.com/en-us/library/dd465121.aspx)" | |
Re: You can ask questions. Please provide the code you have a question about along with any exceptions you are getting, or the results you are getting compared to what you think should be happening. | |
Re: from your description I can't think of any specific one control that does what you're wanting. However you should be able to create something at least close to what you want using html and javascript | |
Re: Is there a question in there that I'm missing? | |
Re: What kind of template are you talking about? Is this for some sort of content management system or something else? | |
Re: Try adding CommandName="Insert" to the link button in the item template | |
Re: The query string is what gets passed at the end of the url. If the page url is "http://www.mywebsite.com/index.aspx?id=123" then there is a query string with a key of "id" and a value of "123". It's useful for telling a page to load specific information. It's scope is just for … | |
Re: First, as @JorgM said, you really need to look into parameterized queries because right now your site would be extremely vulnerable to hackers. Second, you should avoid using variable names that are C# keywords or resemble them. "for" is a keyword and "Type" is, well, a type. You could use … |