[ASP.Net] Insert into gridview

2001 byte By Shodan at 2007-12-5 11:59:31
Hi all,I created a connection at the page load event and then dragged a gridview on the page and when I ran it, it worked just fine. Now I want to take the values of textbox1,2, & 3 and a checkbox and insert into the gridview or access db. Can you tell me what I'm doing wrong with the fol...

Change 1st item color in Repeater Control?

736 byte By modernthinker at 2007-12-5 11:59:00
hi,I have a Databound Repeater control. IWithin this repeater is a hyperlink control in the ItemTemplate. How can i make the first hyperlink a different color from the rest of the hyperlinks only when the page loads?I currently have:protected void rptMenu_OnItemDataBound(Object Sender, RepeaterI...

[2005] How to serve up images from a database in a webpage

290 byte By szlamany at 2007-12-5 11:58:13
We want to allow admin folks to look at student images in a browser. The images are stored in a our network MS SQL database.<br/>I've never done anything with ASP...<br/>Is this even the right place for this thread? Any pointers on how to get started with a task like this?

Can I bind gridview with oracle table ?

203 byte By bomayed at 2007-12-5 11:57:35
I've been looking around for a way to bind a gridview with oracle , can someone help me out . . . what are the ways , I know one way which is through using ObjectDataSource , are there any better ?

Asp.net customvalidator with database

1446 byte By TooncesLives at 2007-12-5 11:56:56
I'm new to asp.net (and to this forum), and have a question about using some validation tools. I've been given the task of making a new web based form for the fleet vehicles we release at work. On the form, the user fills out information such as the driver of the vehicle, dates the d...

[02/03] Issue with keeping dynamic controls

4124 byte By lleemon at 2007-12-5 11:56:16
I have a form that I am populating a repeater with a dropdownlist, label and textareabox dynamically. I can get it working initially but once I hit the submit or my calendar control the dynamic controls go away.Does anyone know how I keep them on the page?Repeater code<asp:repeater id="rptCa...

Connection String - Oracle & MS SQL

1178 byte By bomayed at 2007-12-5 11:56:15
I'm connecting to Microsoft SQL and Oracle database. To connect to SQL , I have this code in my web.config<connectionStrings> <add name="BITESampleDBConnectionString1" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\DB.mdf;Integrated Security=True;User...

[2005] Vb Listbox Problem

1383 byte By Metallicaman at 2007-12-5 11:56:04
Im making a search program where the program fills a drop down list with tables names from a database. When you change the selection it populates a list box with the fields from that table. To add the field to the search you select a field then click a button. currently when you select a field a...

[RESOLVED] [2005]Creating instances of unkown .ascx user control type at run tim

498 byte By kadem at 2007-12-5 11:56:01
I have a bout 70 user control names stored in my database, the names are displayed using a list or check boxes so that users can select which controls to be programmatically loaded in the page.1. Is there an alternative to using @ Reference directive 70 times in each page in my application?2. H...

asp.net 1.1 and Sql Server Reporting services

436 byte By Andy at 2007-12-5 11:55:55
Howdy all! Man, it's been a long time :DI am trying to do some research and am coming up empty handed. I need to know the possiblility of using asp.net 1.1 and ssrs 200'5' together. I don't have the opportunity to install these things and try out currently otherwise this mig...

[2005] Small expand/collapse problem

2707 byte By Nesscafe at 2007-12-5 11:55:49
hi all... i have a "small" problem with a treeview expand/collapse. i have a save function that works perfect with one problem: if i visit a parent for the first time it goes to selected page expands the child nodes of the parent, after that, i want to go to another parent and it expands that...

Closing things properly.

1236 byte By Webskater at 2007-12-5 11:55:39
I have a separate data access class file that contains all the procedures I use to access a database. This is a typical procedure. public SqlDataReader GetPermissionsList() { // Create Instance of Connection and Command Object SqlConnection myConnection = new...

[RESOLVED] setting color of SelectedItem in <select>

881 byte By Webskater at 2007-12-5 11:55:29
I am creating a select box that is displayed in a GridView, so there are lots of them one above the other in the grid.DropDownList ddl = (DropDownList)e.Row.FindControl("ddlGroups"); DataAccess da = new DataAccess(); ddl.DataValueField = "GroupID"; ddl.DataTextFi...

Is it possible to use modules in an ASP.NET 2.0 website?

245 byte By Utpal at 2007-12-5 11:55:28
Hi everybody,<br/>I tried to use modules in my ASP.NET 2.0 website, but I am not able to use the procedures & functions in it, because they are treated as undeclared. Is it possible to use them. If not, what is the best alternative to that?

[2005] add referense in asp.net

313 byte By chriskaza81 at 2007-12-5 11:53:15
how can i add a refferense in asp.net for example i want to use a spesific api i go on menu->project-> add refferense and i double click the spesific component but in the code for example when i type :dim test as ... it should be (the object) visible wh...

question on how to use javascript in asp.net 2005

421 byte By chriskaza81 at 2007-12-5 11:52:56
hi well i want to use javascript in the asp.net , both in the server side and in the client side maybe i have to confirm that in the top of a page like when i use the default VBscript <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="W...

[resolved] CSS and MasterPage-style not showing in pages

1916 byte By ZeBula8 at 2007-12-5 11:52:27
I have a box template css file that i have a <link href..> in the <head> of the Master Page:<html xmlns=" http://www.w3.org/1999/xhtml" ><head runat="server"> <link href="App_Themes/Theme1/zebula.css" rel="stylesheet" type="text/css" /> <title>Untitled Pa...

[2005] CollapsiblePanelExtender not working while in masterpage,little code samp

1799 byte By tutus at 2007-12-5 11:51:54
Hi, I put the code bellow in regular page, and my CollapsiblePanelExtender works fine (pls note that in my css property in my css file : the overflow property should be set to hidden). The problem, when I put the page as a content page within a masterpage, my CollapsiblePanelExtender doesn t...

[2005] Help with runtime error on production webpage

4372 byte By kxcntry99 at 2007-12-5 11:51:03
Hello everyone,I have taken a look through the search results of "runtime error" and I am still not having any luck. My problem is this: I have a site I developed on my laptop and it works great. However, when I move the published files over to my production server I get a runtime error message...

[2005] Hi can anyone help whats wrong wiht the code export to word

1570 byte By edgarbenilde at 2007-12-5 11:50:36
Can anyone translate my code to make this run..i'm plan to export the data from datagridview to wordhere is my code below..i'm using VS 2005.this code is during my vs 2003=============================================================================Private Sub Page_Load(ByVal sender As...

Web Services

1671 byte By sohailshaikh7 at 2007-12-5 11:50:26
Hi there,I am working with a payment gateway application.I have consumed a web service to integrate the payment gateway.I am able to access the methods exposed by the webservice.The required parameters are passed to the web serviceApplication builds correctly and executes.When I click on the sub...

[2005] Return Data Table From Web Service

878 byte By robertx at 2007-12-5 11:50:18
With .NET 1.1, it was not possible to return a DataTable from a web service - only a DataSet.Finally, I have successfully returned a DataTable from a web service (using .NET 2.0) but I had to do the following before I succeeded:1. I had to set the "TableName" property of the DataTable before ret...

Timer in ASP.net

291 byte By NANC at 2007-12-5 11:49:56
Friends,<br/>I have a simple question.<br/>After certain page is loaded, but user dont do click on link (provided on page),<br/>I want system to wait for 5 SECONDS and then to Redirect to another page.<br/>HOW I can accomplish that.<br/>Thank you, friends.<br/>-nanc

MaintainScrollPositionOnPostback for Panel

362 byte By blahcutey at 2007-12-5 11:49:47
Hello, I'm using asp.net 2005 and I need a panel to retain it's scroll position after an autopostback. Could someone advise me on where this is posible or not and maybe how I can do this? I've put the Page MaintainScrollPositionOnPostback set to True, but this doesnt affect...

Web forms design question. [Opinions Wanted!]

640 byte By bhicken at 2007-12-5 11:48:55
Here is the situation, the way our system currently works we have one form that handles a variety of different types of information. (Ex. Vacation Requests, Travel Requests, Print Requests, Overtime requests etc.) Is it better to have a different page/form for each type of request and break ou...

[2005] How to return Unix style charage return without ^M

700 byte By pommyjim at 2007-12-5 11:47:37
I have a device running Linux (ADSL router) which sends an inform string to my VB.NET page.I build my response string and return the values using the following code:...responseText.AppendLine("text1")responseText.AppendLine("text2")Response.ContentType = "text/plain"Response.Write(responseText)T...

[2005] Playing a music in a web page

1514 byte By steve_rm at 2007-12-5 11:47:26
Hello,The customer wants to download a music file for a path that is on the server, then play that in the web form. So it will be like having window media player embedded in the web form itself.I have the code for downloading and playing. However, a dialog will popup and when they click open it...

How to use SpeedGenNet ?

470 byte By neha101 at 2007-12-5 11:46:50
Hello,I was using SpeedGen(that creates Excel spreadsheets fast, without using Excel.). I was using following code:Set XLS = Server.CreateObject("XLSpeedGen.ASP")XLS.AddRS_ADO Rs1, 20 ' RecordSource 1 (read 20 rows at a time) XLS.Generate "charts.xls", "charts.xls", True ' Stream to Cl...

[02/03] Forms Authentication... Cookie not expiring?

1239 byte By nlraley at 2007-12-5 11:46:46
I've changed my web config to the following: <authentication mode="Forms"> <forms name=".COOKIEFORPOSTING" loginUrl="Post/Login.aspx" protection="All" timeout="10" path="/"> </forms> </authentication>...

[02/03] Need help with filling web page from db

1808 byte By nlraley at 2007-12-5 11:46:42
Okay, I'm stuck trying to fill my web page with data from my database.I have a table in my db which has a Title, Author, Date, Time, and Body values and I am wanting to populate a web page with information from each of these records in the table.I have this so far: If LoginForViewing...

[RESOLVED] [2005] Update Date on page when user modifies

310 byte By mulhearn22 at 2007-12-5 11:46:38
Hi,I have a page that changes the date on it every day. However, we want the page to change the date on it only after someone updates it (the page is updated once daily). Any way of doing this automatically so that we don't have to remember to change the date every day?TIA,Matt...

[RESOLVED] [2005] Gridview Command Button text

76 byte By Besoup at 2007-12-5 11:46:25
is there a way to change the text of a button in a gridview?<br/>thanks

[RESOLVED] How to close web page

1064 byte By bintaleb at 2007-12-5 11:45:25
Hi my friends I have made web page for example (abc.aspx) this page consist of data grid.A data grid is containing many columns one of them is Hyper link.This link will open window by java script through window.open Method After that, I put several field to update them if you want.My Question is...

how to keep server variables in this situation

276 byte By hisamir at 2007-12-5 11:45:10
hi<br/>am using settimeout function at body onload event of html page to get refreshed after a certain timepoints automatically.<br/>but in this way am loosing some of the other controls in the page that are using server variables/session variables<br/>pls help

[2005] (provider: Named Pipes Provider, error: 40 - Could not open a connection

2224 byte By billa at 2007-12-5 11:44:48
This is the error messageAn error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Cou...

login security w/AJAX extensions

8367 byte By tabakaka at 2007-12-5 11:44:45
how do i code a login security with AJAX extensions using vs2005?here's a code i did, but the ajax does not work:the red words are the required codes for enabling ajax...<?xml version="1.0"?><configuration> <configSections> <sectionGroup name="system.web.extensions"...

[2005]frame works in IE 6 but not IE 7

494 byte By steve_rm at 2007-12-5 11:44:36
Hello,I have taken over a project.The web forms displays a frame one with a tree view and one will display the content of what the node on the tree view is clicked.However, even though the tree view is displayed the content doesn't display in the other main frame. However, everything works...

[2005] Close web form

323 byte By steve_rm at 2007-12-5 11:44:33
Hello,VBI have a web form, it is an about box for the company details.I have a ok button that will close the form. The web form is called "About.aspx"Is this code the correct way to do this. btnOK.Attributes.Add("onclick", "window.close()")Many thanks,Steve...

[2005] Registration Page

626 byte By mcupryk at 2007-12-5 11:44:30
ASP.NET C#.VB.NET 2.0 source code intranet site for registration page.need a login page. A registration page that has dropdownlists controls.I was designing using webservices for the dropdownlist but I want to see how other sites do this.I would like to see examples. I looked on asp.net and the...

URL rewriting

1358 byte By fiesta_panda at 2007-12-5 11:41:42
im confused about it, why are people creating an httpModule when you can just put your code in Application_BeginRequest, isnt it the same thing, whats the advantage ?and we dont need to rewrite the url at all if we use Response.End() or ApplicationInstance.CompleteRequest()after we send the cont...

[2005] pick a value of gridview column

57 byte By Esquima at 2007-12-5 11:41:41
how can i pick a value of a checkbox column in a gridview

[2005] FormView - require all fields inside to be filled? design w/ drag n drop

497 byte By wordracr at 2007-12-5 11:41:09
I'm wondering if there's a elegant/simple way to require that all controls within a formview must be filled to be valid. I did add a RequiredFieldValidator to the markup, but doing this for all controls (30) seems heavy.. also, the validator didn't prevent the ItemInserting even...

treeview collapse problem

492 byte By Nesscafe at 2007-12-5 11:41:03
hi all i have the following code for collapsing the previous selected node: if (e.Node.Parent == null) return; string strNodeValue = e.Node.Value; foreach (TreeNode node in e.Node.Parent.ChildNodes) { if (node.Value != strNodeValue) {...

[2005]Method of ObjectdataSource parameters with different names than the sql co

1373 byte By tutus at 2007-12-5 11:41:02
PB: can Insert Method of ObjectdataSource have parameters called differently from sql server columns names \Hi,I add dataset through dataset designer, then I add a class productBLL, part of my business business logic (BLL) with attributes:<System.ComponentModel.DataObjectMethodAttribute _...

[2005] cellclik on gridview

89 byte By Esquima at 2007-12-5 11:40:55
Hi, i want on cliking in a cell, catch me the value of the cell its is possible and how?

[2005] local host web service :O

553 byte By d2005 at 2007-12-5 11:40:36
hi im trying to set up..im on windows vista and ive turned on all of the iis etc..what directory should the webservice be in?at what point do i tell the webservice this.( i thought i just throw it in the wwwroot :)When i try to add a webservice to a windows project i get None - No Web services w...

[2005] Prevent User Download File using URL in ASP.NET 2.0

462 byte By ychhuong at 2007-12-5 11:40:30
I have a small website which allow user to upload and download files. Before upload or download user must log in first.currently if other user know the URL(example: http://www.abc.com/uploaded/A.doc), they can download, just enter the URL in address bar in web browser.The website do not allow us...

[2005] ASP.NET : Strange Hexadecimal Entry

1085 byte By Coool at 2007-12-5 11:40:18
Hi all,I am binding datagrid dynamically. As i mentioned in bold letter i am binding ImageUrl of ImageButton, which have a value either '../images/b-active1.gif' or '../images/b-Inactive1.gif'Everything run fine in local machine but when online I can't see Image if it is...

[RESOLVED] [2005] colors disappear of gridview

313 byte By Esquima at 2007-12-5 11:39:34
i have made a function to color my rows...the problem is...i put the function on page_load, when i run the first time it works...but a have a textbox and a button to filter the grid...when i press the button it filter my grid like the text box,but the colors disappear, i have a grid whith white...

[2005] I can t see the dataset designer classes in a web site application

476 byte By tutus at 2007-12-5 11:39:09
Hi, when I create a web site application and add dataset designer and add tableadpters..etcIn the web site files in the solution explorer I only see the files: myDataset.xsd and myDataSet.xssI don t find the other files, u know where VS2005 put all the classes for all the tableadapters and datat...