13,153 Topics
![]() | |
I have ~10 years with PHP coding and for the apps I have constructed in recent times, I use a class for each table. These contain the connection and queries. I would like to follow the same approach, however I am not sure where to create them. Global.cs? Another question … | |
Suppose i have one label & one button. Suppose labe text is [url]http://www.dreamincode.net/forums/showforum30.htm[/url] I Want that on button click,my form is redirtected to the above URL using JS. [B]FIRST METHOD[/B] [code] protected void Page_Load(object sender, EventArgs e) { Button2.Attributes.Add("onclick", "navigated()"); } <script language ="javascript" type ="text/javascript" > function navigated() { … | |
in data controls (GridView, DetailsView, FormView......) when we add columns using a popup window, we get an option for converting any field to Template Field. What are the advantages of converting any field to template field? I mean what extra we can do with these template fields what we can't … | |
I want to develop my website using ASP.net but which is best and easy to use with ASP.net C# or VB.net. | |
Ive downloaded these "would be" awesome controls from the excentric world web site. One of them is calendar pop up. The problem lies in the fact that when i try to insert the data into sql 2005; it inserts "..." instead of the selected value. Anyone know a way around … | |
hi frnds.. I want to create an online chat application in ASP.NET. I want to put facility of Chatting online and add as friend facility. Also video sharing. If you guys had develped such application or if you know any link then help would be appreciable.. :) | |
Hi, I'm developing an video based site, i want to get an thumbnail for videos for creating video gallery,but without ffmpeg,since i dont get any shared hosting which allow ffmpeg.Please help me to get thumbnail of videos | |
Hi, I have a dataset which is having 5 tables. I want to get only two tables from that dataset and assign into a single datagrid. How can i do this? Thanks in advance... | |
iam trying to call javascript on createuserwizard validation with following script [CODE] function ShowModalDialog() { Page_ClientValidate(); if(!Page_IsValid) $find('<%=AddUserValidationSummary_ModalPopupExtender.ClientID%>').show(); } [/CODE] and my trying to call it for on pageload on create user button click event [CODE] btn.Attributes.Add("onclick", "ShowModalDialog();"); [/CODE] now it works but it fires blank for databse validation like … | |
Does anyone know how to do FileUpload in asp.net 1.1. My current code works for 2.0 but I need to do this for 1.1. I know that FileUpload.HasFile doesn't work.Here is my code: [CODE]<%@ Page Language="vb" AutoEventWireup="false" Inherits="Promethius.PCMSPro.UploadFile" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <script runat="server"> Protected Sub … | |
Dear all, Please help me to solve this. I have a gridview with 3 columns.One column contains label control.Next column contains checkbox. But in the third column ,it can have either text box or dropdownlist. How to add there rows dynamically? Thanks, DJ. | |
There is no label click evnet in ASP.net? I want to perform some action on label click . When i double click on it Label1_Load EVent is generated? | |
I'm fairly new to asp.net and trying to use a session counter to check for when someone has tried to log in three times it counts and when reaches three it locks them out. I know it's easy but my brain is fried. [code] Protected Sub btnLogin_Click(ByVal sender As Object, … | |
Another problem in my program is that I can't get my access database to update. It works on the other fields here is the code [code] Public Sub Lockuser(ByVal path As String, ByVal userId As String, ByVal access As Boolean) Dim sqlConn As OleDbConnection Dim oCommand As OleDbCommand Dim stmt … | |
Hi, I am using active direcory based windows authentication in my intranet application as explained in the article [url]http://weblogs.asp.net/scottgu/archive/2006/07/12/Recipe_3A00_-Enabling-Windows-Authentication-within-an-Intranet-ASP.NET-Web-application.aspx#457094[/url]. Everything works fine. But I need a mechanism "Log in as another user" like in sharepoint portals. When user clicks on "Log in as another user" button, the borwser must prompt … | |
hi to all of guy's i recently have a idea in my mind to start a new video sharing website like youtube but i don't have any idea that where to start. meanwhile i hava solid knowledge about CSS,HTML. And working on ASP.net . so please give your valuable idea … | |
Hello, I'm trying to make a checkbox list which when items are selected are put into session state. I want the items selected to be put into session state so I can display them on the postback url page. As for the items in the checkbox list (data) I want … | |
Hi, I have searched for ages trying to find a solution for this but I cannot. I'm still learning asp.net so apologies if this is a noobish question, but could somebody please look at my code and tell me what's wrong? I have a small cms that uses fckeditor to … | |
I want to create a User Control,that contains two textboxes & button.Can anybody tell me how to create user control with events?? | |
I have a datalist that is populated using an ArrayList. When this is rendered i want to set the background image depending on a list item value, at the moment i have set the image in CSS but i dont know how i would change the image depending on the … | |
hi, i copied my aspx files to httpdocs/ but when i navigiate to the index.aspx page i get an error saying : To update your index page modify the file /httpdocs/index.html is this the right folder to put them in or is there some configuration to do? its looking for … | |
Hello, I am validating a textbox for TaxID using the foll code: [code=asp.net]<asp:TextBox ID="txtTaxID" runat="server" Text='<%# Bind("nvchrTaxID") %>'></asp:TextBox> <asp:RegularExpressionValidator ID="rvTaxID" runat="server" ControlToValidate="txtTaxID" ValidationExpression="^\d{2}-\d{7}$" ErrorMessage="Invalid Tax ID"></asp:RegularExpressionValidator>[/code] My question is I dont want to save the TaxID with dash(-) in the database.How do I do that? please reply | |
[code] protected void btnLogin_Click(object sender, EventArgs e) { try { SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString); SqlCommand cmd = new SqlCommand("SELECT * FROM UserLogin", conn); conn.Open(); SqlDataReader dr = cmd.ExecuteReader(); while (dr.Read()) { if (txtUserName.Text == dr[0].ToString()) { if (txtPassword.Text == dr[1].ToString()) { Response.Redirect("FrmLogin.aspx"); } else { lblError.Text = "UserName & … | |
Hi, How do I change the Row height of the GridView? Can anyone help me out in this. Thanks. | |
When I run my crawler once it works on any page. Run it again on another page or the same page and I get this error [code] Server Error in '/WebApplication5' Application. -------------------------------------------------------------------------------- A potentially dangerous Request.Form value was detected from the client (txtBody="...e customer’s experience,..."). Description: Request Validation has … | |
I have a validation summary on a page. If i set the height of the validationsummary1 to 0px or 1px it will not show any thing in the runtime. I want the height to be autosize base on the number of error. I tried the same project in another system … | |
Hi How can i resize an image before uploading and saving to database to the size im showing in my application.How will i accomplish this. | |
Hey frnds tell me to see ASP.net site video tutorials,is it necessary that msdn sites will open up. Because msdn sites will not open up in my computer. Or by installing silver light,i can watch tutorials. Plaese give me the links to download silverlight. | |
Hi, i'm trying to add a checkbox to a datagrid but don't seem to get anywhere. I got to add a new column but that's where it stops. I'm reading data out of my database and then deleting the first column of that dataset's table as it is not needed, … | |
I have SQL datasource and all columns are directly displayed in gridview. [CODE] DS_params.SelectCommand = "SELECT ID, ParamName, ParamValue FROM Params WHERE ProductID=" + pid; DS_params.Select(DataSourceSelectArguments.Empty); grid_productdata.DataBind(); [/CODE] The first thing I cannot figure out is how to make some column read-only so it can't be edited, without directly adding … | |
Hi all, I have a Subscription database running and i am trying to insert values into it from an ASP web form when i click on a button with an id of 'confirm'. The name of the field is 'startdate' (date data type) and i need to enter today's date … | |
Hi, I have a calendar control which displays the selected month from a dropdownlist.The calendar control displays the last few days of the previous month as well.How to disable the dates of previous month? Can anyone help me on this. Thanks in advance. | |
Hi, I am using vwd 2005 & SQL Server 2000. Now I got 2 problems - 1. How to Copy the SQL Server 2000 Database on Hosting Server(What i mean is where to search SQL 2000 Database file on my local PC)? 2.What Connection String to Use (should work on … | |
HI I am developing a part of asp.net web site as a training project. My part is creating authentication structure and authorization. Can any body please tell me are there any way to do this except using sql membership provider. Because we have to implement according to the class definitions … | |
I wnat to open Website Data Sources Window. When i add a report,in VS 2008,its open automatically ,but in VS 2005. Its not open. How to open it. See Pic attached | |
Ive got my first paying gig since graduation and im very interested in finding out what the .net community thinks about e-commerce. I have a decent command of the VB.net language and asp.net but I know very little about e-commerce. I noticed that there is an existing starter kit called … | |
I want a file uploader,that doesnt cause post back in asp.net 2.0. With some googleing i found that if i set traget of the form to an iframe on the same page,i can avoid post back.But when i try this the page is getting opened in new window.(ie7 is the … | |
I am having trouble uploading any file to the path in the error message below. Does anyone have any idea what the problem is. I did some research on this and most sites say that the permissions need Read/Write access for the asp.net user. I tried this and I still … | |
I want to ask that y there is need to add user control in web.config & when we add it?? If we want to use user control in different pages,we can just drag & drop it on the form,then y we add it in web.config file. | |
My sitemap file contains [code] <?xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="" title="" description=""> <siteMapNode url="www.cnn.com" title="CNN" description="CNN News" /> <siteMapNode url="www.bbc.com" title="BBC" description="BBC News" /> <siteMapNode url="www.reuters.com" title="Reuters" description="Reuters" /> </siteMapNode> </siteMap> [/code] Now Menu appears in the order CNN BBC Reuters When i click on any … | |
hi, i want some examples regarding user control in asp.net with c# and how to retrive data from main page and send it other pages thankx & regards A.Santhosh kumar | |
I have never used this control,i m facing problem in using it. In some sites coding are used in Report Viewer Control,whereas in other sites coding is not used. In this site no coding is there [url]http://www.c-sharpcorner.com/UploadFile/mahesh/ReportViewerIntro04042007100143AM/ReportViewerIntro.aspx[/url] In this site coding is there [url]http://www.aspfree.com/c/a/ASP.NET/Binding-Data-to-the-ReportViewer-Control-Dynamically-in-ASPNET-20/1/[/url] Explain me out plz,I m not … | |
We're using a lot of typed datasets in ASP.NET application, most of them have many tables+adapters and each table has some functions that call Oracle Stored Procedures. It works using System.Data.OracleClient. Our purpose is to make a migration to ODP.NET ( Oracle.DataAccess ). If i build a new typed dataset, … | |
Hello, im a little bit new for mobile.NET and tryin to work with sql express data base during my mobile web form. Im tryin to make some contact form and its work great. the data send from the mobile form to the sql contact table. my question is there is … | |
Hi All, I have an web application written in .NET 2003, I want this aplication to migrate to .NET 2005 and I want to know it will cause any problems. Also it would be helpful if you can tell me how to migrate application in 2003 to 2005. Thanks in … | |
For the last two days I was banging my head to move the control to a specific record in a formview(that is used to update a specific record based on the primary key selected in a dropdown). I use asp.net 3.5 and Linq.. so using Linqdatasource I couldn't find a … | |
Hi, I am working on C#. I have 2 dropdownlists(for Year and Month) and a ImageButton. On click of the image button,a calendar is displayed. I want the default month and year of the calendar to be the same as selected month and year from the dropdown list.Also the previous … | |
hi.. I got an error said that ""Unable to find the requested .Net Framework Data Provider. It may not be installed." Currently i follow the book of beginning Asp.net in c# E-commerce .NET 2.0 and i using visual studio 2005 with SqlExpress 2005 Can anyone help me.. Thanks | |
In a gridview I've edited the columns so it only appears buttons, so my question is how can I add the event on that grdview1 for when I click a button doesnt matter in which column. | |
I m facing problem in Update operation,Select operation is completed. To Perform Update operation- 1)Add Class Products 2) Add a new method called UpdateProducts below is the Vb code,but i want to work with C# Code [code] Public Sub updateProducts(ByVal ProductID As Integer, _ ByVal ProductName As String, _ ByVal … |
The End.