Web Forms :: Display A Set Of Linkbuttons(nearly 30)with Different Descriptions

Aug 5, 2010

I need to display a set of linkbuttons(nearly 30)with different descriptions.

when i click on a linkbutton an associated querystring(which is not description)is supposed to be copied to a textbox.

View 2 Replies


Similar Messages:

C# - Get Field Descriptions From A Parent Related Table In A Gridview

Aug 6, 2010

What would be the best way to set a gridView.DataSource for LINQ query with some foreign keys and get fields in the parent tables? Like this:

The table BOOK have a Author_Id, which is related to table Author

class:

public IQueryable<Book> ListAll()
{
RENDBDataContext db = new RENDBDataContext();
var result = from b in db.Books
orderby b.Id descending
select b;
}
code-behind:
grdBooks.DataSource = vBooks.ListAll();
grdBooks.DataBind();

In the ASPX page I can get to the Author name with the [asp:TemplateField], using <%Eval("Author.Name")%>

What I'm looking for is a better solution, that doesn't involve changes in the aspx page

View 1 Replies

Web Forms :: Interaction With LinkButtons Added At Runtime

Jan 9, 2010

I am working on a web application project in which i add a dynamic number of LinkButtons at runtime according to user selection, each link should redirect the user to a specific web page ,but what actually happened is that the last hyperlink is the only one responded! the following code show the declaration :

''''''''Public WithEvents ItemName As LinkButton
''Public Sub AddLinkButtons
''''''''For i = FirstIndex To StopFlag
''''''''ItemName = New LinkButton
''''''''ItemName.Text = Dt.Rows(i).Item(1)
''''''''Me.ContentTD.Controls.Add(ItemName)
''''''''Next
''End Sub
''''''''Private Sub ItemName_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ItemName.Click
''''''''SelectedItemToFind.ItemFlag = 1
''''''''SelectedItemToFind.SelectedItem = sender.Text
''''''''Response.Redirect("Default.aspx?Main=SearchResult")
''''''''End Sub

View 4 Replies

Web Forms :: Textbox To Run A Linkbuttons Click Event?

Jan 11, 2010

how to get a textbox to run a linkbutton's click event when enter is pressed on the keyboard in a web form?

View 4 Replies

Web Forms :: Dynamically Added LinkButtons Won't Fire

Feb 9, 2011

I've been struggling with this for several hours now so I thought I'd give this forum a try. The problem is that I'm adding two kind of buttons (editBtn and delBtn) which show up fine but they won't fire their respective method when clicked. I also have a third button which works just fine.

[Code]....

[Code]....

View 11 Replies

Web Forms :: Hide Linkbuttons In Master Page?

Mar 3, 2010

I am working on an app where i am having some linkbuttons in master page. I want to display them depending upon the authorization given to them once they logs in. I have initially made all of them visible false and then i am checking the authorisation in the aspx.cs class of master page. I make the link button visible depending upon the right granted to the user. But it is making all the link buttons visible. Instead it should only make two of them visible and rest should be hidden. Following is my code from MasterPage.aspx.cs:

[Code]....

This is how i use them in aspx file:

[Code]....

View 4 Replies

Web Forms :: Nested Generated LinkButtons & Hidden Divs With Arguments

Feb 26, 2010

I've googled all over for a solution but I cannot seem to find it or understand it if I have looked at. What I want to do is click a link that I generated from txt data that will unhide my div and generate a new series of links. In order to generate these links I need to pass an argument. Then I want to click a generated link (now the 2nd level) to unhide another div and generate another list of links (now a 3rd level) with an argument.

It sounds simple but once I click the 2nd level link (the 2nd generated link) I lose everything as the page reloads. I understand that when I click the 2nd level link it is posting back to the page and wiping out my variables maintaining my generated links. Below I've attached some code that simulates my problem (minus the file calls for generating links). The first link(generated and placed in a panel) reveals div with another set of links based on an argument. The third link (the second link hides the first div) is suppose reveal another div with the message "YAY". The third link does not display the second div but instead refreshes the page.

[Code]....

View 2 Replies

Forms Data Controls :: Conditionally Hide 2 LinkButtons In A Grigview?

