Hi bhavna4321, Please note that the tag <div id="header"</div> misses the closing tag. Hope it helps, Gayani
Gayani Devapriya
Posts
-
stick footer at the bottom of the page -
LINQHi Henna, As far as my understanding, LINQ to SQL only supports connecting to SQL Server databases. Name itself explains it. Hope it helps, Gayani
-
SoapException was unhandled by user codeHi, Can you please highlight the line numbers indicated in the error message or can you paste the code with the line numbers. Gayani
-
visual studio2005,SQL Data source problemHi, I think the way you specify the server is incorrect. If its locally available give the server name as (local) else select the server from the drop down list. Hope it helps Thx, Gayani
-
paging in datalist controlHi, Sad to say, but DataList control does not support paging. But fortunatly there are enough solutions to overcome this. I suggest you to use this pager control, I also used it in my project and works fine for me here is the link... http://www.codeproject.com/KB/custom-controls/ASPNETPagerControl.aspx[^] Hope it helps, Thx, Gayani
-
session values lost in release modeHi, There are two things you can try. First of all before accessing the values from the Session check if the value is null and if not only asssign it. By this way you could over come the exception been throws. Secondly for your Session expiration, just increase the session time out period and see if it works. Use this code in Web.Config Note: timeout is stated in minutes Also, just check if your session is stored in memory or some where else. In case it could be stored in some where else. So if you have the tag SessionState check the mode property. If not mentioned it will be stored in memory by default. Hope it helps. Thx, Gayani
-
deleting a row of gridview and the id of product from a listHi, For the GridViews RowDeleting event, access the ID and remove it. Here is the steps to follow. After successful deletion re-bind the list to the GridView control. 1. For the delete button, set CommandArgument as the ID. /> 2. For the RowDeleting event. protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e) { Button btnDelete = (Button)GridView1.Rows[e.RowIndex].FindControl("btnDelete"); if (btnDelete != null) { int iProductID = Int32.Parse(btnDelete.CommandArgument); if (Session["lstProduct"] != null) { List lstProducts = (List )Session["lstProduct"]; Products oProducts = lstProducts.Find(delegate(Products p) { return p.product_id == iProductID; }); if (oProducts != null) { //Give a message : record deleted successfully. lstProducts.Remove(oProducts); Session["lstProduct"] = lstProducts; GridView1.DataSource = lstProducts; GridView1.DataBind(); } } } } Hope it helps, Thx, Gayani
-
Ajax Cascading DropdownHi, Just a small suggestion, you can access the SelectedValue property of the first CascadingDropDown control in order to populate the next CascadingDropDown control. Hope it helps, Thx, Gayani
-
IIS - Server Application UnnavailableHi, First of all would like to know what the.Net version you use? Because one reason could be that if you are running multiple versions of .NET in your mechine,you may have to go to the ASP.NET tab in IIS and need to select the appropriate version of .NET. Failer to do this could result in a error as such, but Im not promising that it is the only cause... Hope it helps, Thx, Gayani
-
update database from a querystring dataHi, First set a break point where you read the data from the QueryString and see whether it retuns the parsed data. (Note: Just check if the Querystring key you use ie: "Id" and "status" has the same spelling as from where you are parsing from.) Also another hint is just parse these values manually to the Query and see whether its working.. And when adding the values to the parameter you could simply use updatecmd.Parameters.AddWithValue("@apid, theapiid); Just some additional infor... And assigned the value you retrive from ExecuteNonQuery to int variable and check if its greater than 0 before going for the next line... And others seems to be fine... Hope it helps.. Thx, Gayani
-
Ajax help is neededHi, Sice every one had given the explaination of installing and guide lines..I thought to give you a link that would basically give you a thorow idea of how to use AJAX Controls. Here is the demo for live control tool kit.In this they have list all the controls demostrating how it appears and the code you need to use.. http://www.asp.net/ajax/ajaxcontroltoolkit/samples/ Hope it helps, Thx, Gayani
-
Need help in choosing an ASP.NET projectHi, Here are some suggestions... Logistics System sujected to Shipping Line. You can implement the activities involved in a Shipping Line covering the basic work flow, might be able to get some idea by studding the logistics domain.. Online Shopping Site. You can create a shopping store for selling goods. So here you will have the e-commerce features you would see in any online shoppping site. Web Portal. A web portal for a company. This could automate the HR managemnt plus, automating some divisional activities based on the company you select. A Content Managment System. Thx, Gayani
-
Viewstate Serialization Issue [modified]Hi, First you need to Serialize the TestClass object. Here is how to do it. Serialization TestClass obj = new TestClass(); obj.name = "Dreams"; obj.fname = "Lonely"; FileStream fs = new FileStream("SerializedString.Data", FileMode.Create); BinaryFormatter bf = new BinaryFormatter(); bf.Serialize(fs, obj); fs.Close(); Then you need to deserialize it like this. Here is the code for that. Deserialization FileStream fs = new FileStream("SerializedString.Data", FileMode.Open); BinaryFormatter bf = new BinaryFormatter(); TestClass obj= (TestClass)bf.Deserialize(fs); fs.Close(); Response.Write("id=" + obj.j.ToString() + " Name=" + obj.name.ToString() + " Age=" + obj.age.ToString() + " fname="+ obj.fname +""); Hope it helped. Thx, Gayani
-
Not able to read the dynamic controlsHi, One important thing i noticed was you need to traverse through rows and then cells in tblTimeZon table. And then try to find the control in a particular cell. Here is a small example, i will be using a TextBox. .aspx code <asp:Table ID="Table1" runat="server" Height="160px" Width="176px"> <asp:TableRow runat="server" ID="ROW1"> <asp:TableCell runat="server" ID="CELL1"> aaa <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> </asp:TableCell> <asp:TableCell runat="server">bbb</asp:TableCell> <asp:TableCell runat="server">ccc</asp:TableCell> </asp:TableRow> </asp:Table> <asp:Button ID="Button1" runat="server" Text="Get Content in Text" OnClick="Button1_Click" /> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> .cs code protected void Button1_Click(object sender, EventArgs e) { foreach (TableRow tr in Table1.Rows) { foreach (TableCell tc in tr.Cells) { TextBox tb = (TextBox)tc.FindControl("TextBox1"); if(tb != null) { Label1.Text = tb.Text; } } } } Hope it helped. Thx, Gayani
-
Alignment isssue with asp:DataListHi, You havent mention how you exactly need to controls to display..so i just guessed.;) If you want to display the 2 buttons vertical ie. one after the other use : RepeatLayout="Flow" RepeatColumns="1" If you want to make them horizontal use : RepeatLayout="flow" RepeatDirection="Horizontal" Let me know if you need more help...Hope it helps Thx, Gayani
-
update panel with fileuploderHi, FileUpload control works fine with the Update Panel. Its just normal for you to lose the selected file once you refresh the page regarless of useing the Update Panel. I think some other even of your page might cause the page to refresh that results the selected file in the uploader to disappear. Hope it helps, Thx, Gayani
-
WinForms application to webHi Ben, I dont think its posible to do so, but if you are working in layered format such as data layer seperated and the business layer seperated, there is a posibility of getting them to the web solution and instead of the win forms you have to develop your own web forms. Thx, Gayani
-
web.config frustrating me1Hi Abbas, Lets try to do this once more in a simple manner. I think the problem is in setting up the site. 1). Right click on your solution and publish it to a new folder, could be any location. 2). Now go to IIS and create a virtual directry and set the LocalPath to the new folder you created. 3). In IIS in the ASP.NET tab for ASP.NET version select 2.0 (If you are working in that version) 4). In IIS go to Documents tab and add your detault page and make it to top. 5). In IIS go to directry security and go to Edit and at the bottom there is a check box "Integrated Windows Authentication" make it checked true. 6). And OK it. Now browse the site and see.. Hope it helps, Thx, Gayani
-
How to install DotNetNuke4 for ASP.NET 2.0Hi, http://dilrukshidevapriya.blogspot.com/2007/06/briefing-on-installing-dotnetnuke-4x.html[^] This is some thing I wrote some time back..I hope it will help you out. Thx, Gayani
-
where clause in LINQ