13,153 Topics

Member Avatar for
Member Avatar for newbie26

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 …

Member Avatar for dimpysanjay
0
216
Member Avatar for tooota

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

Member Avatar for tooota
0
233
Member Avatar for grafic.web

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 …

Member Avatar for grafic.web
0
574
Member Avatar for muhammad.waleed.9699

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, …

Member Avatar for johni700
0
255
Member Avatar for HunainHafeez

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. …

Member Avatar for johni700
0
163
Member Avatar for xaxproy

i wanna use fileupload and write this image to access database. How can i do this with c#? Thanks.

Member Avatar for JorgeM
0
66
Member Avatar for priyamtheone

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 …

Member Avatar for Momerath
0
214
Member Avatar for david.faizulaev

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 …

Member Avatar for LastMitch
0
146
Member Avatar for HunainHafeez

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 …

Member Avatar for LastMitch
0
159
Member Avatar for nithesh

sir,can you please tell me about the DataMember,DataSourceID,DataTextField property of checkedBoxList control

Member Avatar for LastMitch
0
37
Member Avatar for Kleon

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 …

Member Avatar for LastMitch
0
668
Member Avatar for Shari_1

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 …

Member Avatar for LastMitch
0
821
Member Avatar for Kanshika

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 …

Member Avatar for Kanshika
0
158
Member Avatar for kodingkarthik

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 …

Member Avatar for ILA RANI
0
3K
Member Avatar for psathish2

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 …

Member Avatar for jdesk
-3
9K
Member Avatar for gahhon

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 …

Member Avatar for |-|x
0
175
Member Avatar for MaddTechwf

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 …

Member Avatar for |-|x
0
184
Member Avatar for laghaterohan

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 …

Member Avatar for Mortimertefo
0
571
Member Avatar for HunainHafeez

how to access classes or objects defined in APP_CODE folder ? i defined some classes there but how to access those ?

Member Avatar for HunainHafeez
0
170
Member Avatar for Mafiamanandre

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 …

Member Avatar for Reverend Jim
0
2K
Member Avatar for gahhon

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.

Member Avatar for gahhon
0
114
Member Avatar for HunainHafeez

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 …

Member Avatar for Nguyễn Đình Đại
0
209
Member Avatar for HunainHafeez

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 …

Member Avatar for HunainHafeez
0
375
Member Avatar for gahhon

<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 …

Member Avatar for JorgeM
0
153
Member Avatar for castajiz_2

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 …

Member Avatar for JorgeM
0
135
Member Avatar for mherz

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 …

Member Avatar for gahhon
0
210
Member Avatar for Kleon

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 …

Member Avatar for Kleon
0
486
Member Avatar for gahhon

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 …

Member Avatar for gahhon
0
324
Member Avatar for HunainHafeez

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 …

Member Avatar for JorgeM
0
172
Member Avatar for Mohammad_10

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: …

Member Avatar for Mohammad_10
0
245

The End.