Aug 26, 2010

I'm trying to conditionally hide 2 link buttons within a Gridview(gvPosts), ModifyButton and DeleteButton. I want the two buttons to hide in every row where the currently logged on Username is not the same as the Username in gvPosts' lbEmpID, a LinkButton control in the same row. Unfortunately the code is hiding the buttons in every row, including the one where lbEmpID.text = Profile.Username. My code is below, what am I doing wrong?

Dim lbtn As LinkButton
For Each rowItem As GridViewRow In gvPosts.Rows
lbtn = DirectCast(rowItem.Cells(0).FindControl("lbEmpID"), LinkButton)
If lbtn.Text <> Profile.UserName Then
Dim Modify As LinkButton
Dim Remove As LinkButton
For Each rowItem1 As GridViewRow In gvPosts.Rows
Modify = DirectCast(rowItem1.Cells(0).FindControl("ModifyButton"), LinkButton)
Remove = DirectCast(rowItem1.Cells(0).FindControl("RemoveButton"), LinkButton)
Modify.Visible = False
Remove.Visible = False
Next
End If
'If chk.Checked Then
'Response.Write(chk.ClientID + "<br />")
'End If
Next

View 3 Replies

Forms Data Controls :: Linkbuttons Does Not Work On Single Click?

Mar 25, 2010

I have an issue with linkbutton in asp.net gridviews or any data control.it doesn't work on single click.Is there a way to overcome this issue.

All my datacontrols are wrapped inside updatepanel with updatemode=Condtional.

View 3 Replies

Forms Data Controls :: How To Generate Columns In LinkButtons In Gridview At Runtime.

Dec 5, 2010

im showing 3 rows and 2 columns in a Gridview...I want to generate a 3rd column at runtime in a Gridview ....

only 1 LinkButton in Gridview at position row1 and column 3
only 2 LinkButton in Gridview at position row2 and column 3
only 3 LinkButton in Gridview at position row3 and column 3

View 8 Replies

Forms Data Controls :: GridView Attached To ODS In UC Won't Fire RowCommand / LinkButtons Disappear On Postback

May 11, 2010

[Code]....

I have a GridView attached to an ObjectDataSource (returning a DataTable) in a UserControl. The code is really simple. Data comes down fine when the page is first rendered. When I click on Select or Delete (inside TemplateFields), RowCommand is supposed to fire but it doesn't, the page goes straight to Page_Load. I literally have 0 other event handlers that are set on this control and everything else in the codebehind shouldn't even fire if it's a postback. Also on postback, the Select and Delete buttons disappear. It looks like the TemplateFields are still there but they're empty. The data fields (all of two columns) post back fine.

UC ASPX Code:

[Code]....

Code Behind:

[Code]....

containing UC:

[Code]....

And here is the code from the ObjectDataSource:

[Code]....

View 7 Replies

Forms Data Controls :: GridView Editing / Deleting LinkButtons Don't Work After Page Refresh

Jan 7, 2010

I have a GridView in an update panel that is bound (in code-behind) to a business layer object. The first time this page is accessed, Editing, Deleting, Updating, etc. work fine. However, if I click my browser's refresh button, the functionality of the edit, delete, etc link buttons is gone. They do nothing.

here's my code:

[Code]....

Here's the code-behind:

[Code]....

View 7 Replies

Creating Tables With Linkbuttons?

Mar 13, 2010

i want to construct a table dynamically where content of each cell will be a linkbutton.

i mean that i want to show some data in form of table where text of each cell should be linkbutton.

View 3 Replies

AJAX :: Linkbuttons In Updatepanel Not Working SOS

Jan 27, 2010

I am building a website using ASP.net ajax. there are 3 <asp:panel> controls in the page and each contains a number of dynamic linkbuttons. these panels are contained in a <asp:updatepanel> control the page_load event fills out the first panel with linkbuttons and assigns cooresponding commandName commandArgument for them, that works. then the first panel's linkbuttons triggers the command and fill out the second panel with linkbuttons, that works too. then the seond panel's linkbuttons are supposed to fill out the third panel with linkbuttons, but that doesn't work anymore, and it seems like doing the page_load event again and filling out the first panel and the second panel's linkbuttons disppear, just like the first time the page is loaded.

