all groups > asp.net > may 2004 > threads for tuesday may 18
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 31
MySQL: Insert null values?
Posted by hellrazor at 5/18/2004 11:30:00 PM
Hi there,
I have the following INSERT statement:
fieldOne is of type int
fieldTwo is of type date
In MySQL, both are allowed to hold null values.
Now, I try to insert regular data into it:
INSERT INTO myTable (fieldOne,fieldTwo) VALUES(3,'2004-05-18')
NO problem there.
But what... more >>
Get the number of times a URL- With query string it a server
Posted by Srini at 5/18/2004 11:26:05 PM
Hi
I wanted to know if there is any way we can get the number of times a url is clicked by the user with the query string parameters
I want to cache the page. I need to know at what time a user types a url (with querystring
Thanks in advance
Srini... more >>
DataAdapter - Multiple queries- supported?
Posted by Ravi at 5/18/2004 11:11:06 PM
The following code does not work: I trying to connect to oracle
Whether the oledbdataadpter does not support multiple queries for oracle
Thanks in advanc
Ravi
dim oledataadapt as OleDbDataAdapte
oledataadapt = New OleDbDataAdapter("Select name_id,name from table1, Select Super_id,supe... more >>
scheduled service
Posted by Aaron at 5/18/2004 10:55:34 PM
I would like to run a record count script every sunday night. Like scheduled
tasks in windows
Can a aspx page or a web-based page do that? I'm using a hosted server, i
have no access to IIS or install anything on the server.
It seems to me that someone has to click/load the page in order to ru... more >>
Central european letters in ASP.NET project
Posted by Matija Brnetic at 5/18/2004 10:27:02 PM
I am having problems with displaying central european letter(croatian) in my
ASP.NET project, how can i fix that ?
thnx
... more >>
Intellisense bug ?
Posted by GD at 5/18/2004 10:22:23 PM
I have a situation where I have renamed a HTML Label from "Label1" to
"lblResult2 in an aspx page.
However when I write code in the code behind module the control name
"Label1" still appears in the intellisense list and I get the error
"System.NullReferenceException: Object reference not set to ... more >>
Persisting dynamic controls
Posted by Assaf at 5/18/2004 10:20:21 PM
Hi all,
My web form creates & displays dynamic controls when a user clicks a button
(code below). No problem. But how do I persist a new control? Every postback
destroys the object never to be seen again.
Dim MyNewImageButton as New System.Web.UI.WebControls.ImageButton
:
Private Sub Butto... more >>
dataset disappears on postback
Posted by jhill at 5/18/2004 9:46:04 PM
i have a dataset object i put on my webform, i fill the dataset, bind it to my grid. the grid displays with my data. i put a button with no code in it, but just to have it force a postback. every time this happens, my dataset is set to nothing
for the fun of it, i created 2 datasets and left on... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
help for javascript in asp.net
Posted by jigar shah at 5/18/2004 9:41:10 PM
How can i find an element of radiobuttonlist control in javascript for client side validation which is not browzer specific?... more >>
auto refresh a link to pdf file
Posted by Dave at 5/18/2004 9:12:05 PM
Using asp.net - is there a way to have a link to a pdf.file - that will auto
refresh the pdf file before it opens.
Thanks
Dave
... more >>
open an url in a new window
Posted by EMW at 5/18/2004 8:57:31 PM
Hi,
I have tried Response.Redirect("http://intranet", True) and
Server.Transfer(http://intranet) but in both cases the new page is not
opened in a new browser window, but in the same window as my aspx page.
Is there another way to popup a new browserwindow?
rg,
Eric
... more >>
Default NULL parameter
Posted by martin at 5/18/2004 8:54:01 PM
Hi,
I am using vb.net and I would like to define one of my function parameters
to have a default value of null (in this case an sqltranaction object)
however I am having a great deal of trouble doing this.
my (incorrect) function declaration is below and I would appreciate somebody
pointi... more >>
Multidimensional arrays? anything else?
Posted by d[ - - ]b at 5/18/2004 8:46:59 PM
Hi there,
Just wondering, if there is any way to have a dynamic / unspecified size of
an array? It obviously needs to be updated, deleted etc. The only way I
thought is by making the array massive at the start? Any other ideas?
Apparently Hashtable, ArrayList etc are useless as they all tak... more >>
A dataGrid with a child DataGrid..
Posted by RSB at 5/18/2004 8:46:45 PM
I have three Tables
Table1 .. which has Child records in Table2 which further has child records
in Table3.
Now i was thinking to Have a Datagrid for Table2 and then There should be
another child Datagrid for each Row of Table3..
Can i do it?? also how to HIDE the second Child Grid..
... more >>
String Length Validation
Posted by A.M at 5/18/2004 8:26:28 PM
Hi,
How can I use validation controls to check max length of string text boxes?
Thanks,
Alan
... more >>
Stored Procedure problem
Posted by The Clansman at 5/18/2004 8:11:15 PM
Hi, I have the following stored procude in a MDB database:
SELECT Id
FROM Users
WHERE Email=@Email
I want to get the return value "Id", I'm trying to use:
Dim param As New OleDbParameter("Id", OleDbType.Integer)
param.Direction = ParameterDirection.ReturnValue
... more >>
writing quotes to database
Posted by Netfreaky at 5/18/2004 7:18:10 PM
When you type a quote in a name for example, the database is returning
an error...
Now i only check the name field and replace every quote to \'
Is there a simple thing to replace all special characters with
something that can be inserted into a database?
I'm using asp.net with VB, and a... more >>
HtmlInputFile.value cleared after submit.
Posted by Lau Lei Cheong at 5/18/2004 7:14:18 PM
Hello everyone,
I'm writing a web form to upload files. The page contains a number of
tables to maintain the design(which VS.NET complain at the begin, but I
resolved all of them later), a few HtmlInputFile object and a submit button.
When I press the button, the code behind will save the ... more >>
source property in exceptions
Posted by Buz Waitz at 5/18/2004 6:37:14 PM
I'm trying to write to the application error log in a user control and am
getting the message that the source property was not set before writing to
the error log. I'm having trouble tracking down the cause of the error. Any
help, please?
Buz
... more >>
HtmlEncoding, SQL Encoding in ASP.NET
Posted by Chris at 5/18/2004 6:16:58 PM
Hey,
What are the usual ways to encode a sql string for safe insertion into the
db? Are there
handy functions like php's addslashes, etc? or should i use the Regexp, or
string.Replace functions?
Cheers
Chris
... more >>
Difference between accessing authentication info
Posted by TS at 5/18/2004 5:37:31 PM
In these 2 snippets, "user" references 2 different things in my app:
-------------------------------------------------
Dim ident As System.Security.Principal.WindowsIdentity =
System.Security.Principal.WindowsIdentity.GetCurrent()
Dim User As New System.Security.Principal.WindowsPrincipal(ident)... more >>
Session Reference
Posted by Don at 5/18/2004 5:11:11 PM
I have a module where I have common routines. When I want to use it I place the following on top of the sompage.aspx.v
imports Mycode.CWPS.CWPSCod
I then call a routine that I want to use. Here's the question: How do I get reference to the session of the page that called me. What I currently... more >>
Querying AD for a user's log-in name...
Posted by maverick99999_99 NO[at]SPAM yahoo-dot-com.no-spam.invalid at 5/18/2004 5:02:10 PM
Is it possible to retrieve a user's log-in name from AD when they
visit a particular website? I'm wanting to store exactly who clicked
on certain links and when they clicked them. Is this possible? I
know very little about AD, so any help would be appreciated. Thanks!
:)
... more >>
Pop-Up window
Posted by Steve Caliendo at 5/18/2004 4:34:32 PM
Hi,
Could someone please tell me how to generate a pop-up window?
On my web form I have a button, that when clicked, converts the selected
..pcx file into a .jpg, and I would like to display the converted file in a
new browser window.
Thanks,
Steve
... more >>
Web site template
Posted by Anita C at 5/18/2004 4:17:41 PM
Hi,
Can someone please point me to any source of free templates for an asp.net
web site and how to use them ? I'd like to use a template/theme for a web
site that basically needs to display some forms to feed data into a db and
display reporrts based on info. retieved from a db, using menus.
... more >>
ThreadAbortException not behaving properly?
Posted by Steve - DND at 5/18/2004 4:08:40 PM
I just implemented a page that performs a Response.Redirect(url, true). As
such, I wrapped it in a try catch, and explicitly caught a
ThreadAbortException. However, the thread abort exception was still thrown
at every catch block above the try/catches level, as well as at the *same*
level as the... more >>
Print
Posted by Catalin Porancea at 5/18/2004 4:06:56 PM
Hello,
How do I print a web form as soon as it is displayed, without any user
intervention?
Thank you,
Catalin
... more >>
image from sql to datagrid !!! HELP"" HELP
Posted by Michael Persaud at 5/18/2004 4:06:00 PM
hi all
pls help me here. I am trying to retrieve images from a sql srv and want to
populate a datagrid with the image or a picture box equivalent. after
running the sqlcmd it may return many pics and i need them to be listed in
as pic inwhatever format. The image is stored as image type.
i ... more >>
complex repeater/datalist question
Posted by martinthrelly NO[at]SPAM yahoo-dot-com.no-spam.invalid at 5/18/2004 4:02:56 PM
i am querying a database and displaying rows of search results on my
web page. the first column of each row contains a <linkbutton>.
when a user clicks this <linkbutton> i want to take some values
of other columns in that particular row and use them in my code
behind.
i know that i can achiev... more >>
Credit card processing
Posted by Kikoz at 5/18/2004 3:24:27 PM
Hi all.
I understand that this question is not exactly related to the topic of this
newsgroup but...
I have done a lot of asp.net work for the past two years but never needed
credit card processing to be implemented in web application. Now I develop a
web based service app that has to charg... more >>
ASP to ASP .NET compatiblility
Posted by Kit Truong at 5/18/2004 2:29:40 PM
Hello,
I have developed an ASP application using VBScript which now has to be moved
to another server which is running ASP .NET Framework 1.1
My question is, approximately how much of my code would I have to change to
make my code work on the new server.
Thanks.
... more >>
Argh! Trouble getting values from textbox in a Repeater
Posted by MattB at 5/18/2004 2:22:48 PM
OK, never mind my last post. It was easy enough to refer to the table the
repeater is bound to, but I made a big, incorrect assumption in that post.
In my last post I thought I was successfully getting values from the
textboxes in my repeater. It turns out I am not and I can't see what I'm
doi... more >>
Page_Load automation
Posted by Random at 5/18/2004 2:16:50 PM
I am wanting to set the innerText of an html element during the Page_Load
event. I know how to do this by using runat="server" and everything. The
difference is that since I want this same operation to happen on every page,
using data stored in the web.config file.
How can I get this operati... more >>
asp to asp.net
Posted by McGuyver at 5/18/2004 2:16:04 PM
In asp I could redirect to a page with a named/value pair ("www.foo.com/home.asp?error=101"
Inside of the asp I could add the following code to trap for any errors
<
s_error = CStr(request("error")
if s_error <> "" the
s_error_messag
select case s_erro
case "101
s_err... more >>
Raising ItemCommand event from a DataGrid nested in a DataList
Posted by mward NO[at]SPAM topflightconcepts.com at 5/18/2004 2:03:51 PM
I have a DataGrid nested within a DataList. The DataGrid generates
LinkButtons with specific CommandName values. I cannot figure out how
to trap this event. I need to know which DataGrid LinkButton was
selected.
Thanks in advance.... more >>
Confirming Delete for a asp:ButtonColumn in asp:datagrid..
Posted by RSB at 5/18/2004 1:54:46 PM
Hi Everyone,
i am using a ASP: DataGrid control in the page and for each row i have a
Delete Button Column. Every thing works fine.
But now i want to add a Java script confirmation check for the user that
Delete has been selected and are they sure to continue.
I have already used this Attribu... more >>
Fragmented Cache
Posted by A.M at 5/18/2004 1:37:23 PM
Hi,
How can I change the duration of user control's cache inside asp.net's C#
code?
Any help would be apprecited,
Alan
... more >>
Dayly reports
Posted by Ben de Vette at 5/18/2004 1:36:24 PM
Hi,
I have to generate dayly reports from the database on my website.
What is the best approach to do this?
In Unix I would use the Cron, but how to do this on an Windows Webserver.
The problem is that I use shared hosting and have no access to scheduled
tasks.
Thanks in advance,
Ben
... more >>
Having problems with too many sessions when displaying dynamic image content.
Posted by Ken Varn at 5/18/2004 1:32:53 PM
I have an ASP.NET web page that displays about 16 dynamic images using an
HttpModule handler tied into16 Image controls. When the browser tries to
display each image, it attempts to display all of them at the same time
which causes IIS to fail on some of the requests because there are too many
... more >>
FREE CMS?
Posted by Luis E Valencia at 5/18/2004 1:20:25 PM
Anyone knows a free cms?
... more >>
includes check user page
Posted by Grey at 5/18/2004 12:38:49 PM
I want to check if the user login the system or not before using the =
application. I want to use one aspx file for doing this. I know how to =
include this aspx file, but I don't know how to write code for doing =
this purpose. Please suggest
Million Thanks.... more >>
How do I access a control from a class not other than WebForm1?
Posted by Richard Dixson at 5/18/2004 12:38:25 PM
I created a web form and dropped a table in there called resultsTable. This
also resulted in the following being added to the Webform1 class:
public System.Web.UI.WebControls.Table resultsTable;
I can easily add rows and columns via C# programming from the WebForm1
class. However I canno... more >>
Export to Excel
Posted by Ugo at 5/18/2004 12:33:25 PM
We are trying to export a datagrid to excel but we are using forms
authentication and when we change the ContentType =
"application/vnd.ms-excel". the page that is sent to excel is out login
page instead of the datagrid. For some reason our authentication cookie
must get deleted.
Any ideas.... more >>
JIT compile?
Posted by me NO[at]SPAM privacy.net at 5/18/2004 11:52:50 AM
When I deploy my web application (VB.NET), the response time kills me when
each module is accessed. It frequently throws me back to my error page, or
simply returns a user back to the login screen.
Is there any type of utility that I can run against the website that would
re-build these modul... more >>
Execute c# code from a string?
Posted by junk NO[at]SPAM fraxure.com at 5/18/2004 11:51:07 AM
I have a problem which most people may find weird but please stick
with me :) Is it possible to execute a c# application held in a
memory buffer (a string) without first saving it to disk? I need to
receive the code from a remote website over SSL and then execute it
from memory. Basically I'm... more >>
How does a java client consume .net DataSet datatype in a web service
Posted by msnews.microsoft.com at 5/18/2004 11:48:20 AM
Modify AppSettings during Install
Posted by Neelima Godugu at 5/18/2004 11:36:43 AM
Hi All,
Is there a way to modify AppSettings key values during installation of a web
app using a web setup project.
Thanks in advance.
Neelima
... more >>
Problem on ASP.Net migration from W2000 to W2003
Posted by hb at 5/18/2004 11:32:06 AM
Hi,
I move one off our Asp.Net web site from Windows 2000 Server to a Windows
2003 Server.
The way I did is copy whole site to the new server and create a new web site
pointed to the folder.
But I get a problem: the sorting function embedded in DataGrid doesn't work
on W2003 Server,
and I... more >>
Label Appears but not Button
Posted by mike at 5/18/2004 11:18:17 AM
Hi People,
I have an aspx file, extremely simple, it only contains a label and a
button. When I view the page in IE, only the label is visible, not the
button.
Its being served by IIS5 on W2k. The browser is IE6 on XP.
I'd be grateful for some help to get me over this first hurdle.
Tha... more >>
beginner: problem with operator "+"
Posted by me2 at 5/18/2004 11:01:04 AM
greetings
im having problem with adding to values in as
the sample code : <% = Request("Travelling") + Request("Photographs") %
Let say travelling is 3 and photographs is 4, i get the answer 34
Please guide. tq in advance
** anyhow the same code works fine for all the other operators like "... more >>
Using Visio COM in IE hosted .Net windows control
Posted by Velio Ivanov at 5/18/2004 10:36:43 AM
Hi there,
I have an windows .net UserControl which is hosting Visio COM inside.
The control have to be hosted in IE and in that way used on the clients'
machine.
So, my problem is that I got SecurityException because of control trying
to
reference the local Visio COM for which does... more >>
"The View State is invalid for this page and might be corrupted" can be caused by firewall
Posted by gbybee NO[at]SPAM hotmail.com at 5/18/2004 10:29:44 AM
There are a number of possible causes for viewstate errors, but in the
past month, I've seen four cases where the Checkpoint "Next
Generation" firewall caused this error. Here are the details:
This "intelligent" firewall can perform a cross-site scripting attack
check when you tell it there's... more >>
EditCommandButton in DataGrid
Posted by Steve_Black NO[at]SPAM EagleCCI.com at 5/18/2004 10:26:46 AM
Hello,
I am trying to add an EditCommand Button to a datagrid. If I
programmatically add the button, like this:
Dim eb As EditCommandColumn
eb = New EditCommandColumn
With eb
.ButtonType = ButtonColumnType.PushButton
.EditText = "Edit"
.UpdateText = "Update"
.CancelText =... more >>
Search within files on the server
Posted by Christina N at 5/18/2004 9:50:36 AM
Is it possible to search through documents (like .doc .xls. .txt files) for
specific content, on the server using asp.net (vb.net)?
Best ones,
Christina N
... more >>
RaisePostBackEvent Question
Posted by jdn at 5/18/2004 9:41:04 AM
In my page load, I have the following
DropDownList.Attributes.Add ("onblur", Page.GetPostBackEventReference(this, "Update"))
The page itself implements IPostBackEventHandler (I don't want a custom control) as
#region IPostBackEventHandler Member
public void RaisePostBackEvent(string eventArgu... more >>
Word 2003 and dotNet
Posted by neomat8 NO[at]SPAM hotmail.com at 5/18/2004 9:32:15 AM
Hi,
I'm trying to develop a dotNet application that generates a Word2003 document.
This is part of my code but it launches an exception,
If oApplication Is Nothing Then
oApplication = New Word.ApplicationClass
End If
oApplication.Visible = False
oAppl... more >>
HttpRequestValidationException
Posted by Jim Butler at 5/18/2004 9:00:16 AM
We are using a custom guid generator with encryption, the problem is
sometimes pages will blow up when accessing this value through a post or
get. The encryption mechanism will sometimes generate the "bad" characters
to create this error. We would like to continue to leave validateRequest
turn... more >>
find form height
Posted by Tammy at 5/18/2004 8:36:10 AM
Hi, is there any way to find the height of a webform (that is being loaded into an Iframe) from another webform? I'm not sure how to do that...
Thanks!... more >>
How to check to see if a file exist.
Posted by Dave at 5/18/2004 8:28:26 AM
How can i check to see if a link (file) exist while a web page is loading.
If the page doesn't exist - i want the hyperlink to go an error page telling
the user the link doesn't exist otherwise they will just go the link which
is a pdf file.
I'm using asp.net 2003.
thanks
Dave
... more >>
What does {0} do?
Posted by VB Programmer at 5/18/2004 7:52:10 AM
In VB.NET code examples I've repeatedly seen numbers between 2 curly braces,
such as {0}, {1}, etc...
Example:
Dim str As String = String.Format("Days Left : {0}. Current DataTime: {1:u}.
\n String: {2}, Float: {3}", val, DateTime.Now, name, num)
What does this mean?
... more >>
Opening a Connection
Posted by Jason MacKenzie at 5/18/2004 7:41:11 AM
I'm looking at this application I've written and it seems kind of silly how
many times I open and close a connection to the database.
Is there a best practice as far as this is concerned? If I open a connection
in the page load event is there any way I can be sure that its closed off?
Any th... more >>
a web server error
Posted by volkan karaboÄŸa at 5/18/2004 6:26:08 AM
when I wantto create a web application with visual basic an error accurred telling me tha
"visual studio .net has detected that the specified web server is not running ASP.NET version 1.1. you will be unabl
to run ASP:NET web applications or services"
can you tell me please what the problem is
... more >>
asp:datagrid style on mouseover mouseout
Posted by Michael M at 5/18/2004 4:41:17 AM
Hi
I am trying to add mouseover property to asp:datagrid in the asp .net page
My pag
So the output in HTML for a row should look like
<tr style="onmouseover=this.bgcolor=#ff0000; onmouseout=this.bgcolor=#00ff00;"
Binding is done in C# page
..aspx page code
<%@ Page language="c#" Codebeh... more >>
Error Saving Images: A generic error occurred in GDI+.
Posted by Tim::.. at 5/18/2004 3:11:02 AM
Hi can someone please tell me why I keep getting the following error and how I might fix it
...::ERROR::.
Exception Details: System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+
The line causing the problem is outputImage.Save, but I really don't understand why
.... more >>
How to make the Click event of a Button to deal with an asynchronous remote service
Posted by Henrik Dahl at 5/18/2004 1:27:08 AM
Issue:
I have a remote service executing notoriously asynchronously which I must be
able to use from my Compute_Click(...) event handler. The WebForm I have
contains only two controls: A Compute button and a Result textbox. I may
easily start the asynchronous execution in the Compute_Click eve... more >>
window.print() ??
Posted by (cmrchs NO[at]SPAM yahoo.com) at 5/18/2004 1:22:03 AM
Hi,
how can I execute a window.print() (in javascript)
on a ASP-button control but only when all validation-controls on the page pass the validation-test.
I tried using in the Page_Load() :
Button2.Attributes.Add("OnClick", "javascript:window.print();");
It works well ..... too well act... more >>
viewstate possible bug?
Posted by Perecli Manole at 5/18/2004 1:07:02 AM
I am trying to change a dropdown's value through code on a postback but the
framework seems to override my changes with the value posted. This only
happens when adding controls though code. Here is a code example of the
problem:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e ... more >>
Generic Session Timeout Trap?
Posted by David Stephen at 5/18/2004 12:11:06 AM
Has anyone got some generic code that identifies when a session has timed out in ASP.NE
If I add a session variable in Session_Start then when the session times out it readds the variable in Session_Start so I can not check this variable
I do not know if I will have a login type page where I can... more >>
|