You you need read about Generic handlers. When you implement a generic handlers that means you're telling the ASP.NET engine to act in a certain way and do a certain thing whenever your application comes across a request of a generic type (image, querystring...). That is one way that I know of to automate the reading and inserting the querystring into the ur database.

Hope this helps mate!

P.S. should you need the book (Pro ASP.NET 3.5 in C# 3.0) mail me up at [email]lazarevsky@hotmail.com[/email] and i'll send it to you in PDF.

I am building a website whereby people, before checking out of the shopping cart (and transferring to the payment iframe) can select which items from the shopping cart list to delete. The results from the shopping card are listed in a Repeater control. There is a Button in the Repeater which deletes a record from the database (used LINQ to SQL to do that.)

THe problem is that the ItemCommand event doesn't fire when i click the button. I tried 'response.write(test)' and it still would not work. It is as if the repeater cannot interact with the commands. It does render the results tho.

I would really appreciate if you could help me as I'm approaching a deadline and I've exhausted all the resources on the internet before turning to you guys!

Here's the code:

[code]
<asp:Repeater ID="RepeaterKoshnichka" runat="server" OnItemCommand="RepeaterKoshnichka_ItemCommand"
DataSourceID="LinqDataSource1">
<ItemTemplate>
<tr>
<td background="images/message-bar.gif">
<div class="message_head" style="float:left"><cite>Производ: <asp:Label ID="lblProizvod" CssClass="red_tx" Text='<%# Eval("Proizvod") %>' runat="server"></asp:Label> / Тип на Претплата: <asp:Label ID="lblPretplata" runat="server" Text='<%# Eval("Tip") %>' CssClass="red_tx"></asp:Label></cite></div>
<div class="message_head" style="float:right"><cite>Цена: <asp:Label ID="lblCena" CssClass="red_tx" Text='<%# Eval("Cena") %>' runat="server"></asp:Label> 
<asp:Button ID="Button2" CssClass="main_tx" CommandName="Delete" CommandArgument='<%# Eval("NDetID") %>' runat="server"
Text="Отстрани" /></cite>
</div>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>

protected void RepeaterKoshnichka_ItemCommand(object source, RepeaterCommandEventArgs e)
{
if (e.CommandName == "Delete")
{
if (Request.Form[e.CommandArgument.ToString()] != null)
{
if (Page.User.Identity.IsAuthenticated)
{
var nar = new DataClasses1DataContext();
Guid detnar = new Guid(e.CommandArgument.ToString());
var query = from c in nar.Naracka_Dets
where c.NDetID == detnar
select c;

            foreach (var c in query)
            {
                nar.Naracka_Dets.DeleteOnSubmit(c);
            }

            nar.SubmitChanges();
            lblSuma.Text = ((Button)e.CommandSource).ToString();
        }
    }
}

} ...

Hello all.

I need to create a program which will include the following controls -> Calendar, Button(submit) and a GridView.

I have already created text files containing data for August 20th and August 10th. Whenever a user selects either one of these dates and clicks on the Button I want my app to show the data in gridview.

I know how to do this with only 1 .txt document and the assignment I did, didn't include a calendar.

Please help!

Thanks in advance!

oh and one more thing. C# is the preferred language!

Thanks again!

"Use Web Application project. Manually create textual file, filled with words and sentences separated with
“Space” or “New Line”. Application should be able to read all words from the text file, which must be
uploaded to the server side. Read the file content, sort identified words, and show the data alphabetically
grouped by first letter. Use GridView in GridView (nested Grids) to show up the data!"

A prompt response would be highly appreciated!!

Thanks in advance!

P.S. DaniWeb is arguably the best C# forum around and you guys have always helped me with code. Pls, don't let me down this time!

[QUOTE=Ryshad;1300755]Unless there is something specific in either the development environment or the language version that you want, i would suggest you stick with what you are comfortable with.
I only moved to 2008 because a lot of the posters here use it and i was tired of not being able to open their projects when they needed help :p[/QUOTE]

Thanks for the prompt reply! cheers

The title is pretty much self-explanatory. What I want to know is will I be able to program in VS 2010 and the .NET 4.0 platform using C# 3.0

Thanks in advance!!

The title is pretty much self-explanatory. What I want to know is will I be able to program in VS 2010 and the .NET 4.0 platform using C# 3.0

Thanks in advance!!

Hello to all!

I'm really new to C# and I've started enjoying the beautiful C# programming language couple of months ago. In fact I've already bought MCTS 70-562 and 70-505 and I've been preparing myself for the demanding Microsoft tests.

However, as we all know MS launched the new platform along with the new version of C# so what i really want to ask is, is it really necessary for me to switch to C# 4.0 immediately since it's the newest version or can I just proceed with my plan and take the exams and then after I've received my certificate start learning .NET 4.0.

Please do reply soon, as I'm really bummed about all this.

Thanks in advance!

Hello to all!

I'm really new to C# and I've started enjoying the beautiful C# programming language couple of months ago. In fact I've already bought MCTS 70-562 and 70-505 and I've been preparing myself for the demanding Microsoft tests.

However, as we all know MS launched the new platform along with the new version of C# so what i really want to ask is, is it really necessary for me to switch to C# 4.0 immediately since it's the newest version or can I just proceed with my plan and take the exams and then after I've received my certificate start learning .NET 4.0.

Please do reply soon, as I'm really bummed about all this.

Thanks in advance!