13,936 Topics

Member Avatar for
Member Avatar for daniweb@14

Hello Frds, I have a doubt regarding Querystring, Actually my requirement is, I have a report page which contains the print option. If we click the Print then the same data will be visible accoring to the main Page. In the mainpage two textbox and a dropdown is there, after …

Member Avatar for SheSaidImaPregy
0
281
Member Avatar for ebabes

I am currently working with an application that involves the creation of new table when a user had pressed a button. I am using an Access Database with a name AcoountReg.mdb. The table should compose of the following fields - ID (number), Stud# (number), PGrade (number)... and so on. How …

0
74
Member Avatar for vipinsgangwar

Hi all, I want to attach map for a particular rail path in my application. It should change according to the stations as well. Can any body help me. thanks in advance.

Member Avatar for vipinsgangwar
0
68
Member Avatar for shreecr

I have the source code of a web appliaction which has .aspx,.asax,.ascx,.cs,.js and other related files.Can anyone tell me how to run this web applicatin?

Member Avatar for madmital
0
72
Member Avatar for zanzo

hello, i am new to asp with javascript <%@language="javascript"%> i want to insert data into Access, but i fail to connect to database using javascript :( do i need to include some file?

Member Avatar for serkan sendur
0
55
Member Avatar for nandhinijp

I want to use google search in site.they give some code <form> ......................... </form> I want to use this code in my web page.if i placed this code before of my normal <form></form> code it changes design that means it has some space in top. if i placed this code …

Member Avatar for nandhinijp
0
82
Member Avatar for s1986

when i try to retrieve data from multiple tables and display the data in a datagrid it does nt display all the records i.e., it misses some of the record.what cud b d reason.below is my code:- dbcon.start_connection() ds = dbcon.getdataset("Select DISTINCT casemas.CaseID as ID, tblCourtType.CourtType as Court, casemas.CaseNo as …

Member Avatar for rashmigs84
0
106
Member Avatar for complete

I am on a brand new VISTA computer now. I am doing ASP.NET development. So I need to turn on IIS. When I do, I notice that the IIS feature is not checked. [IMG]http://i67.photobucket.com/albums/h292/Athono/_001_March_13_2008.jpg[/IMG] When I check it, it says that there is an error during the set-up process. [IMG]http://i67.photobucket.com/albums/h292/Athono/_003_March_13_2008.jpg[/IMG] …

Member Avatar for complete
0
199
Member Avatar for nandhinijp

I am using one ButtonField in Gridview1.If i click that buttonfield it will be fill the next gridview2. So i am using rowcommand for this purpose if (e.CommandName == "nextgrid") { string orderid = Convert.ToString(e.CommandArgument); Fillgrid(orderid); } fillgrid is the fun to fill second grid.here this orderid takes just row …

Member Avatar for nandhinijp
0
227
Member Avatar for Jihad

I have read enough articles and books about windows workflow, but when I wanted to use workflow within a website project, things are not working. I need a reference or an article or a link to a website or anything that can help me in using workflow with website. Thanks …

0
78
Member Avatar for bhavna_816

I have two text boxes for login (not using ASP.NET2.0 login control) for username and password and one checkbox for "Remember Password".I want to remember password on the check of checkbox. Do I have to use cookies?Is there any other way to achieve that since if the user had disabled …

Member Avatar for SheSaidImaPregy
0
255
Member Avatar for bhavna_816

I am trying to encrypt and decrypt the password in ASP.NEt2.0 application with Rijndael algo. I am able to encrypt the password but not able to decrypt it. Can anybody tell me what is the problem with my code, I am pasting it here public static string Encrypt(string StringToEncrypt, string …

0
65
Member Avatar for bhavna_816

I have a GridView which is geting fiiled on the click of a button have method "FilGrid" I want to use the update panel of AJAX so that the page should not get refreshed at the button click but i m not able to do it .. I have putted …

Member Avatar for srikanthkadem
0
58
Member Avatar for bhavna_816

Can we capture the events like click of ASP.NET2.0 controls like link button at client side. For example, there is a link button which performs some operations say download,when the checkbox of the GridView are checked. But what if when the checkboxes are not checked and the link button is …

Member Avatar for ravichandra
0
151
Member Avatar for techbrain55

Hello, What is the best website for help with asp.net and visual studio problems? where are all the best techies to be found? just list me the urls or further details. thanks for your time. Techbrain55

Member Avatar for hollystyles
0
99
Member Avatar for sornas

Hi. Help to know the WebCam status of Client Machine in C# ASP.net How to access and view in remote machine.. Thanks in advance...

0
43
Member Avatar for majestic0110

hi all, hope you are well. Just a quick question, been googling this one for a while but not found anything yet: How does IIS deal with session state? Many thanks for your time.

Member Avatar for majestic0110
0
133
Member Avatar for Hari Mohan

I'm trying to developing a webapplication in asp.net in C# which enables users to print binary stream on their own pc. how to do this. Thanks Hari Mohan

0
49
Member Avatar for someoneelse

I am trying to implement an example of the built in login and createuser wizard. the ony problem is, (and this may be really retarded of me) is that when i publish it out to a web server it doesn't work. Of course, it works perfect locally. Does the aspnetdb.mdf …

Member Avatar for jayakumarjesus
0
267
Member Avatar for serkan sendur

private DataTable CategoryNames(DataTable myTable) { DataTable dt = new DataTable(); dt.Columns.Add("ColumnName"); foreach (DataRow row in myTable.Rows) { string s = row["ColumnName"].ToString(); DataRow[] drx = dt.Select("ColumnName= '" + s + "'"); if (drx.Length == 0) { dt.Rows.Add(new object[] { s }); } } return dt; }

0
64
Member Avatar for serkan sendur

Create Ajax Enabled WebSite. Set EnablePageMethods property of the ScriptManager to true : <asp: ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" /> In the CodeBehind of the page, register System.Web.Services namespace. Create a Method as follows : [WebMethod] public static void DoSome() { } the method must be static and tagged as WebMethod. …

0
163
Member Avatar for serkan sendur

protected void gridview1_RowDataBound(object sender, GridViewRowEventArgs e) { if(e.Row.RowType == DataControlRowType.DataRow) { LinkButton db = (LinkButton)e.Row.Cells[0].Controls[0]; db.OnClientClick = "return confirm('Are you certain you want to delete the item?');" } }

0
45
Member Avatar for serkan sendur

I created 5 .aspx pages with Response.Write(DateTime.Now.ToString()); in the Page_Load event handler, and with <%@ OutputCache Duration="300" Location="Any" VaryByParam="none" %> added after the @ page directive with different versions of location. When i refreshed the page, client and downstream locationed ones refreshed the time as well, this proves that output …

0
55
Member Avatar for serkan sendur

I havent tried the EnableSortingAndPagingCallbacks property of the GridView before. Appearantly it doesnt do anything different than the updatepanel. It only reduces the mark up used to create the updatepanel, in other words, it encapsulates the functionality.

0
54
Member Avatar for serkan sendur

Markup : <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Server Info</title> </head> <body> <form id="form1" runat="server"> <div> <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" Caption="Environment Variables"> <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /> <RowStyle BackColor="#EFF3FB" /> <EditRowStyle BackColor="#2461BF" /> <SelectedRowStyle …

0
68
Member Avatar for serkan sendur

Modify the web.config as follows : <configuration> <system.web> <authentication mode="Forms" /> </system.web> <location path="myRestrictedPage.aspx"> <system.web> <authorization> <deny users="?"/> <allow users="*" /> </authorization> </system.web> </location> </configuration>

0
95
Member Avatar for serkan sendur

Create a Web form : <%@ Page Language="C#" AutoEventWireup="true" CodeFile="WorkerProcessInfo.aspx.cs" Inherits="WorkerProcessInfo" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>WorkerProcessInfo</title> </head> <body> <form id="form1" runat="server"> <div> <asp:ScriptManager runat="server" ID="scrpt"></asp:ScriptManager> <asp:UpdateProgress runat="server" ID="uptPrg" AssociatedUpdatePanelID="upt"> <ProgressTemplate> Loading... </ProgressTemplate> </asp:UpdateProgress> <asp:UpdatePanel runat="server" ID="upt"> <ContentTemplate> <asp:GridView AutoGenerateColumns="false" ID="GridView1" …

0
70
Member Avatar for serkan sendur

In c# there is a built-in split method with which you can create a substring array seperated by one character from a string as follows : // string seperated by colons ';' string info = "mark;smith;123 csharp drive;toronto;canada"; string[] arInfo = new string[4]; // define which character is seperating fields …

0
264
Member Avatar for serkan sendur

When working with reference types, sometimes you want to add some items to one list which has been assigned another list by reference. When you add new items to your new list, the previous list also gets added the new items since they refer to the same object collection in …

0
58
Member Avatar for serkan sendur

in the Page_Load event of the content pages remove the attached eventHandler if there is any, register new eventHandler to the specified event of the controls. in the content page : protected void Page_Load(object sender, EventArgs e) { WebControlType myControl = (WebControlType) Master.FindControl("WebControlID"); // Removes the Handler myControl.SpecifiedEvent -= theDefaultEventHandler; …

0
49
Member Avatar for serkan sendur

I have an updatepanel control in the middle of a page, and i have a link at the top of the same page. I refresh the updatepanel by clicking the link ;however, i want the updatepanel to scroll intoview as well. My javascript scrollintoview method didnt work because updatepanel tries …

0
69
Member Avatar for serkan sendur

When you use datalist setting its repeatColumn property to a constant number, its height depends on its datasource. Sometimes we want to display 10 item in one column and start a new column next to it. For these occasions i created a function as follows : // in my case …

0
67
Member Avatar for serkan sendur

For small applications it is proper to use AccessDataSource object in order to access the database directly from asp.net page. When i first used it for inserting data with formview, it generated the following error : "You tried to assign the Null value to a variable that is not a …

0
94
Member Avatar for waterfall

Im using VS 2005 for web application.Im using message boxes but they are not working.i dont know what's the problem with my code. [CODE] if (drff.Read()) { Button_Assign.Attributes.Add("onclick", "javscript:alert('Data saved successfully.')"); } /*else { //Button_Assign.Attributes.Add("onclick", "javscript:alert('Data not saved.')"); } [/CODE] my data is saved successfully but im not getting the …

Member Avatar for plazmo
0
150
Member Avatar for serkan sendur

sql cache dependency allows for cached data to be evicted and refreshed when it becomes stale. Basically ASP.NET checks for the changes in the datatable in sql server, if it finds one, it refreshes the cached data. Polling based sql cache dependency is very easy to configure as follows : …

0
75
Member Avatar for serkan sendur

Today I came across to one thread asking for a help to scroll the page so that it displays error Panel. then i decided to create two generic methods in the utility class of my project as follows : if the button is a postback button : public static void …

0
307
Member Avatar for serkan sendur

Today i learned an amazing facility of asp.net 2.0 dropdownlist's. In the past( last year actually ) when i wanted to insert a static item having a text "please select something" i used to follow two ways : either insert an item to dropdownlist's datasource or directly insert an item …

0
73
Member Avatar for eme2008

Hello everyone, I was wondering if anyone could tell me how to connect and query sql databases in ASP.NET Using C# code I try to use this code, but there is some mistake in the code lead to an error message You must first withdraw from sqlDataadapter toolbar to connect …

Member Avatar for binoj_daniel
0
158
Member Avatar for serkan sendur

How to create watermark image at runtime in c#? I dont want any unnecessary codes, i want easy, clear and short block of code if possible. Thanks in advance.

Member Avatar for SheSaidImaPregy
0
589
Member Avatar for serkan sendur

i search for a ready script for smooth scrolling but i couldnt find any. So i did it myself as follows, it works perfectly function elementPosition(obj) { var curleft = 0, curtop = 0; if (obj.offsetParent) { curleft = obj.offsetLeft; curtop = obj.offsetTop; while (obj = obj.offsetParent) { curleft += …

0
259
Member Avatar for foundsheep

I have a form that is classic asp that basically collects some info and sends it to an email account. What I really to do is have an email reminder option added. The form is a monthly report and the idea is to have an option for the reminder. The …

Member Avatar for foundsheep
0
720
Member Avatar for waterfall

hi, im using VS.net 2005 for developing a web application.im using stored procedure for inserting records into database.i want to insert time and task for a selcetd employee but its not working. kindly help me.her's my stored procedure: [CODE] create PROCEDURE [dbo].[AssignAndStore] -- Add the parameters for the stored procedure …

Member Avatar for waterfall
0
102
Member Avatar for bhavna_816

Hi Friends, I have a GridView in which the row or the data is getting selected on the checkbox click. I want to enable paging in the GridView such that when i go to next page then the previuos selection remains as it is...means i can perform operations on current …

Member Avatar for bhavna_816
0
90
Member Avatar for bhavna_816

I have created a class that returns a class object which have info about the username,pwd,emailid of current user. Now i want to use this email id in my aspx.cs page to show the current logged in user and its email id.... i m creating an isntance of that class …

Member Avatar for SheSaidImaPregy
0
84
Member Avatar for some one

hi every 1 I am working at my graduation project using ASP. net and I want to know if it is possible to search my data base to get specific data and if it so could you tell which is the best way to do so and if you know …

Member Avatar for some one
0
130
Member Avatar for diab81

Hello everyone, I recently installed VS 2005 and VS 2003 on my Win XP Pro (IIS 5.1). Now, I have two applications, one was written using VS 2005 and the other was written using VS 2003. The problem begins when I try to debug my VS 2003 app. The debugger …

0
47
Member Avatar for johnny.g

hii,,guys,,i m using asp.net2005 and sql server 2005...in my page i have used gridview and sql datasource,i m able to edit,update and delete the records,,the problem is tht for 1 column i would lik to use a dropdown list instead of textbox when i am in edit or update mode,,,heres …

Member Avatar for johnny.g
0
219
Member Avatar for ebabes

I created a javascript function [B]FnNextQuestion()[/B] but I have a problem calling it in my C# class. Is there a way to call this function inside my aspx.cs class? I need help please...

Member Avatar for ebabes
0
106
Member Avatar for ericstenson

Hi, I was wondering if anyone has the solution to this. Let's say I have a dropdownlist. And if a particular value of that dropdownlist is selected, I display a textbox. So I set the dropdownlist to cause a postback event, and on the pageload (when postback), i check to …

Member Avatar for ericstenson
0
100
Member Avatar for dealered

I have an application that was written for me by a programmer who represented VFP as the "best thing since sliced bread" and that would be robust for many years in the future and more importantly handle huge customer databases over a LAN instantly. Now, after two years the server …

Member Avatar for trudge
0
137

The End.