all groups > asp.net > december 2003 > threads for tuesday december 9
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
New records in Datagrid to be inserted into SQL table. URGENT!
Posted by SK at 12/9/2003 11:41:05 PM
Hi
i m populating a datagrid with data from excel. is it possible to take the datatable in this dataset and create the same as a new table in SQl database. can some one gimme ideas to solve the same in different way
... more >>
Can't get stupid Authentication to work!!
Posted by Amil at 12/9/2003 10:08:28 PM
I must be missing something very simple. I've had a web site running for a
long time (anonymous access).
Web.config authentication is original (anyone gets in):
<authentication mode="Windows" />
<authorization>
<allow users="*" /> <!-- Allow all users -->
</authorization>
... more >>
Server Error in '/MyApp'
Posted by vstl at 12/9/2003 9:40:01 PM
I get an error while trying to run the application. For
example when i type the url
http://localhost/MyApplication/login.aspx and hit enter i
get an error message as given below. Kindly note that this
message is not complete.
"an application error occurred on the server.The current
cust... more >>
Coding Standard for C#, ASP.net
Posted by Ramesh at 12/9/2003 9:38:44 PM
hi All,
Is there is any site which is explaining the coding
standard for C# & ASP.net in Microsoft site.
I am especially looking for
1.variable declaration &
2. naming convention for ASP.net controls (like Textbox,
ComboBox and etc.,)
I have seen following link in the microsoft ... more >>
DataTable into a new SQL table
Posted by Kumar S at 12/9/2003 9:01:05 PM
The requirement is to transfer data from Excel to SQL tables using ASP.Net for user interface. I have populated the excel data into a dataTable of a DataSet using ADO.Net. Now, I would like to know a better way to insert this data into a new SQL table. Since the Excel has more than 30,000 rows with ... more >>
Can Calendar Control days be hyperlinks?
Posted by Bruce W..1 at 12/9/2003 8:31:58 PM
When someone clicks on a day in my Calendar control I want to postback
to the same page but with information in a querystring, different for
each day. Rather than posting back twice by using its SelectionChanged
event I want to do it the first time.
I've tried adding links and javascript in t... more >>
Download File
Posted by Skwish at 12/9/2003 8:19:02 PM
Hi,
I have been using
Dim filename As String
Dim filepath As String
filename = "Steve.txt"
filepath = Server.MapPath(".") & "\" & filename
Response.Clear()
Response.ContentType = "application/octet-stream"
Response.AddHeader("Content-Disposition", "attachment; filename=" &
filename )
... more >>
'unable to start debugger' message
Posted by wh at 12/9/2003 8:10:55 PM
I've had this problem before and have managed to sort it out before though
this
time I'm quite baffled. I've spent the last 3 to 4 hours getting quite
stressed and would appreciate some assistance. I've searched the google
newsgroups and it appears that other have experienced the same problem
t... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
edit stored procedures in vs.net
Posted by Max at 12/9/2003 7:57:46 PM
I thought in server explorer, I could add or edit stored procedures, but all
I can do is refresh and run...
-Max
... more >>
Frameset prevent Asp.net authentication?
Posted by Jerron at 12/9/2003 7:22:08 PM
I'm developing a web application embeded into my customer's existent web
site. they two sites are on hosted in different computers. the customers's
web site uses frameset. by clicking a link in the menu bar frame, the user
will see my application.
the strange thing happens here: if I use the "... more >>
IIS Log
Posted by Vinod at 12/9/2003 6:09:09 PM
Hi Team,
Do any one can help me to write to IIS Log. I want to write to customs msgs
in the IIS Log file.
Thanks in advance
-Vinod
... more >>
n-tier tutorial
Posted by rua17 at 12/9/2003 5:53:14 PM
Anyone have a good n-tier tutorial or book?
thanks
... more >>
IIS 6.0 Logging
Posted by Ben Rush at 12/9/2003 5:44:10 PM
I have a bunch of IIS 6.0 log files that I would like to read through
and parse, but I would like to understand their formats better. I discovered
the document
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnw2kmag01/html/EventLogging.asp,
but was looking for something mor... more >>
Events generation and handling within a server controls.
Posted by luca at 12/9/2003 5:44:01 PM
I'm trying to build a Server Control, it's a calendar to manage sellers
appointments (don't answer me to use and custumize Calendar Control because
unluckily it's not possible for this specific project).
A piece of my control's interface is composed of a table and in each of its
cells are stored... more >>
Sharing ASP session variables with ASP.Net using HTTPWebRequest
Posted by Hardik Shah at 12/9/2003 5:31:35 PM
Hi,
I am calling an ASP.Net page from an ASP classic application but need
the .Net page to have access to ASP classic's session variables. I am
using HTTPWebRequest to call ASP classic page which could then return
the session values. But the values are always blank. If I do a
Response.Redirec... more >>
drop authentication
Posted by JZink at 12/9/2003 5:14:28 PM
I have an app with basic authentication turned on. I want
to have a logout button. What code do I need to supply in
my asp.net to logoff the user so the next time he/she hits
my protected page he/she will be prompted for id/pwd.
..
... more >>
How to use C# class in VB project
Posted by Michal Valent at 12/9/2003 4:42:23 PM
Hello,
do anybody know some VB asp.net project which is using C# class inside it ?
I tried it, but C# class is not visible in VB project founded namespace.
Thank you
miso
... more >>
conditional items in a datalist
Posted by Joe at 12/9/2003 4:40:58 PM
Hey folks,
Back for more help.
I have a datalist that I want to output formatted addresses to so I want
something like:
___________________________________________
Joe Bloggs,
Address Line 1,
Address Line 2,
Address Line 3.
City,
County,
Country.
___________________________________... more >>
Disabling auto-populating of form elements
Posted by jgalvin NO[at]SPAM providentfunding.com at 12/9/2003 4:17:07 PM
I would like to disable the auto-populating feature (remembers form
element text between post-backs) when creating a .NET form.
I have succeeded in disabling auto-populate by creating my controls
during PreRender, but that becomes highly cumbersome. Is there a way
to explicitly turn off auto-... more >>
Event On Form From Control Event
Posted by Dave Wurtz at 12/9/2003 4:05:25 PM
All,
Is there an event on the Form that will get fired when the text in another
control (i.e. textbox) is changed?
Thanks in advance!
Dave
... more >>
Setting events for button within asp:table
Posted by Kevin at 12/9/2003 3:55:29 PM
I am just learning asp.net and ran into a problem that I have not been able
to resolve. I have a web form with an html table that houses an asp:label,
asp:textbox and asp:button within. I had the click event of the asp:button
working.
I then decided to drop an asp:table on the form and then ... more >>
OT: CSS layout problem
Posted by Colin Young at 12/9/2003 3:49:09 PM
Not strictly an ASP.Net problem (but I am using it to generate the page),
but I'm having a bit of a problem with the following page:
http://www.gordonbrothers.com/gbg2 (the stylesheet is
http://www.gordonbrothers.com/gbg2/internet.css).
If the navigation bar (the red horizontal bar about 1/4 d... more >>
Debugging VB6 DLLs from ASP.NET
Posted by Mike Wilmot at 12/9/2003 3:38:53 PM
Debugging VS6 DLLs from VS6 rocked. The only article I found to do
this from VS.NET is:
http://support.microsoft.com/default.aspx?scid=kb;en-us;811658&Product=vsnet
Is this as good as it gets????
Cheers-
Mike Wilmot... more >>
Partially Disable DataList ViewState
Posted by homaneag NO[at]SPAM yahoo.com at 12/9/2003 3:27:25 PM
Hi,
I have a datalist with linkbuttons embedded within. In order for the
onClick event to fire, I need to have EnableViewState = true. But
since there are quite a lot of data, simply enable ViewState will tax
the page a lot. Is there a way to specifically disable the data
portion of the ViewS... more >>
How close opening window?
Posted by mg at 12/9/2003 3:24:02 PM
Once opening WebForm2 from WebForm1 using
Response.Write("<script language='javascript'>window.open
('WebForm2.aspx','two','menubar=no');</script>");
how can I [programmatically] close WebForm1?... more >>
newgroups plugin to website
Posted by Hermit Dave at 12/9/2003 3:15:34 PM
Hi,
Just a thought. How would one go about integrating newgroups such are this
one into your website where users can post a reply.
I havent started looking into it yet. and it might be pretty simple thing.
Just lemme know your thoughts,
Regards,
Hermit Dave
... more >>
Error when add a new row using footer of datagrid that contain asterisk (')
Posted by Robert M at 12/9/2003 3:02:43 PM
Hello,
I am having a problem when I enter a new row using data grid footer and the
data contains asterisk ('). I can use replace function, and it will not
crash the program but it shows 2 asterisk (' '). Actually it does not happen
in all footers and I can not find what is the difference, unle... more >>
Process Starter
Posted by L. L. at 12/9/2003 2:26:59 PM
Hi All,
I know using Process class you can get the information of the current
processes
running on the current computer. Some processes are started by the user. And
some processes are started by other processes. My question is how do I know
the starter of a process? If process A is started by... more >>
smartnavigation problem
Posted by Enrico Palazo at 12/9/2003 2:19:01 PM
Hi,
smartnavigation works great locally buts fails completly after being
uploaded to the isp's server.
Where could the problem be?
Thanks!!
... more >>
MustOverride Event
Posted by Dave Wurtz at 12/9/2003 2:04:09 PM
All,
Is there a way to force a derived class to contain an event. I have done
this with methods (i.e. Protected MustOverride Sub Test), but can I do
something similar with an event (Protected MustOverride Event MyEvent
doesn't work for obvious reasons)?
Thanks in advance.
Dave
... more >>
Page Scraping of Authenticated pages with CredentialCache.DefaultCredentials
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 12/9/2003 1:47:06 PM
According to miscellaneous posts, this should work to the
effect of helping overcome FormsAuthentication when the
user is already logged in. In my case, the page that gets
scraped is the forms login page :?(.
Somehow the default credentials do not work on the new
WebRequest object.
An... more >>
Best way to keep a hidden value?
Posted by Bruce W..1 at 12/9/2003 1:46:12 PM
What's the best way to keep a hidden value? It doesn't need encryption or any protection.
I realize that I could use a Label control's viewstate, and just make it not visible, but
that doesn't seem efficient. Or I could use a session variable, or a cookie...
To simply hide a simple value in... more >>
Large Project Examples
Posted by Jeff Tolman at 12/9/2003 1:36:48 PM
Hello to All!
Are there any examples of how to organize a large ASP.NET application?
Thanks much!
Jeff Tolman
... more >>
code for Paging
Posted by Patriot at 12/9/2003 1:35:04 PM
I have setup my web app and all works well but I am trying to make it look a
little nicer. Currently I have my app set to retrieve data from my SQL2000
server.
I have setup my data grid and have even enabled AllowPaging but I can not
find anywhere in my books that will point me in the right d... more >>
Best Copy Protection Methods
Posted by Max at 12/9/2003 1:27:36 PM
I'm trying to figure out the best way I can sell and deploy my web
application with copy protection. Any articles or insight on this subject?
I was thinking some sort of activation thru a web service on my server, or
possibly a call to it each month. I could also hardcode their domain name(s)
... more >>
datetime
Posted by BRIAN at 12/9/2003 1:16:44 PM
I am tyrying to use the System.IO.File.GetCreationTime
name space to get the creation date of a file. That's no
problem.
I want to delete a file if it is older than two weeks.
For Each File1 In Directory.GetFiles("c:\Test")
If CreationDate < (System.DateTime.Now( ) - 14) Then
Fi... more >>
HttpContext.Current.Request.UserLanguages
Posted by murphy NO[at]SPAM murphysw.com at 12/9/2003 1:15:33 PM
In a barebones website with one page, checking
HttpContext.Current.Request.UserLanguages.Length in Page_Load of an
ASPX page in the VS IDE in codebehind shows a value of 1. Then when I
refresh the page with F5 from the browser it goes to the expected 16
-- the number of languages I have defined... more >>
Help: Copy Project Error
Posted by VB Programmer at 12/9/2003 12:47:39 PM
When I try to copy a project to our new web server I get this error:
An Error occurred while copying the project '.....'. Visual Studio .NET has
detected that the specified Web server is not running ASP.NET version 1.1.
You will be unable to run ASP.NET Web applications or services.
I went ... more >>
Culture
Posted by JezB at 12/9/2003 11:39:34 AM
How do I programatically set the culture at session level ?
... more >>
Help Please, How to Include .JS file into aspx page.
Posted by SSW at 12/9/2003 11:37:28 AM
Hi!
I want to include .JS(JavaScript file) to my aspx file.
I used the following tag.
<script language="javascript" src="Utility.js" type="text/javascript">
After compling my page and executed in Browser, I get Error as below
unable to find script library
'/aspnet_client/system_web/1_0_3... more >>
Required Field Validator
Posted by Brent Burkart at 12/9/2003 11:07:25 AM
I have a page with a couple of Required Field Validators. However, I have a
button which displays a popup with some information. I want this button to
be able to work without having the Required Field Validators fire. I can't
figure out how to do that. Is there a better way of validating the ... more >>
User conrol reading Request.Form
Posted by George Ter-Saakov at 12/9/2003 10:43:00 AM
I have a user control which embeds regular HTML input controls (not set as
runat="server")
What event it should be subscribed to read value of HTML controls?
Is it on Load event?
Thanks.
George.
... more >>
SmartNavigation + AutoPostBack
Posted by SLE at 12/9/2003 10:38:36 AM
A web user control exposes a RadioButtonList (with AutoPostBack = true)
called "Question". This control also has an embedded RequiredFieldValidator
control.
1. Main ASPX page is populated with several "Questions".
2. Within the code of the main page, there is a SelectedIndexChanged handler
fo... more >>
problem formatting URL in script
Posted by neverstill at 12/9/2003 10:30:34 AM
hi-
I have <a> tags in my DataList. For the href property, I want to do
something like this:
<a href='~/Default.aspx?show=Support&disp=Faq&p=<%#
DataBinder.Eval(Container.DataItem, "name")%>' runat=server>some link</a>
Looks pretty straight forward, but when I add the runat=server property... more >>
ASP.NET domain hosting with database access for a good price?
Posted by Preston Crawford at 12/9/2003 10:20:30 AM
I'm looking to learn ASP.NET better and thinking about helping my church
put together a website in order to do this. They need the help, I'd like
the training, so I'm thinking of going this route to solve their needs.
I'm wondering, though, if there are any hosts out there that do domain
hosting... more >>
How to call Calendar DayRender event?
Posted by Bruce W..1 at 12/9/2003 10:04:15 AM
I want to change the display style of certain days in my Calendar control. This is done
with the DayRender event.
So I put this in the codebehind:
private void Calendar1_DayRender (object sender,
System.Web.UI.WebControls.DayRenderEventArgs e)
{
// Display weekend dates in gree... more >>
Can you install CDO seperatly?
Posted by lamloom at 12/9/2003 10:02:58 AM
I am using asp and would like to send email using cdo.
The script I have is not working on my server. I'm
thinking cdo is either not properly installed or not
installed at all.
Thanks!... more >>
Multiple TableCell.Conrols.Add(control) - How <BR> between them?
Posted by Craig at 12/9/2003 9:50:06 AM
I'm adding several controls to a cell, but want them all to have a <BR>
between them. What's the easiest way?
I'm doing something like this:
HyperLink link = new Hyperlink();
//I setup the link target, navigateurl, etc here
Label lblDescription = new Label();
//I setup the lblDescription.... more >>
How to set permission to write to an xml file
Posted by JRV at 12/9/2003 9:24:22 AM
I'm using the webmatrix tutorial, and when the downloaded xmldatagrid
control tries to write to the xml file I created it gives me an access
denied error. I've tried to set the permission on the file and the
directory through properties, I've tried sharing the directory. It's in a
virtual web... more >>
Roles
Posted by Mark at 12/9/2003 9:00:29 AM
Is there a way in Windows Authentication to list ALL the domain roles that a
user is a part of? The syntax below only allows you to check if the user is
in a single specified role ...
User.IsInRole("whatever").ToString()
Thanks in advance!
Mark
... more >>
installation
Posted by ravikumar at 12/9/2003 8:59:35 AM
..net frame work installation is failed while installing
from the disk... more >>
Open WebForm to size from code behind
Posted by mg at 12/9/2003 8:41:02 AM
window.open (URLTarget, windowName,
height=720,width=975,resizable=yes, ...
lets me open a new WebForm with a specified size using
JavaScript.
Is there a way of doing this from code behind; something
like
if (rbX.Checked == true)
{
Server.Transfer("Page2.aspx" ...
}
where I ca... more >>
Page Timeouts - HELP?
Posted by John Carnahan at 12/9/2003 8:29:51 AM
What causes a page timeout (page not found) on an IP?
Works fine sometimes, doesn't others. i.e respnsive sometimes, times-out
other time.
Is this the IP or something in code... i.e setting timeout values?
Same code each time... i.e. click a button to bring up a page and it
response in a second... more >>
Using the POST method with HttpWebRequest
Posted by Tony at 12/9/2003 7:49:23 AM
Hi all,
I can use the HttpWebRequest object to scrape a page with
a GET. However, if I need to post some data do a page,
how do I do that? I can set the method property
to "POST", but then how do I tell it what data to send
(ie "zip=12345&month=5")?
Thanks... more >>
closing browser window from server code
Posted by DM at 12/9/2003 7:32:38 AM
Is there any way, using a server control, to execute a routine (say, add
record to database) and then close the browser window. I'm having a
difficult time doing this using a master\detail model where dialog apsx page
is opened when datagrid item on master page is clicked. Would like to be
abl... more >>
Shell function
Posted by Brent Hoskisson at 12/9/2003 6:57:55 AM
Has anyone used the shell function in ASP.NET? I am
porting an app from VB.NET to ASP.NET and that is the only
line I'm hung up on. I know that it tries to work because
the result is a blank file, but when I run the bat file
(which the ASP program creates) manually, the correct
results are... more >>
IsPostBack always returns False
Posted by feng at 12/9/2003 6:42:43 AM
I am getting a problem when use the IsPostBack to
determine weither this is a post back. Every time the page
get hit, no matter if it is the first time or post back,
the IsPostBack property always returns False.
Can someone tell me what's going on?
Thanks
... more >>
Response.Write and Response.Redirect
Posted by masoodadnan NO[at]SPAM hotmail.com at 12/9/2003 6:34:31 AM
On my ASP page, when I click a button, I want to do three things:
1. Check for some values.
2. Open a new window and pass some values as query string.
3. Redirect to some other page
Here is the code:
If (sServiceCenter = "*ALL") Then
sServiceCenter = "%"
End If
Dim scriptStrin... more >>
How to set column width in a table object ?
Posted by BASYS at 12/9/2003 5:51:48 AM
I am using the Table object in the WebControls library
and would like to set column widht properties. Since
there is no col object, how do I accomplish that?
Thanks in advance.... more >>
Path error when enabling sessionstate cookieless = true
Posted by pbk2301m NO[at]SPAM pbk.dk at 12/9/2003 3:34:35 AM
Hey,
I have a problem on my server. WHen I activate cookieless sessionstate
I can only execute aspx pages. When the server tries to find an image
in a subfolder eg. http://mysite/(gklffgfgdsg85t6583)/image/top.gif
its not found. The same goes for javascripts ect. if I remove the
sessionid (ht... more >>
Coding standard
Posted by Ramesh at 12/9/2003 1:45:42 AM
hi All,
I am looking for coding statndards for the following:
C#
ASP.net
SQL Server 2000
Anybody knows about any good site which explain in details.
Thanks,
Ramesh... more >>
|