[code]....

View 6 Replies

AJAX :: Referencing LinkButtons In A Panel?

Mar 23, 2010

I have a control that I use to populate a cascading menu with LinkButtons. All link buttons have the same OnClick event that I want to use to load content as well as change the clicked button's color to show the user which LinkButton they have selected.

My problem is that I don't know how to access any LinkButtons other than the one that is calling the OnClick event, so any colored button remains that color when other boxes are selected.

Is there any way I can reference all LinkButtons within a Panel to clear their colors so only the selected LinkButton is colored?

View 4 Replies

Making The Next And Previous Linkbuttons Work?

Jan 4, 2011

I have an aspx page which displays the bill details for a customer. Customer_ID is unique and it uniquely identifies each bill record for

different month. Now, I have added a linkbutton "Previous" and "Next" on top of this page. I want to view th next set of records (next month records) when I click on the "Next" Linkbutton and previous record which the clink on the "previous" link button.

How can I achieve this?

View 2 Replies

LinkButtons In A Repeater Within An UpdatePanel Are Not Triggering A Postback

Sep 13, 2010

My page contains a Repeater that is loaded with data asynchronously as the data becomes available, using an UpdatePanel to manage the asynchronous requests.The page contains something a little like this:

<asp:UpdatePanel ID="DataUpdatePanel" runat="server">
<ContentTemplate>
<table>
<asp:Repeater ID="RepeaterBlock" runat="server">
<HeaderTemplate><thead><tr><th>Name</th><th>Status</th><th class="empty"></th></tr></thead></HeaderTemplate>
<ItemTemplate><tr>
[code]...

The problem being that the LinkButton does not appear to trigger a postback of any kind- there is no visible response to clicking on it and putting a break point on the event listener in the codebehind, it is never triggered.
hat the linkbuttons ceased working.

View 2 Replies

AJAX :: Linkbuttons In Repeater Cause Page Refresh?

Jan 16, 2011

In this repeater linkbuttons are generetaed with an onclick event.This onclick event sets a multiview to the corresponding view.The multiview is in an update panel as well.When a linkbutton in the repeater is clicked the corresponding view is shown, but a complete refresh of the page is done.How can this be prevented, because when I have just linkbuttons on the page (so not in a repeater) that set the multiview to the corresponding view, only the multiview is refreshed instead of the complete page

[code]...

View 4 Replies

Forms Data Controls :: Sorting A Gridview Using Linkbuttons Situated Outside The Gridview?

Jan 14, 2010

I'd like to sort a gridview using linkbuttons situated outside the gridview. For instance :

[code]....

View 3 Replies

C# - Dynamic LinkButtons Click Event - How Many Buttons To Create

Jul 7, 2010

I have asp.net page on which I have placeholder and a button. After the button is clicked I want several LinkButtons to appear on my placeholder, and I want specyfic handler to be connected to click_event of my LinkButtons. Here is the code:

protected void Button_Click(object sender, EventArgs e)
{
for(...)
{
LinkButton l = new LinkButton();
l.ID = "link" + i;
l.Command += new CommandEventHandler(link_Command);
PlaceHolder1.Controls.Add(l);
}
}
void link_Command(object sender, CommandEventArgs e)
{
PlaceHolder1.Controls.Clear();
Label l = new Label();
l.Text = e.CommandArgument.ToString();
PlaceHolder1.Controls.Add(l);
}

The LinkButtons will be visible but their event won't fire. How should I solve this? I need to generate LinkButtons inside the Button_Click event, because only then I will know how many buttons to create.

View 2 Replies

Gridview With LinkButtons To Handle Events That Update AjaxUpdatePanel?

Oct 17, 2010

I have a Gridview displaying Titles.I would like those titles to be LinkButtons that would cause event to update an AJAX UpdatePanel containing details about the Projects.I would not like the Gridview to be in the Ajax UpdatePanel and refresh on every click, rather just refresh the UpdatePanel.

View 2 Replies

ADO.NET :: Connecting Linkbuttons In A Formview Control To An Objectdatasource's Method?

Jan 6, 2011

I am developing a multi tiered web application in which I have a Formview control on the main page.

