5,691 Topics
![]() | |
Please help me learn session handing in C# using default.aspx | |
Hello to all, I've written this thread because I want to know the different content types used like................. [CODE] Response.AddHeader("Content-Type", "Application/octet-stream"); [/CODE] It was used for software and It was successful........But what for Music,Pictures and E-Books ??????????? Thanks in advance........... | |
How can I make this code asp.net [CODE] If InStr( Request.ServerVariables("HTTP_REFERER"), "google") > 0 Then KeyURL = Request.ServerVariables("HTTP_REFERER") ' Remove all up to q= KeyLen = Len(KeyURL) kStart = InStr( KeyURL, "q=" ) kStart = kStart + 1 KeyRight = KeyLen - kStart Keyword = Right( keyURL, KeyRight ) ' … | |
Hello guys, I'm a newbie to asp.net....I've recently designed a website in which I've taken a gridview control and added a [B]button in the itemtemplate[/B] field of the gridview........What I want is that if anyone clicks on this button then the data in the particular row of the gridview comes … | |
Hi, We are using the ReportViewer control to display SSRS reports in our ASP.NET application. On pages where we use the ReportViewer control the session does not time out. The reason for this is the ReportViewer control emits a "setTimeOut" javascript function which reads the Session timeout value from the … | |
![]() | Hey guys, Im doing an assignment I want to be able to read a text file (one of 2 choices) that have either the latest entry or all entries based on a drop down menu. can you guys please give me some guidance here. The files are submitted using asp |
code for on mouse over image,the picture has to be displayed in a popup window | |
What is the problem with the following login code? [code] Dim conn As SqlCommand = New SqlCommand("Data Source=RAHUL-034890AF0\SERVER2005;Initial Catalog=user_accounts;Integrated Security=True") conn.Prepare() Dim command As Data.SqlClient.SqlCommand = New Data.SqlClient.SqlCommand("select", conn.Connection) command.Parameters(1).Value = txtusername.Text command.Parameters(2).Value = txtpass.Text Dim i As Integer = command.ExecuteNonQuery conn.BeginExecuteNonQuery() If Page.IsValid Then Response.Redirect("~/salesbill.aspx") Else Lblerror.Text = "Username … | |
First, let me start off by saying I am using ASP.NET 2.0 with VB as the default language using Visual Studio 2005. I have a form that has an asp:panel on it that is seeded with an iniitial control. Through the use of the form, additional controls may be dynamically … | |
I'm having troubles getting a userlogin validation up and running. The login itself works fine, but i need some form of errorhandling on logging in with wrong credentials. My code so far looks like this: [CODE]<%@ Master Language="C#" MasterPageFile="/masterpages/PageWithoutLeftmenu.master" AutoEventWireup="true" %> <%@ Import Namespace="System.ComponentModel" %> <script runat="server"> void OnLoginError(object sender, … | |
Hello Having, on a local development machine, successfully configured DCOMCNFG to allow an ASP.NET application to launch a Microsoft Word document using COM Interop, I am now experiencing problems with the configuration on a network test server. The problem is that when clicking the “Launch Word Document” button from within … | |
Hi, I am a JSP newb. I have been scratching my head over this for a while. My task: to construct a POST and to read the response that comes back. I have been provided with some kits that illistrate how to do the job in ASP, ASP.NET and PHP, … | |
Why ASP.NET is much better choice for programmers? | |
Hi, I am trying to upload a large xml file (around 500 MB) on ftp location,but i am getting this error--- it works fine upto 250 MB file The underlying connection was closed: An unexpected error occurred on a receive. i am getting the error on this line:- `" Stream … | |
[CODE] here is java script code function ShowMsg() { if(document.getElementById("txtVerifierName").value=="") { alert("PLEASE ENTER VERIFIER NAME.."); return false; } <asp:Button ID="btnAdd" runat="server" Text="ADD" OnClientClick="ShowMsg()" onclick="btnAdd_Click" /> [/CODE] NOW THE PROBLEM IS THAT WHEN I CLICK THE BUTTON, IT SHOWS THE MESSAGE THAT PLEASE ENTER VERIFIER NAME BUT EXECUTION DOESN'T STOP THERE, … | |
Hi I'm accessing a webservice from my website which returns results thru an XML file which works fine on IE. But Firefox doesn't allow CROSS DOMAIN XmlHttpRequests. so i googled to find a solution to make it work on Firefox and got this url which seems to be a good … | |
I want this code to work as if [flag==0] then set seatcount to 1 else provide me a message that seat is booked but it does not give me proper response it works for seatcount==1 & shows meassage that its booked but for seatcount==0 then also it provide same message … | |
I have an ASP application that we ported from one Webhosting company to another. The application was written several years ago by developers that are long out of reach and it formerly used ASPMail version 4.x for its sendmail routine. The new hosting company has persits libraries instead and I … | |
Hello! I have been regularly updating a website for a client, but I really only work in HTML or Flash. The client has a problem with the ASP side of their site, and has asked me for help. I don't really know anything about databases or query languages, and I'm … | |
ASP.NET Web Project... "Not Web Application", though it might not matter. Normal MasterPage - > Site.Master Forms Authentication Enabled in the Web.Config file [CODE] <authentication mode="Forms"> <forms loginUrl="/Account/Login.aspx" name="aspNetForm" cookieless="UseCookies" domain="www.localitgeeks.com" path="/" defaultUrl="Default.aspx" slidingExpiration="true" timeout="30"/> </authentication> <authorization> <allow users="*"/> </authorization> [/CODE] Ok so that is the Web.config goo for ya. … | |
What I want to know is the difference between the development, scalability and cost of ASP.NET(C#) and Java. I know that in most cases Java is slower than C#. But how much slower? I also know that to run .NET we need Windows(excluding Mono). Will the cost of the license … | |
i want to convert HTML page into asp.net , i tried changing the extension and saving it as .aspx . It worked but most of the options didnt work apart from images like submenus, links and other things so i want to know how to fully convert an html page … | |
can anyone tell me how to print out datagrid to paper using web control? i am using asp.net in vb.net.... is it need to use javascript to write at the html part? can someone kindly teach me pls? i need to know the print function....thanks... | |
Hi. I have this UpdatePanel with som boundfield content. In this panel, there is an edit link, which will edit the content. It works fine. Now I want to make all the boundfields clickable as a link, so they act as the edit button. In that way, I dont have … | |
Hi friends, I am facing this problem while adding a panel to another panel. Please give me the solution. I have put my code below. [CODE] Dim pan As Panel = DirectCast(UserControlTest1.FindControl("Pan_ItemBind"), Panel) pan.Controls.Add(Panel1)[/CODE] Thanks in advence... | |
I've got a form prepopulated from a row in a database (grabs the querystring from the URL to determine the row) and this works fine. I'm using the pageload function on the code-behind file to do this. The button onclick has a function that is supposed to take the data … | |
Hi Folks can any one give me simple file upload then retrieve code?? and is there any solution to SQL injection????? | |
I have two ASP pages. First one is a basic input form. The second one is just vbscript that I use to process the data. It is an INCLUDE file on the first page. What I need to do is once the second asp page is done processing or an … | |
Dear all am new in programmimg this is my next year at the university the tutor asked us to make an asp.net project about e-learning, he wants toopen a web page and a must play showing a video, i searched on the net and i downloaded a flash control.dll file … | |
This article will inform you more about forms Authentication using ASP .NET and Visual Basic .net (VB .NET). Before I continue I must stress that the web.config is xml and must be used with extreme sensitivity in mind. All tags must be closed etc. or else you will end up … | |
what exactly do i need a webhosting company for, is it just simply to run my asp pages, if am unable to do so from my computer? | |
Hi, how can I display on a single page(View) data from two tables in my db? In my project the model is *.edmx file. i have two table one with categories, and the second one with products. All I want to do is to display on home page(view) in left … | |
heres the code [code] <%@ Page AspCompat ="true" %> <html xmlns="http://www.w3.org/1999/xhtml" > <body> <% dim adoconn Dim rsnikhil dim ssql%> <%adoconn = Server.CreateObject("ADODB.Connection")%> <%adoconn.Open("Provider=Microsoft.Jet.OLEDB.4.0;DataSource=c:\nikhil.mdb;")%> <% rsnikhil = Server.CreateObject("ADODB.Recordset")%> <%ssql = "SELECT * FROM kulkarni" rsnikhil.open(ssql, adoconn) %> <% Do While not rsnikhil.EOF Response.Write(rsnikhil("name")) Response.Write(rsnikhil("comments")) rsnikhil.MoveNext loop %> <% rsnikhil.close() rsnikhil … | |
hi all,... iam newbie here. i want to make video conference using ASP.NET & C#. my application is web based. its possible....??? please, if you have know article or anything its help to me... thanx friends..... :mrgreen: | |
I want to declare a integer variable in global scope but do not want to that its value become 0 every time the page is post-back [CODE]using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; … | |
I am trying to build a web application where users can review new projects each week. I have built an asp page with a table that is filled with summary information from a database about each project. I have included an onclick event in each cell that opens a detail … | |
hi would you please help me in retrieving values related to user select a country then its automatically shows the states name of that country in next dropdownlist and after that it will automatically display the city names respected to that country.. please do the needful.its really very urgent thank … | |
Hi, I need to create a data-driven log-in form with different permission levels using classic ASP and MS Access. It is intended for a HR Company. What I'm trying to achieve is something like the following: [QUOTE]Manager - all access/permission Staff 1 | Staff 2 | create, edit and delete … | |
hi i'm new to asp.net and i have create a simple asp.net pages loging page and registration page with simple access database. and i have HTML page that has left frame where the links in it are one will open the loging page and the other one will open the … | |
I'm relatively new to programming. Problem: I'm creating an ASP.NET app the needs to read a CSV file and filter the data. I searched the net and only found classic ASP examples or all DB driven examples. Does anyone have sample code. Or is there any other suggestions on how … | |
Plz Help Me In This Regard Am useing Ajax Control 1)ToolkitScriptManager1 2)AutoCompleteExtender i created web service as Follows Imports System.Web Imports System.Web.Services Imports System.Web.Services.Protocols Imports AjaxControlToolkit Imports System.Data.SqlClient <System.Web.Script.Services.ScriptService()> _ <WebService(Namespace:="http://tempuri.org/")> _ <WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _ <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _ Public Class AutoComplete Inherits System.Web.Services.WebService Private ReadOnly Property ConnectionString() As String Get Return "Server=.\SQLEXPRESS;Database=testproj;Trusted_Connection=True" … | |
hi, i had to make a asp.net form in which i had three columns ... 1:- for Date of registeration 2:- Date of birth 3:- Time of Birth.... and using c# insert these values into microsoft SQl database... cud anyone give me the code,to do it..... | |
I have a client whose hosting provider dissappeared. He has an old ASP (read: Pre-.net) site and I need to get the site online at a new provider. TO start, I am trying to run it internally to make sure I know how to make it work. I have a … | |
hi there i am building a one page website that i need query data from an access database (visual studio 2008 c# xml). I need to do a sql query displaying customers with possible bookings if any. I have been able to display all customers details but i am finding … | |
is there a script or maybe you have resources for a ASP.NET MAILER like PHPMAILER. Thanks! | |
hi I am facing problem in connection of sql server in asp.net pages Actually there is error when i importing namespace [B]System.Data.Sqlclient[/B] [B] Error is:[/B] The type or namespace name 'sqlclient' does not exist in the namespace 'System.Data' (are you missing an assembly reference?) now i don't idea that what … | |
Hy everyone, I got a problem with doin a sum of a column where are only "int" datas, I get those data from Sql Db with a Sql Data Source and use that sds with a nested gridview. I tried with select sum() but it for each employer i get … | |
i want video conference code in asp.net website using c# | |
hi, i want to programmatically click a link on a asp.net web site. first i ve navigated to that website and i ve got a code from some other website [CODE]For i As Integer = 0 To Me.WebBrowser1.Document.Links.Count - 1 If Me.WebBrowser1.Document.Links(i).InnerHtml.StartsWith("Learn HTML") Then Me.WebBrowser1.Document.Links(i).InvokeMember("Click") End If Next[/CODE] but i … |
The End.