Please help i want to add update and delte data from the specified table.I m using Gridview and i want to to add data in grid when add button is clicked and also edit it on edit button. It same as we do in windows app (i.e., is add data in specify cells and click on save button to save the data in table.)Please help its urgent?
I need help, i want to list a content from specific folder from FTP, a can make the connection to FTP, but i don't know how can list the files contended in a specific Folder from FTP in one ListBox.
Thank's for you time, i'm new ( beginner) in .NET
Thank's again !
This is my code in C#
public partial class _Default : System.Web.UI.Page
actualy i want to create dynamic menu accroding to permission of user.
it should get generate dynamically.....
for that i used database...there are three tables related to menus
1. tblModule -which contains module code and module description i.e. masters,search,rate entry
2. tblMenu- which contains menucode,menu desc.(bus,car,flight,train),modulecode.
3. tblSubMenu-which contains submenucode,submenuname(add new bus,del bus,modify bus,search bus,add new rate entry
for bus ...etc),submenulinks(means path of aspx file i.e. Masters/bus/newBusEntery.aspx),menucode
now i want to dynamically create menus according to permissions like bus|car|flight...
after clicking on bus it should display the submenu in dropdown manner like this,
-add new bus
and after selecting add new bus it should display the 'newBusEntery.aspx' page which is in Masters/bus folder
whose path is stored in tblSubMenu table..
please, give code samples i need it urgently and i am new in asp.net,so help me friends....
I am stuck in implementing ModalPopupExtender in <asp:CommandField in grid view.
Although below code is working fine in <asp:template field in grid view. <asp:TemplateField HeaderText="Delete" HeaderStyle-CssClass="tableheading" HeaderStyle-Width="70px">
<asp:ImageButton ID="imgDelete" runat="server" OnClientClick="showConfirm(this); return false;"
ImageUrl="~/Images/delete.png" OnClick="imgBtnDelete_Click" /></center>
following is my code which I am trying to implement in <asp:CommandFiel in grid view.
if (e.Row.RowState != DataControlRowState.Edit) // check for RowState
if (e.Row.RowType == DataControlRowType.DataRow) //check for RowType
string id = e.Row.Cells.Text; // Get the id to be deleted
LinkButton lb = (LinkButton)e.Row.Cells.Controls; //cast the ShowDeleteButton link to linkbutton
if (lb != null && lb.Text == "Delete")
// keeps track of the delete button for the row
// that is going to be removed
// keep track of the popup Confiramtiondiv
this._source = source;
this._popup = $find('mdlPopup');
// find the confirm ModalPopup and show it
// find the confirm ModalPopup and hide it
// use the cached button as the postback source
// find the confirm ModalPopup and hide it
// clear the event source
this._source = null;
this._popup = null;
} This code opens modal popup but its does not goes to RowDeleting Event of gridview
. When I changed this code
lb.Attributes.Add("onclick", "showConfirm(this); return false;");
it open the modal popup but then directly goes to to grid view RowDeleting Event of gridview with out asking confirmation from the users. I again told this code is working fine in <asp:templatefield.
i have useing asp.net 2.0 and ajax extension.
i have pass 3 value to popup window...if update some values in child(popup) window. its automatically refresh particular (update panel or) gridview in parent page.
i have code for refresh parent window. but i dont have code for refresh particular window.
"Success is When Ur Signature Becomes An Autograph"
Well, it doesn't seems to be related to Asp.net.
I think C# forum will be more suitable for this question.
Anyways, streamReader may not work for this.
Read your word file text using Microsoft Word Object library,
and get the text in the string. After that you can easily find
"\r\n" characters in your text.
According to me to consume webservice in you application you need to add webreferace of webservice in you application
than to call web service you need to create objct of that and than you can call webservice.
Check on following link which give you idea about how to consume website.
<a href="http://it.toolbox.com/wiki/index.php/Calling_a_web_service_from_Asp.net">http://it.toolbox.com/wiki/index.php/Calling_a_web_service_from_Asp.net</a>[<a href="http://it.toolbox.com/wiki/index.php/Calling_a_web_service_from_Asp.net" target="_blank" title="New Window">^</a>]