I want to use link control buttons for inserting and updating records.

What I am not sure about is how to point them at the correct methods in my data class.

I now that this will require me to drill down into the formview to access the formView

View 3 Replies

AJAX :: Runtime Added Linkbuttons Into UpdatePanel - Fullpostbacks - Instead Of Asyncpostback

Mar 27, 2011

I have controls which are added at run-time to a PlaceHolder control on the page which is inside an UpdatePanel. The first refresh of the UpdatePanel is fine but subsequent actions create copies of everything on the page. I get two sets of the run-time added controls on the same page. It's not smart enough to realize that the second set replaces the first set. Has anyone else seen this? Runtime added linkbuttons into UpdatePanel ;fullpostbacks instead of asyncpostback.All parameters of UpdatePanel are default. adding controls runtime like this:

[Code]....

View 2 Replies

C# - LinkButtons Created Dynamically In A Repeater Don't Fire ItemCommand Event

Jun 2, 2010

I've got a repeater that's used to display the output of a dynamic report that takes criteria from webcontrols on the page. Within the repeater's ItemDataBound method I'm adding controls (Linkbuttons for sorting by column values) dynamically to the header of the repeater based on values selected in a checkbox list and at this point setting the CommandArgument and CommandName properties of the linkbuttons.

The issue is that when the linkbuttons are clicked they don't fire the ItemCommand event although they are clearly being correctly created and added to the header (there is some additional code to set the cssClass, text etc. and this works as expected.) The first column header in the repeater is set in the markup and the itemcommand event fires correctly on this one only. When the other column headers are clicked the repeater rebinds as programmed, but the columns are not dynamically re-generated.

Nightmare.ascx
<asp:repeater runat="server" id="rptReport" OnItemDataBound="rptResults_ItemDataBound" OnItemCommand="rptResults_ItemCommand" EnableViewState="true">
<headertemplate>
<table>
<tr runat="Server" id="TRDynamicHeader">
<th>
<!-- This one works -->
<asp:Linkbutton runat="server" CommandName="sort" commandArgument='<%# Eval("Name")%?' />
</th>
<!-- additional header cells get added dynamically here -->
</tr>
</headertemplate>
<itemTemplate>
<td><%# Eval("Name")</td>
...
</itemTemplate>
</asp:repeater>
Nightmare.ascx.cs
protected void PageLoad(object sender, eventArgs e){
if (! isPostback){
setupGui();//just binds dropdowns etc. to datasources
}
}
protected void btnRunReport_Click(...){
List<ReportLines> lstRep = GetReportLines();
rptReport.DataSource = lstRep;
repReport.DataBind();
}
protected void rptReport_ItemDataBound (...){
if (e.Item.ItemType == ListItemType.Header)
{
foreach (ListItem li in chbxListBusFuncs.Items)
{
if (li.Selected)
{
th = new HtmlTableCell();
lb = new LinkButton();
lb.CssClass = "SortColHeader";
lb.CommandArgument = li.Text.Replace(" ", "");
lb.CommandName = "sort";
lb.Text = li.Text;
th.Controls.Add(lb);
((HtmlTableRow)e.Item.FindControl("TRDynamicHeader")).Cells.Add(th);
}
}
}
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
//Row level customisations, totals calculations etc.
}
}
<!-- this only gets called when the 'hardcoded' linkbutton in the markup is clicked.
protected void rptReport_ItemCommand(object sender, Eventargs e){
lblDebug.Text = string.Format("Well? What's Happening? -> {0}:{1}", e.CommandName, e.CommandArgument.ToString());
}
(The only thing that can call the runreport routine is a single button on the page, not shown in the code snippet above.)</textarea></p>
<input type='hidden' name='ID[3]' value='82079' />
<input type='hidden' name='URL[3]' value='http://forums.asp.net/t/1472917.aspx' />
<input type='hidden' name='CAT[3]' value='Forms Data Controls' />
<input type='hidden' name='BOARD[3]' value='microsoft' />
<input type='hidden' name='P_DATE[3]' value='Sep 21, 2009 02:16 AM' />
<input type='hidden' name='RANDOM[3]' value='uck4OZUSh' />
<input type='hidden' name='REPLIES[3]' value='6' />
<input type='hidden' name='USER[3]' value='aziz' />
<p><input class=subject type='text' size='90' name='SUBJECT[3]' value='Forms Data Controls :: ValidationGroup causes button not to fire ItemCommand event' /><select name='INDEXED[3]'><option value='1' selected>UPDATE</option><option value='2'>DELETE</option></select>Sep 21, 2009 02:16 AM - Replies: 6 CAT: Forms Data Controls<a target=_blank href="http://forums.asp.net/t/1472917.aspx">View</a></p>
<p> <textarea rows=10 cols=100 name='POST[3]' onfocus='setSelRange(this, 0, 0)'/>

