all groups > asp.net > june 2005 > threads for thursday june 30
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
INSERT - SQL. Add Record. Problem. Need Urgent Help. Thank You.
Posted by Shapper at 6/30/2005 9:42:18 PM
Hello,
I need to add a new record to an ACCESS database.
I get the error: Syntax error in INSERT INTO statement.
I have no idea what am I doing wrong. This is my code:
' Set Connection
Dim connectionString As String = AppSettings("connectionString")
Dim dbConnection As IDbConnectio... more >>
Please Help
Posted by ^.net^ at 6/30/2005 7:25:02 PM
I was new to visual studio .net and my company task me to do a program where
it will generate a text file into a excel file before that i need to a
program which able to load the text file into database sql. Can any one
possiable helping me solving this problem?... more >>
DropDownList Data Binding
Posted by Joe Delphi at 6/30/2005 6:24:56 PM
Hi,
I am attempting to bind a dropdown list to a SQLDataReader My code
looks like this:
Dim DBComm As New SqlCommand
Dim DBReader As SqlDataReader
DBComm.Connection = DBConn
DBComm.CommandText = "SELECT TESTER FROM PERSONNEL ORDER BY TESTER"
DBReader = DBComm.ExecuteReader()
... more >>
SqlDataAdapter - can it be (re)used for 2 SELECT statements
Posted by Matt Jensen at 6/30/2005 5:58:55 PM
Howdy
Fairly simple question I think, I presume the answer is no it can't be
reused for 2 *SELECT* statements, but just hoping for clarification. Just
asking in the interests of trying to minimise code.
i.e. if the SqlDataAdapter uses a connection to the one database for a
select statement... more >>
Case conversion
Posted by John at 6/30/2005 5:42:03 PM
Hi
How can one change a textbox content to mixed case (first letter of each
word cap, rest small) in asp (vb.net)?
Thanks
Regards
... more >>
Printer Friendly Page
Posted by Jim H at 6/30/2005 4:53:03 PM
I am "printing" data in a label control that was entered via a multi-line
textbox control. The CRLF are not appearing correctly. Any suggestions?
Thanks !... more >>
How Move children from one TableCell to Another??
Posted by Arthur Dent at 6/30/2005 4:33:39 PM
Heres the deal... i have a datagrid which displays products in a category.
Any category has its own set of columns which show up in the grid, so it is
defined as AutoGenerateColumns=True
There is a static column which has a textbox and button for entering a qty
and
adding the item to your sh... more >>
Getting access to a folder programmatically
Posted by Carlitos at 6/30/2005 2:46:03 PM
Hi there,
I've been trying to get information about the proper way to do the
following, but haven't got it yet in spite of all the research I've done for
the past week.
I just want to move some files from my web server to a content server. An
aspx page uploads a zip file. Then the page... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
COM object with CLSID {...} is either not valid or not registered
Posted by c.verma NO[at]SPAM gmail.com at 6/30/2005 2:42:32 PM
I am stuck on one silly thing.It is just about calling unmanaged code
in the C# win/web application. This is what I did:
1) Created a VB dll xyz.dll.
2) Since this is unmanaged dll, I used tlbimp.exe file to create a
managed dll that I am using in my reference of C# project.
tlbimp d:\xyz... more >>
How to use Netscape for debugging?
Posted by Paul W at 6/30/2005 1:43:48 PM
Even though I've changed my default browser in Windows to NN, VS still
insists on firing up IE when I debug. Help please,
Paul.
... more >>
Design Patterns Books and Best Practices Books.
Posted by Luis Esteban Valencia at 6/30/2005 1:37:59 PM
Hello. Can somebody recomend me books of design patterns in c# and best
practices too.
... more >>
more OWC COM components problems
Posted by kstriyhon at 6/30/2005 12:00:01 PM
the thing is, i need to manage pivot table events, in order to do that i
recompile the visual studio .NET and this procedure created a new set of OWC
components the instructions to do that are in this web page
http://support.microsoft.com/default.aspx?scid=kb;en-us;823982
but this procedure ... more >>
Problem Using HTML Controls in ASP.Net (with Designer)
Posted by E. Tom Jorgenson at 6/30/2005 11:47:12 AM
I've run into a problem on a couple of projects that I think I've
identified - but would like confirmation of what I think is going on. Also
interested in any fast solutions to fix the user controls/pages that
resulted from this.
On these projects the page design was done with designers who... more >>
Passing data back and forth with a ASP.NET IFrame
Posted by Kieran Benton at 6/30/2005 11:45:00 AM
I'm trying to communicate between a parent document that is controlled
through pure Javascript with an embedded IFrame containing an ASP.NET
form. I can quite easily pass data into hidden fields in the IFrame and
submit the form to pass data to the ASP.NET application.
Now the tricky part! (at... more >>
Excel ASP Save
Posted by yosh o at 6/30/2005 11:36:18 AM
I hope this is the right area to post this, and I appoligize if it isn't
in advance.
I've spent the last few days trying to figure out what I'm doing wrong
in this code. What I'm doing is that I'm opening an excel file,
changing the header and then trying to save and close the file. Instead
... more >>
DOTNET 2.0 Newsgroup
Posted by Lewis Harvey at 6/30/2005 10:56:37 AM
Is there one available?
I would like to view one any ideas?
Lewis Harvey
... more >>
getting nothing returned to client for inhA hidden input control
Posted by Paul at 6/30/2005 10:36:02 AM
Hi I am setting the value of inhA.Value on the server and have the code below
to run on the client. Does not seem to be working, value set on server side
and checked by the client.
<input type="hidden" runat="server" id="inhA" NAME="inhA">
<script language="javascript" event="onload" for="wind... more >>
ASP.NET 2.0 DataBinding with object oriented business classes
Posted by ulrich schumacher at 6/30/2005 10:08:06 AM
Hi ASP.NET 2.0 Professionals,
I've got a question concerning the new ASP.NET 2.0 DataBinding with object
oriented business classes:
Example:
There are two business classes in my domain model:
public class Language
{
public int ID;
public string Name;
}
public class User
{
p... more >>
If statements in aspx pages
Posted by Jason at 6/30/2005 9:57:02 AM
What is wrong with the following if statement in my aspx page?
<%If #DataBinder.Eval(Container.DataItem, "locationType") <> "T" Then%>
I get error that says: BC30201: Expression expected.... more >>
Populating DropDownList Items
Posted by Joe Delphi at 6/30/2005 9:55:31 AM
Hi,
I am trying to populate dropdownlist items from the results of a
database query. My code looks like this:
Private Sub PopulateSubByBox(ByVal DBConn As SqlConnection)
Dim DBComm As New SqlCommand
Dim DBReader As SqlDataReader
DBComm.Connection = DBConn
DBComm.Comm... more >>
Can ASP.NET and JSP Share Session State?
Posted by jeff_carver NO[at]SPAM hotmail.com at 6/30/2005 9:52:38 AM
I've been looking at a number of threads that seem to address this
issue, but they all seem to vector off into the weeds. So, can anyone
provide a definitive Boolean answer to the question, "Is it possible
for a JSP page and an ASP.NET page to communicate with each other via
session state varia... more >>
sending mail
Posted by rodchar at 6/30/2005 9:32:59 AM
hey all,
i wasn't exactly sure where to post this but i'll start here if i may.
i have an asp.net application that sends the application's health thru
email. however, when i receive the email it says that:
Extra line breaks in this message were removed.
Where do i go to prevent the ema... more >>
DataGrid's Hyperlinkcolumn vs LinkbuttonColumn
Posted by Nad at 6/30/2005 9:32:39 AM
Hello,
I have a DataGrid on which row there are two linkbutton columns and a
hyperlinkcolumn. Could someone explain why the two scenarios lead to
different results?
Scenario 1.
a. I open the page and click on the first linkbutton (with call to
server.execute)
b. I click on the 2nd lin... more >>
Clientside validation for DataGrid's text boxes
Posted by Kris at 6/30/2005 9:25:35 AM
Hi,
I have a DataGrid where in each row has couple of text boxes and an
update button. Each row is dynamically generated as the number of rows
are not known ahead of time. When the user clicks the update button, I
do a postback to capture the data entered. However I dont want to do a
po... more >>
Cannot Copy Assembly <MyAssembly> The Process Cannot Access The File Because It Is Being Used By Another Process
Posted by Ram at 6/30/2005 9:22:10 AM
Hey,
I have a solution that is built from both C# and VB.Net projects that some
C# projects are referenced to VB.Net projects and vise versa.
Whenever I try to rebuild my solution I get the following errors:
"Cannot Copy Assembly <Assembly> - The Process Cannot Access The File
Because It Is Bei... more >>
OWC COM components
Posted by kstriyhon at 6/30/2005 9:16:08 AM
i need to manage mouse events in OWC pivot table in a web form not in a
windows form and i can not find any information about this topic, the article
i found manage events in a pivot table in a windows form but this does not
work for what i need, i allready looked in the OWC black book but i c... more >>
Help needed with asp.net 2 starter kits.
Posted by Jensen Bredahl at 6/30/2005 8:59:16 AM
Hello,
This should be very basic but i'm having hard time finding the C# version of
the starter kits.
There is a link in the Visual Web Developer 2005 Express Edition but that
only opens the VB version of the personal starter kit.
I went to download the starter kits from
http://www.asp... more >>
DOC To PDF On The Fly
Posted by James at 6/30/2005 8:19:04 AM
Does anybody know of a component (.NET or COM) that will convert Word
documents (.doc) to PDF on the fly.
Preferably it would convert other file types too.
Thanks
James... more >>
fire an image button click event using javascript
Posted by Andy Rose at 6/30/2005 8:11:03 AM
..Hi all,
I want to catch an 'enter' keypress event on a web form and submit the form
as if a button had been clicked rather than the default post back behaviour.
I know the following javascript can be placed in the body tag to do this.
onkeydown="if(event.keyCode ==
13){document.getElem... more >>
Simple Panel question
Posted by Nad at 6/30/2005 8:04:02 AM
Hello,
Within a panel, I have two data lists beside one another and I want to add a
small button centered between these datalists. However, the button moves to
the bottom between the datalists rather than being centered in between. Is it
possible to fix this?... more >>
html table
Posted by CalSun at 6/30/2005 8:01:36 AM
I have a datagrid with about 15 columns bound at run time. I create an html
table and have this datagrid inside.
<table align=center width="90%">
<tr>
<td>
<asp:datagrid ......
...
</asp:datagrid>
</td>
</tr>
</table>
Somehow the datagr... more >>
datagrid hardcoding...
Posted by Alen Smith at 6/30/2005 7:54:55 AM
strMyText = dgdMyGrid.Items(iRowCounter).Cells(0).Text
Currently I have hardcoded the first column as Cells(0) value, what is the
syntax to read the column by name. Hard coding like this is causing big
problem for maintenance.
..Net 1.1.
Thanks,
Smith
... more >>
Trouble validating an intranet url
Posted by Buggyman at 6/30/2005 7:38:01 AM
Hi,
I'm having trouble validating an intranet URL.
I'm using the regular expresssion validator (though any ideas accepted), and
using the standard Internet URL definition, which is..
http://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?
unfortunately this doesn't work with our intranet values, such a... more >>
ASP.NET User Control
Posted by Brett Wesoloski at 6/30/2005 7:28:59 AM
I have a user control that has a text box in it. Well what I would like to
happen is when a user changes the text my aspx page will know and fire so I
can run some code behind.
I have tried many things and have looked on google but can't find what I am
looking for.
This is what I have in m... more >>
Viewing ASPX Page in VS.NET Browser
Posted by crjunk at 6/30/2005 6:49:32 AM
I'm having problems viewing ASPX pages in the VS.NET browser. For some
unknown reason, it just stooped working. The status bar at the bottom
just says "Downloading...".
So far I haven't been able to get it to time-out. I've tried rebooting
and also stop/start the World Wide Web Publishing serv... more >>
http error codes.....
Posted by AVL at 6/30/2005 6:01:03 AM
hi,
i need to write a script whcih monitors my web application....
can anyone let me know the way to capture the error whcih i get whenever i'm
uable to connect to the server..
... more >>
Return Strongly Typed Data Set from Web Service
Posted by HardBap at 6/30/2005 5:46:13 AM
I've created a strongly typed DataSet (Customers.xsd) using the xsd.exe
tool. I want to be able to access fields using
ds.Customer[0].CompanyName.
The problem is when I return this DataSet from a Web Service it adds
another Table to the DataSet that contains the data. I have to access
the dat... more >>
Textbox Readonly
Posted by Jim Heavey at 6/30/2005 5:41:04 AM
While working with a text box control in VS in the webpage, there is a
property "Readonly" which you can set, but this same property is not
available to you in VS when you are wanting to set that same property in
code. Why? How do you set this property in code?... more >>
Force Popup Login for Windows Authentication
Posted by Grant at 6/30/2005 5:30:05 AM
Hi,
I am using Windows Authentication but want to force a login popup even if
the users login is authenticated. This would allow other people to use my
computer while im logged in to access and login to one of my applications.
Note: I don't want to use Forms authentication mode.
Does an... more >>
newbie: Converting DOUBLE to STRING
Posted by charliewest at 6/30/2005 5:05:02 AM
Hello -
Using C#, i am trying to convert a double value to string, so that it can be
assigned to a LABEL control on my Web Form Page. However, i continue to get
"invalid cast" errors. My code is as follows:
double i = 5;
double s = 10;
double r = i/s;
txtResult.text = System.Convert.To... more >>
webcontrols
Posted by (cmrchs NO[at]SPAM yahoo.com) at 6/30/2005 2:57:32 AM
Hi,
a webuser control (ascx) can only be used within the same project.
but I would like to use it s an independent compiled control on a web page in any project
how do you do this ? just add it to a web control library doesn't seem to work well.
so how ?
thanks
Chris
***************... more >>
visual effects on a web-page
Posted by (cmrchs NO[at]SPAM yahoo.com) at 6/30/2005 1:06:06 AM
Hi,
how can you embed a winforms control on a web-page ?
thanks
Chris
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...... more >>
ASP.NET 2.0 Personalization
Posted by RedHair at 6/30/2005 1:03:00 AM
How to use user profile within a web farm environment?
... more >>
job scheduler in .net
Posted by AVL at 6/30/2005 12:11:02 AM
Hi,
How do we schedule a job?Is there any alternative other than creating a
windows service?
Are there any job schedulers in .net? Any freeware?
Regs
Vijaya... more >>
Extract data from excel
Posted by Beginner at 6/30/2005 12:02:06 AM
hihi
While I am developing ASP.NET using C#
I want to import a excel file and make some modification and then generate a
report
however, I can't use SQL command as the excel file does not have a field name
and so everytime I need to display the whole list
And someone suggest me to use ODB... more >>
What's better, a hidden form field or viewstate?
Posted by Alan Silver at 6/30/2005 12:00:00 AM
Hello,
I have a page that gets passed an ID in the query string. It then uses
this ID to pull info out of a database and populate controls on the
page. When the page is posted back, the query string is not going to be
there any more, so I need some way of storing the ID.
What's the best ... more >>
DataBind Problem
Posted by Chris Kennedy at 6/30/2005 12:00:00 AM
I have a drop down list, which binds to dataset based on an XML file =
like the one below.
<xmlform>
<formelement id=3D"0">
<maxlength>234</maxlength>
<datatype>String</datatype>
<isnull>true</isnull>
<index>0</index>
</formelement>
</xmlform>
Sometime the XML will have nothing in it l... more >>
Calling window.print from server page
Posted by Diego F. at 6/30/2005 12:00:00 AM
Hello. I'm trying to call a function that prints the content of a div
element. I had that javascript code working, but now I must put that code in
the server side, as it is called from another component.
The problem is that it can't find the div control. Don't know why. I paste
the code her... more >>
Very simple concept but....
Posted by Chris Kennedy at 6/30/2005 12:00:00 AM
I always get a little confused with this. Quite often I end up writing code
with two lines.
Dim strTest as string
strTest = "test"
How do I write as one line and what is the theory behind instantiating
objects such as ado.net objects like this. Quite often I see very condensed
code, which ac... more >>
Imports question
Posted by Chris Kennedy at 6/30/2005 12:00:00 AM
Where do I put me imports statement in VS.net. I am OK in handcode asp.net
page. I get sqiggley line everywhere when I try to put at the top of the
HTML is VS.
... more >>
Date/Time Strange Problem
Posted by Shapper at 6/30/2005 12:00:00 AM
Hello,
I am having an error when inserting a record in an Access database.
The field [publication_date] is of Date/Time type.
This is my query and the parameters for that field:
Dim queryString As String = "INSERT INTO [t_news] ([title], [text],
[publication_date]) VALUES (@title, @tex... more >>
Create Record in Database.
Posted by Shapper at 6/30/2005 12:00:00 AM
Hello,
I need to create a new record in a database.
The database has 3 fields: [id] (autonumber), [title] and [text]
(strings)
When I create the record how should I create the [id] value?
Does the database insert it automatically?
Do I need to create a random number?
How can I do it ... more >>
Setting properties and methods to an activex control
Posted by Nayak at 6/30/2005 12:00:00 AM
How to set properties to an activex control ?
So that i can use it as
Activex.propertyname = variable;
or
variable = Activex.propertyname;
... more >>
Disabling validators in multipage
Posted by Gabriel Lozano-Morán at 6/30/2005 12:00:00 AM
When using the tabstrip control combined with a multipage (several pageview)
there is a problem when using validators. The problem is that validation
also occurs on the validators that are not on the currently selected
pageview of the multipage. To prevent this from happening I disable all the... more >>
problems with activex controls on web page
Posted by Nayak at 6/30/2005 12:00:00 AM
On my web page, I have an activex control.
Is it possible for the activex control to access some xml files and database
on the WebServer ? If yes, How to do that ?
If no, is there any method to do that ?
Please help me.
I am using ASP.Net with C# as the code behind
... more >>
Urgent
Posted by Yoshitha at 6/30/2005 12:00:00 AM
HI
Am trying to retrieve the cpuid of the system from web application and am
geting the followng exception can anybody tell me how to solve this problem
its very urgent for me
i got error in the follwoing line of code
Dim moc As ManagementObjectCollection = mc.GetInstances()
Exceptio... more >>
Adding ASCX controls at runtime problem
Posted by Gonçalo Boléo at 6/30/2005 12:00:00 AM
I have an ASCX control with 2 objects (asp:label and asp:xml)
I wan't to add this control using Controls.Add() because my business logic
requires to select the correct control to show.
I have some code on ASCX page_load event that makes references to asp:label
(only set text property to it) an... more >>
Addin ASCX control at runtime and page_load
Posted by Gonçalo Boléo at 6/30/2005 12:00:00 AM
I have an ASCX control with 2 objects (asp:label and asp:xml)
I wan't to add this control using Controls.Add() because my business logic
requires to select the correct control to show.
I have some code on ASCX page_load event that makes references to asp:label
(only set text property to it) ... more >>
On the fly word to html translation.
Posted by AndyW at 6/30/2005 12:00:00 AM
Hi folks,
Forgive me if this has been asked a million times before.
I need to read a word document out of a varbinary field and display it
on a web page. I do not want to use a browser plugin as I want the
document displayed seemlessly.
Does anyone know how one goes about reading wo... more >>
|