[RESOLVED] convert from C#

237 byte By Bill Crawley at 2007-11-25 8:52:39
Hi All,<br/>I found this line of code on the net and want it's equivelant in Vb, can anybody help me convert it?<br/>SomeText = ((TextBox)((GridView1.Rows[GridView1.EditIndex].Cells[2].FindControl("txtSomeText")))).Text);

[RESOLVED] DataGrid Almost there Delete Problem

1014 byte By Bill Crawley at 2007-11-25 8:52:55
Hi All,From my recent posts, you can gather that I'm working with the GridView control binding the data manually.Everything works now except for 1 niggly thing. When I choose to delete a record, the GridView1_RowDeleting event gets fired twice.How do I ensure that the event only get's fire...

sorting in DatagridView

5912 byte By bhuraasif at 2007-11-25 8:53:08
Hi everyoneGiven below is my code. it doesnt work,please show me fo sorting,Waiting for reply.Regards,ASIFprotected void Page_Load(object sender, EventArgs e) {if (!IsPostBack) {GetPerson();}} private void GetPerson() {SqlConnection con = new SqlConnection(ConfigurationManager.AppSettings["DBConnect...

Validation in user controls

1052 byte By bsaucer at 2007-11-25 8:53:42
I have a page with three user controls. The first control dynamically populates itself with link buttons, depending on the result of a database querry, in this case, ("Save", Cancel").The second control reads values out of a database table and displays the values as text in an htmltable control.The...

label runtime width

352 byte By shuvo at 2007-11-25 8:54:12
I am trying to set width of labels at runtime. I tried lablel1.width=Unit.Pixel(50); and label1.width=Unit.Point(50); I even tried lable.controlstyle.width, but nothing seems to work for me .at runtime the width of the label seems to get truncated.can anyone tell me how it can be done s...

A doubt

889 byte By MathewJose at 2007-11-25 8:54:27
Hi everyone,I have a login page.when user enters data it has to be validated from an xml file instead of using any database.For that I have used a custom Xmlmembershipproviderclass in my application.In my webcongif file I added the following:<membership defaultProvider="XmlMembershipProvider">...

A Query regarding listbox

375 byte By seemapgh at 2007-11-25 8:54:30
I have three listboxes.In first listbox if i have selected an element, then I want a code wherein if i go to second listbox the element selected in first listbox is not reflected or highlighted.Similarly in the third listbox whatever elements I have selected in first and the second listbox should be...

From a UserControl to another

1085 byte By TheEagle at 2007-11-25 8:55:00
Hi..Metakeywords is a simple property I defined in the default page to get a member value:string metakey; .Its code as following:public string Metakeywords{get{return metakey;}set{ViewState["metakey"]=value;metakey=(string)ViewState["metakey"];}}I have used the viewstate trying to solve the problem...

The best way to create headlines

490 byte By nazgul27 at 2007-11-25 8:55:17
Hello,What is the best way to create a news board on the webpage? So the deal is I need to show 10 formatted headlines (taken from a database). If there is a new record in the database, I need to delete the oldest record on the webpage and add a new one at the top. I am sure lots of you have seen...

Unable to Export Excel sheet from Asp.net

1042 byte By Windshadow2005 at 2007-11-25 8:55:39
HiI have written code to generate pdf as well as to generate Excel sheet for my report. Generateing pdf is working fine but I am unable to generate excel sheet. The below is the code what I am writting cr.SetDataSource(ds1); try { this.crvContact.ReportSource=cr; copyright(); summe...

Does a TextBox have a Click event?

447 byte By Ruchita.D at 2007-11-25 8:55:42
Hi, I am stuck on some place Can anyone help me out?Here is my problem. Actually i am having a texbox whose ReadOnly property is set to true on Page_Load Event. What i want to do is that whenever a user clicks on that TextBox its ReadOnly property should be set to False. And...

[RESOLVED] setting childnode of treeview.

940 byte By Bill Crawley at 2007-11-25 8:55:55
Hi All, In my aspx file I have <asp:TreeView ID="TreeView1" runat="server" Visible="true" ExpandDepth="2" NodeIndent="10" PopulateNodesFromClient="false"> <Nodes> <asp:TreeNode Text="Patent Agents" PopulateOnDemand="true"> </asp:TreeNode>...

persisting data

381 byte By Bill Crawley at 2007-11-25 8:56:01
HI All,I return a dataset to my page and populate a treeview.When the user clicks on a treeview node, I then want to obtain the data stored in the dataset based on the user selection, without having to go back to the database.Declaring the dataset at local level isn't good enough (i dont think)...

[RESOLVED] Enumerating textboxs

519 byte By Bill Crawley at 2007-11-25 8:56:16
Hi All,I have a number of asp textboxes on my pageI also have a clear button. How can I clear the text in my textbox's without refering to each of them individually.I thought I might be able to do this, but it doesn't work. Dim objControl As Control For Each objControl In Me...

Using Enter to move to next field on a formview

4966 byte By wmain at 2007-11-25 8:57:22
I have an asp.net web site using ajax.asp 1.0. I am using many formview controls for inserting and editing records. The customer has requested that the enter key moves to the next field in the formview instead of executing the insert/update command. The only way I can see this happening is using cli...

Using Window Application in Web Page

298 byte By vivekshah at 2007-11-25 8:59:13
Hello, <br/>I have created a window application and web application (ASP.NET, C#).<br/>My question is, I want to use the window application to be displayed on the web page of my web application...?<br/>Can anyone tell me the steps how do i achieve this...?<br/>Thnx in Advance.

Problem with Sessions unexpected death

634 byte By Eric Cartman at 2007-11-25 8:59:29
Hello! I have a problem. In my web application I use Ajax components from OboutInc, Oracle DB, and FormsAuthentication with ticket. Where are some buttons that calls asynchronous CallBack and refresh of Update Panels. After clicking on these buttons 17 TIMES!!! Session dies (delete all variables sto...

[RESOLVED] word wrap in asp textbox

557 byte By Bill Crawley at 2007-11-25 8:59:35
Hi Folks,I have the following in my aspx file<asp:TextBox ID="txtTitle" runat="server" MaxLength="500" TabIndex="3" Wrap="true" Height="80px">When I populate the textbox, the text does not wrap, but instead stays on a single line that goes beyond the edge of the textbox. Sure I can scroll the...

Help me about googlemap

120 byte By veena_borse at 2007-11-25 9:02:45
I want to display googlemap on asp.net control eg. on image control.<br/>pls reply me as soon as psbl.<br/>Thank u.

[RESOLVED] Wizard control.

1022 byte By Bill Crawley at 2007-11-25 9:02:48
Hi All,Using VB.Net 2005I have a wizard control on my form and I have successfully set it up to skip a step if a checkbox has not been checked.My problem is that I want to recurse on the same step if a checkbox is ticked. I.e (do you want to add another?).I have an set the OnNextButtonClick="SkipSte...

Problem using IISs aspnet_regiis utility

427 byte By ZhiYi at 2007-11-25 9:02:56
I just installed IIS 5.0 and want to use the aspnet_regiis.exe command utility to register ASP.Net file mappings with IIS.According to the asp.net book I have, the directory of the utility is:C:\Program Files\Microsoft.NET\Framework\[Version]\aspnet_regiis.exe -iHowever, when I checked the directory...

[RESOLVED] Session Variable

567 byte By Bill Crawley at 2007-11-25 9:03:16
Guys in Asp.net using VB.Net 2005How do I declare a session variable that's a string array.i.e. session.add("myArray","") just gives a single string variable ...not good enough for me.I need to declare a session variable, then througout the session add another element to the array.Much like if...

Help me about status bar

64 byte By veena_borse at 2007-11-25 9:04:07
I want javascript code for static message display on status bar.

"Could not find file..." build error

473 byte By Broodmdh at 2007-11-25 9:04:24
I am getting the following file while trying to build my web application:Error 1 Could not find file 'C:\Inetpub\wwwroot\...\abuasp.aspx'.No file name or line number is referenced in the error, and I am pretty sure that this file is not supposed to exist in that location. I can't fin...

[RESOLVED] Dropdown List - Attributes

840 byte By Bill Crawley at 2007-11-25 9:04:29
Hi All,I've written the following which works fine where lstApplications is a drop down: lstApplications.Items.Add("") lstApplications.Items(0).Attributes.Add("Key", "Blank") For i = 0 To objData.Tables(0).Rows.Count - 1 With objData.Tables(0).Rows(i)...

TreeView, client side

235 byte By nazgul27 at 2007-11-25 9:05:07
Hi,<br/>I can't find how to implement client side handlers for ASP.NET TreeView control. For example if a user left click on a node I need to process the click on the client side without posting to the server.<br/>Thanks

Web Service authentication

1343 byte By sinale at 2007-11-25 9:05:42
HelloI have Web Service with two functions:[Webmethod]public string WinAuthHelloWorld(){ return "WA : Hello world"}[Webmethod]public string BasicAuthHelloWorld(){ return "BA : Hello world"}In IIS I turn on the checkboxes "Integrated windows authentication" and "Basic Authentication".In my clie...

[RESOLVED] Creating an event handler

760 byte By Bill Crawley at 2007-11-25 9:05:53
Hi All,I'm placing a number of link buttons on the fly at runtime. Code snippet below which works fine: myCell = Nothing myCell = New TableCell myRow.Cells.Add(myCell) myLink = New LinkButton myLink.ID = String.Concat("mylink", i) myL...

Postback after javascript looses dropdown selection

1281 byte By HairyMonkeyMan at 2007-11-25 9:05:58
I've made a java function that selects an item from a dropdown list then forces a postback:SelectProjectPhaseByNo.jsfunction SelectProjByID(target){ var projno = prompt('Please enter a Project / Phase No.', 'Project / Phase No.'); var ddl = document.getElementById(...

wizard control -previous button

615 byte By Bill Crawley at 2007-11-25 9:06:13
Hi All,I've noticed that occassionally when I press the previous button on a 'wizard control' form, I receive the 'page cannot be displayed' message. When I press refresh, the wizard starts at the beginning again. The error seems random since I make no code changes run again...

301 Redirect and URL Rewriting...

2327 byte By Psytherium at 2007-11-25 9:06:53
I'm using an open source .NET URL rewriter to handing 301 permanent redirect and url rewriting on my site. We want to use the url rewrite to clean up our urls for SEO purposes, and we want to use the 301 redirect because we are changing up the directory structure for the URL paths. With the URL...

How to populate dropdown list and change image

708 byte By Ajay Parmar at 2007-11-25 9:08:40
Dear friends I like to create web page which have two dropdown list and one image.Its likeCourse dropdown listWordExcelSub dropdown list for wordWord Chap 1Word Chap 2Sub dropdown list for excelExcel Chap 1Excel Chap 2Flash swfwordchap1.swfwordchap2.swfexcelchap1.swfexcelchap2.swfI want following:1....

strange problem with Wizard Steps

1506 byte By Bill Crawley at 2007-11-25 9:08:54
Hi All,I have my wizard step declared as: <asp:Wizard ID="Wizard1" runat="server" StepStyle-Width="650" StepStyle-Height="150" StepStyle-VerticalAlign="Top" DisplaySideBar="false" Height="397px" Width="788px" OnNextButtonClick="SkipStep" OnPreviousButtonClick="RemoveStep">SkipStep is declar...

web parts issue

345 byte By cafedreamz at 2007-11-25 9:09:09
Hi All,I created a simple web part using asp.net 2.0.If I run it using the Visual Studio web server the web part looks fine, but If I run the same web part on IIS i am not able to see the minimize and close icons.Any ideas why this is happening?Any help would be appreciated.Thanks.CafeDreamz....

trying to parse poorly formed xml in C#

1467 byte By MattSeitz at 2007-11-25 9:10:07
Hi All - I've run into a problem trying to parse a xml stream.I've consumed a web service that returns the following string:<?xml version="1.0" encoding="utf-8"?><!-- Elevation Values of -1.79769313486231E+308 (Negative Exponential Value) may mean the data source does not have val...

cant reference dll file in bin folder

2684 byte By bluehat at 2007-11-25 9:11:16
hello friendsI'm using ASP.NET 1.1I'm getting the following error upon referencing a dll file in bin folderServer Error in '/' Application.Parser ErrorDescription: An error occurred during the parsing of a resource required to service this request. Please review the following spe...

[RESOLVED] Problem with Custom Control TagPrefix

2187 byte By Ranthalion at 2007-11-25 9:11:45
Hello,I have created a few custom web controls using VB.NET in Visual Studio 2003. Everything with the control functionality is working just fine, but the tag prefix isn't behaving correctly.I have added the following tag to my AssemblyInfo.vb:Imports SystemImports System.ReflectionImports Sys...

problem creating searchable database

296 byte By hemil_sheth at 2007-11-25 9:12:02
Hello guys,<br/>Im creating a searchable database of All univ. names and their majors.....and they will be stored in XML file...using XSL to extract it I want to create a searchable database....<br/>Univ list and majors list will be in dropdown menus....<br/>pls can someone help on this....

How to upgrade ASP.net

153 byte By Ajay Parmar at 2007-11-25 9:13:00
I am using Visual Studio 2002 edition which have ASP.net 1.0 version how i can upgrade my ASP.net to version 2.0 without buy a new copy on Visual Studio.

serialisation

906 byte By Bill Crawley at 2007-11-25 9:13:05
Hi All,If a declare a class something like:<XMLRoot(ElementName:="Class_Person")> _public class Person private m_sName as string private m_iAge as integer <XMLElement(ElementName:="Property_Name")> _ public property Name() as string get return m_sName end get set(byval...

how to add a class to aspx page

158 byte By bluehat at 2007-11-25 9:13:14
Hello Friends<br/>I want to add a simple class (no control class) to aspx page without compiling it to dll.<br/>How can I do that?<br/>Thanks!

Update databound dropdown to match current record

725 byte By KLilley at 2007-11-25 9:13:18
I have a form that will display a specific record based on an ID field that gets passed in the querystring. It seems to work fine. The problem is that the default behavior of the page if no ID is passed in is to display all the records, which the user can then filter using a couple of dropdowns at...

Postback issues...

1539 byte By Avenger007 at 2007-11-25 9:13:42
Hello, I've created an asp:table with 12 cells, and in each cell, I have an asp:textbox. I need to get the information that the user entered in those cells. Seems easy enough. But the way I would like to do it, doesn't seem to work. I'd like to loop thru all the cells, and get...

data transfer between applications

738 byte By ytesfu at 2007-11-25 9:14:04
Hi all.I have this application in asp.net 2.0 which does forms authentication using active directory. The problem I am facing right now is, I want to redirect an authenticated user to a different application that is built in Java securely.I got the authentication part working but to redirect it to t...

Hanging up IIS

2549 byte By Windshadow2005 at 2007-11-25 9:14:19
Hi,I am develope a application in ASP.Net,C# & SQLserver2005 & hosted it on the same configure server. The site is locking up. It happens after creating reports. If in an existing session, reports can be generated without issue. Once you attempt to generate a report again after some time goes by...t...

Multiple Click events in Firefox

383 byte By raj12 at 2007-11-25 9:14:45
In IE if we can fire two events (eg Click ) simultaneously but firefox not permit the same. i had a scenario where in the web page i have two controls Search & cancel. these controls are used for search operation and cancel the search operation.In IE , both the button fires in same time but in Firef...

Wizard control Part II

713 byte By Bill Crawley at 2007-11-25 9:15:02
Ok Guy'sAfter not getting very far resolving my recursion problem and needing to move the project forward. I have resorted to making the use of the Wizard simpler (so I thought).I do not try to perform any recursion now and instead Just have my Next button taking me to the next Wizard step. Nic...

Connection problems for local server

1096 byte By smetzger at 2007-11-25 9:16:33
Hi,I am having trouble setting up an existing site locally on my box in order to do maintenance and debugging. I want the site and the datase to be local on my machine.I am getting the following error...An error has occurred while establishing a connection to the server. When connecting to SQL Ser...

[RESOLVED] custom Validator control

1127 byte By Bill Crawley at 2007-11-25 9:16:35
Hi All,On my Client I have the following script:<script language="vbscript" type="text/VB"> Function ClientValidate(source, args) If args.Value.Trim.Length > 0 And Not IsNumeric(Replace(args.Value, " ", "")) Then args.IsValid = False Exit Function End...

Cannot Get WEB .aspx Page to Resolve on Server

1410 byte By Pat Tum at 2007-11-25 9:18:14
Gentleman:I have an extensive background in HTML and good experience writing C# desktop applications, but I only recently moved onto ASPX. I just created my first aspx website, which includes an access database, and everything works perfectly when it is on the desktop. However, when I try to make...