I have a page with a couple of RequiredFieldValidators, each in its own ValidationGroup. One of the RequiredFieldValidator controls is inside a Datalist and the submit button triggers the relevant DataList_ItemCommand. It works just dandy until I add the ValidationGroup to the button, at which point clicking on the button no longer fires the DataList_ItemCommand event. Here is the HTML

[Code]....

Note that the ValidationGroup name is there, and it is unique. No other ValidationGroups exist with that name. As it stands, this code does NOT fire the DataList_ItemCommand event, so no update occurs. However if I remove the ValidationGroup declaration from the Button control, the event fires properly.

Richard</textarea></p>
<input type='hidden' name='ID[4]' value='140242' />
<input type='hidden' name='URL[4]' value='http://forums.asp.net/t/1621410.aspx' />
<input type='hidden' name='CAT[4]' value='Forms Data Controls' />
<input type='hidden' name='BOARD[4]' value='microsoft' />
<input type='hidden' name='P_DATE[4]' value='Nov 09, 2010 10:04 AM' />
<input type='hidden' name='RANDOM[4]' value='5a4W7DeJ4' />
<input type='hidden' name='REPLIES[4]' value='4' />
<input type='hidden' name='USER[4]' value='aziz' />
<p><input class=subject type='text' size='90' name='SUBJECT[4]' value='Forms Data Controls :: update button in repeater footer wont fire event' /><select name='INDEXED[4]'><option value='1' selected>UPDATE</option><option value='2'>DELETE</option></select>Nov 09, 2010 10:04 AM - Replies: 4 CAT: Forms Data Controls<a target=_blank href="http://forums.asp.net/t/1621410.aspx">View</a></p>
<p> <textarea rows=10 cols=100 name='POST[4]' onfocus='setSelRange(this, 0, 0)'/>

i have a repeater with a button in the footer template which i want to be able to update any of the items that are added (update quantites/totals/delete the item). however the 'UpdateOrderDetails' event never fires when the button is clicked. here is the code within the repeater...

<ItemTemplate>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <tr>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <td><asp:Literal ID="ltlProduct_Name" runat="server" /></td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <td><asp:Literal ID="ltlProductOption_Size" runat="server" /></td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <td><asp:Literal ID="ltlProductOption_Code" runat="server" /></td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <td><asp:TextBox ID="txtQuantity" runat="server" /></td>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n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panel>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </table>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FooterTemplate>
the 'updateorderdetails' event in code behind is here
Public Sub UpdateOrderDetails(ByVal s As Object, ByVal e As RepeaterCommandEventArgs)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For Each objRepeaterItem As RepeaterItem In rptOrderDetails.Items
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Select Case objRepeaterItem.ItemType
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case ListItemType.AlternatingItem, ListItemType.Item
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim chkDelete As CheckBox = objRepeaterItem.FindControl("chkDelete")
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim hidProduct_Key As HiddenField = objRepeaterItem.FindControl("hidProduct_Key")
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim txtQuantity As TextBox = objRepeaterItem.FindControl("txtQuantity")
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '&nbsp;&nbsp; check for deletion or update
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If chkDelete.Checked Then
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.Basket.RemoveProduct(hidProduct_Key.Value)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '&nbsp;&nbsp; check for update
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If IsNumeric(txtQuantity.Text) AndAlso CInt(txtQuantity.Text) >= 0 Then
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Me.Basket.Products(hidProduct_Key.Value).Quantity = txtQuantity.Text
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End Select
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '&nbsp;&nbsp; update order details
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BindOrderDetails()
&nbsp;&nbsp;&nbsp; End Sub
but this procedure is never called when the button is clicked, so wondered what i need to do to get this working
</textarea></p>
<input type='hidden' name='ID[5]' value='49574' />
<input type='hidden' name='URL[5]' value='http://forums.asp.net/t/1522852.aspx' />
<input type='hidden' name='CAT[5]' value='Web Forms' />
<input type='hidden' name='BOARD[5]' value='microsoft' />
<input type='hidden' name='P_DATE[5]' value='Feb 07, 2010 06:01 AM' />
<input type='hidden' name='RANDOM[5]' value='OoKSV9VFH' />
<input type='hidden' name='REPLIES[5]' value='3' />
<input type='hidden' name='USER[5]' value='aziz' />
<p><input class=subject type='text' size='90' name='SUBJECT[5]' value='Web Forms :: ItemCommand not get fire of datalist in IE' /><select name='INDEXED[5]'><option value='1' selected>UPDATE</option><option value='2'>DELETE</option></select>Feb 07, 2010 06:01 AM - Replies: 3 CAT: Web Forms<a target=_blank href="http://forums.asp.net/t/1522852.aspx">View</a></p>
<p> <textarea rows=10 cols=100 name='POST[5]' onfocus='setSelRange(this, 0, 0)'/>

