13,153 Topics
![]() | |
please help ive been looking for the solution for days. i have two date pickers (dbplite) one is for start date and one is end date. also i have a dropdownlist with the list of addresses of persons records. also a grid view to display record. i also have a … | |
hi all, i,ve installed IIS,visual web developer 2008 express edition, but when i started to create new ASP.NET Website named www.example.com ;a message has been displayed said : unable to create http://www.example.com . Bad Gateway. how to fix this. thanks | |
Hi there, in am new with Webmatrix and Visual studio 2013 and i would like to create the following : (for all user of the website) 1) a classic form contact in asp.net razor : email name subject message If is possible this message wil send an aoutomatic mail to … | |
this is my code for binding data from data base to text box protected void Page_Load(object sender, EventArgs e) { label.Text = System.DateTime.Now.ToLongDateString(); //// /// date label label.Text = System.DateTime.Now.ToLongDateString(); appSession = (String)Session["applicantEmail"]; lblusername.Text = (String)Session["applicantName"]; lblusernamepic.Text = (String)Session["applicantName"]; String str = " SELECT tblPersonalInfo.firstname, tblPersonalInfo.lastname, tblPersonalInfo.fathername, tblPersonalInfo.country, tblPersonalInfo.city, tblPersonalInfo.phoneno,tblPersonalInfo.mobno, … | |
i successfully designed and filled my Crystal report via code not via wizard. i added Crystal report via addNEWITEM i added dataset in aap_code via addNEWITEM i added datatable into dataset via addNEWITEM Via code i made report and filled dataset and table with data Run and display. Successfully done. … | |
i wanna use fileupload and write this image to access database. How can i do this with c#? Thanks. | |
MSDN recommends disposing any variable of type System.Drawing.Brush before its last reference is released. Otherwise, the resources it is using will not be freed until the garbage collector calls the Brush object's Finalize method. As we know, local variables are destroyed automatically when the control flow goes out of the … | |
Hello, I am using IIS 7 with SSO - single sign-on connections in order to connect to a web app. After a certain amount of time (12 hours) I get a timeout message - as I should. But when I try log back in I get an error message, again … ![]() | |
it's confusing, see: 1. I added a dataset in app_code folder and then added a dummy datatable (field names similar to one in database), so it is visible to Crystal report in ADO.net datasets list. 2. Dragged all field names from Datatable to Crystal report. 3. Now as i added … ![]() | |
sir,can you please tell me about the DataMember,DataSourceID,DataTextField property of checkedBoxList control ![]() | |
I have hese two classes which are not in the same folder. Coffee.aspx.cs is in folder named Pages and the other class ConnectionClass.cs is in other folder named App_data can anybody help me to correct the code i ma having the errors see the code: i am getting these errors … ![]() | |
I'm trying to disable validation for one spectacular field, but I'm not getting it to work. I made a simple login-system, and I want the users to be able to change their data, without filling out everything. I managed to preload the user variables to the textboxes, so if they … ![]() | |
hey I am new in c# and ASP.NET I created a form in which there are 4 dropdown list like on the basis of ProjectID dropdown list FileID comes into FileID dropdown.Second is on the basis of FundType dropdown list FundID comes into FundID dropdown list.All are working fine but … | |
Hi all, I am new to asp.net programming and i have to design a website which should accept values from the user and store it in the databse on a button click event. I am not able to do it In fact i have written a code for button click … | |
this my code in aspx.. [code] <asp:GridView ID="GridView1" runat="server" OnRowDataBound="GridView1_RowDataBound" OnRowEditing="GridView1_RowEditing" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" OnRowCommand="GridView1_RowCommand" > <Columns> <asp:TemplateField ShowHeader="False"> <ItemTemplate> <asp:CheckBox ID="allgc" runat="server" /> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Action" ShowHeader="False"> <ItemTemplate> <asp:LinkButton ID="gdviewlnk" runat="server" >View</asp:LinkButton> / <asp:LinkButton ID="LinkButton1" runat="server">Edit</asp:LinkButton> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> [/code] when i going to click the view linkbutton get … | |
I have a repeater in my webpage which containing Buttons as well.. <asp:Repeater ID="rptView" runat="server" OnItemDataBound="rptView_ItemDataBound"> <HeaderTemplate> <table border="0" width="90%"> <tr class="RepeaterHeader"> <th align="center">Date</th> <th align="center">Category</th> <th align="center">Description</th> <th align="center">Amount</th> <th align="center"></th> </tr> </HeaderTemplate> <ItemTemplate> <tr class="RepeaterData"> <td align="center"><%#Eval("CurrentDate") %></td> <td align="center"><%#Eval("Category") %></td> <td align="center"><%#Eval("Description") %></td> <td align="center"><%#Eval("Amount", "{0:C}")%></td> <td … | |
I've been working on an ASP.NET project. I've successfully implemented LDAP authentication for login and have tested it with multiple users with no issues. LDAP is only controlling my login credential. Everything else is stored in a SQL db. In that database I have a users table that has a … | |
hello, I add rows to the Gridview through the following code : The below code is working fine. However,i am now placing a button REMOVE besides this grid. Whenever a user selects a particular row ( no use of checkbox for selection) The user will click on the row he … | |
how to access classes or objects defined in APP_CODE folder ? i defined some classes there but how to access those ? | |
Hi all. How Can I makes login form for my vb.net project? I would like to make one that can identify the user according to their roles. Eg. Roles 1-4. Role 1 being the lowest user so this user can't use everything on the app. Role 4 as the highest … | |
Any idea to doing this? i tried many solution through google, it still can't solve my problem I want fixed(*Freezed*) header, and data only shown 5 items.. Thanks for in advanced. | |
Like i heard that string is immutable mean cannot be changed once created so i tried: String name = "Hunain"; Console.Write("String_replaced="+ name.Replace('i', 'y') + "\n"); according to someone, string.Replace('','') throws a new object and doesn't modify existing string but it did like in above example, neither i stored it in … | |
connection pooling in asp.net 8 minutes ago|LINK i searched and read many posts on google about CONNECTION POOLING, it says that it's an temporary memory to keep all then database connections and are used when requests are made to use it but i couldn't figure out its exact meaning like … | |
<system.web> <customErrors mode="On" defaultRedirect="/ErrorPages/404.aspx" redirectMode="ResponseRedirect"> <error statusCode="404" redirect="/ErrorPages/404.aspx"/> <error statusCode="401" redirect="/ErrorPages/401.aspx"/> </customErrors> </system.web> Inside my web.config i have thise configuration, but will them redirect to specifiy statusCode rather than doing in code behind. Let's said the user is not allowed to go into the Manager side, will this automatically redirect … | |
Hi guys. for several weeks i can t make my mind whether to go and learn php or should i stick with my C# knowledge and learn ASP.net. I ve started to programming in C# 2 years ago, learned sql and databases and learned html css when i was still … | |
Hi! I need some help on this. I have the checkbox name chkitems: here's the data: <asp:CheckBoxList runat="server" ID="chkitems" Font-Names="Tahoma" Font-Size="Smaller" RepeatColumns="3" RepeatDirection="Horizontal"> <asp:ListItem Value="1">Item 1</asp:ListItem> <asp:ListItem Value="2">Item 2</asp:ListItem> <asp:ListItem Value="3">Item 3</asp:ListItem> <asp:ListItem Value="4">Item 4</asp:ListItem> <asp:ListItem Value="5">Item 5</asp:ListItem> </asp:CheckBoxList> Below on this script is the button name "cmdSelectedItems". What I … | |
Hi guys, i need help with modal popup, i have already create modal pop up, but what i want is that tha modal page to show up just for 5 seconds than automatically to be removed. Heres My code... <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD … | |
public static void Confirmation(string message) { // Cleans the message to allow single quotation marks string cleanMessage = message.Replace("'", "\'"); string script = "<script type=\"text/javascript\">var confirmation=this.document.getElementById('hfConfirmation'); if(confirm('" + cleanMessage + "'))confirmation.value='Yes' else return confirmation.value='No';</script>"; // Gets the executing web page Page page = HttpContext.Current.CurrentHandler as Page; // Checks if the … | |
difference between try...catch and try....finally ? in asp.net(C#) like when i want to catch error like 1/0 then i put code in try block and put exception object in catch block like respone.write("ERROR:"+ ex.Message) but advisors told me that it isn't a good practice to put catch always, it absorbs … | |
I have 2 below tables: tblCustomers: id customerName 1 John 2 Philip 3 Steve tblOredrs: id customerId ordId payment 1 1 100 True 2 1 101 True 3 1 102 False 4 2 101 True 5 2 102 True 6 2 103 False 7 3 101 True my condition is: … |
The End.