I have imagebutton inside datalist.....the problem is that onclick event of serverside not get executed for only IE ..but its work fine for mozzila....i m not getting what wrong in this code.

&nbsp;
aspx code
&nbsp;
<asp:DataList
ID="dlProduct"
runat="server"
CellPadding="5"
CellSpacing="5"
Width="300px"
OnItemCommand="dlProduct_ItemCommand"
>
&nbsp;<ItemTemplate>
&nbsp;<p>
&nbsp;<asp:Label
ID="lblName"
Visible="false"
runat="server"
Text='<%# Bind("ModelName") %>'
CssClass="style1"
>
</asp:Label>
</p>
<p>
<strong><span
class="style1">
MRP : Rs.
<asp:Label
ID="mrp"
runat="server"
Text='<%# Bind("mrp") %>'
CssClass="styles"
>
</asp:Label>
</span>
<br
/>
</strong>
</p>
<p>
<strong>
<span
class="style1">Price : Rs.</span>
<asp:Label
ID="PriceLabel"
runat="server"
Text='<%# Bind("price") %>'
CssClass="style1">
</asp:Label> <br
/> </strong>
</p>
<asp:Label
runat="server"
ID="lblQuantity"
Text=""
Font-Bold="true"
CssClass="style1"></asp:Label>
<asp:Textbox
ID="tbQuantity"
runat="server"
Width="22px"
Text="1"
CssClass="nutext"
Visible="false"
></asp:Textbox>
<img
src="images/buynow_btn.jpg"
width="144"
height="58"
runat="server"
/>
<asp:ImageButton
runat="server"
ID="btnAddToCart"
src="images/addtocart.jpg"
width="144"
height="81"
CommandName="AddToCart"
/>
<asp:Button
runat="server"
ID="Button1"
Text="Add to Cart"
CausesValidation="false"
CommandName="AddToCart"
/>
</ItemTemplate>
</asp:DataList>
CS code
protected void dlProduct_ItemCommand(object source,
DataListCommandEventArgs e)
{
Response.Write("hello");
Response.End();
}

View 1 Replies

Configuration :: LinkButtons Not Working When Clicked - 404 - File Or Directory Not Found

Nov 9, 2010

So I have a strange problem. I have 2 LinkButtons on a form with their OnCommand event attached. Everything works fine locally when debugging but when I publish the web site with I get the following error:

404 - File or directory not found.

The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

I also tried the OnClick event but I get the same results.

This is being published to IIS 7.

The OnCommand is just doing a redirect. I can manually do the redirect by entering the url the same way it's passed to redirect and it works fine. I also tried putting some code in just to verify that the event really gets called on the server and it seems it doesn't. Although it does work fine locally. I also tried removing all the files from the server and doing a clean publish just to make sure I wasn't missing anything.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved