all groups > asp.net > december 2004 > threads for wednesday december 22
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
Page loads slowly
Posted by hoz at 12/22/2004 11:36:35 PM
Hi ,
I have a problem that i cant understand . Let me explain a bit : i am trying
to develop an e-commerce website with using mssql and c# .
i use three tier app development.
1 - Sql procedures : to retrieve informaion from db (mssql)
2 - Classes that encaplusates db transactions ( calling proc... more >>
Table Border/Resize ?
Posted by WJ at 12/22/2004 11:22:22 PM
I have an Asp.Net form that hosts a "static form", a health history form,
this form is complex because it has uneven columns on different lines.
Example 1st line has 3 columns, 2nd line has 2 and 3rd line has 5. The form
and its colums/box must have black border around them. I am using Html Ta... more >>
ASP.net assembly locating
Posted by dugan_zhang NO[at]SPAM hotmail.com at 12/22/2004 10:59:57 PM
Previously I was building websites using asp. I have a folder name
"projects", under the projects folder, I have number of subfolders,
each subfolder represent a website I'm building. Inside each
subfolder, I would have varies files for that website such as asp,
images.
This works fine for as... more >>
Session_Start infinite loop problem
Posted by Mehdi at 12/22/2004 10:42:23 PM
Hi,
In order to keep all my properties and objects that I use in the session in
one place, I have created a class "SessionCore.cs" and on Session_Start I
create a new instance if it as follow:
Session["Core"] = new SessionCore(Session.SessionID);
The somewhere within the application f... more >>
server control id's
Posted by Neil Stevens at 12/22/2004 10:32:47 PM
Hi,
Merry Christmas to you all.
I have a problem with server controls, i am writing a C# ASP.NET web project
and i am creating custom server controls for some of the more common
element. One example is a NavigationMenu control or a Login control.
The problem is that when the page render... more >>
Static class in an asp.net application.
Posted by craigkenisston NO[at]SPAM hotmail.com at 12/22/2004 7:21:36 PM
Hi,
I'm starting my first asp.net application and I decided to put the
users preferences in a static class.
I thought, the static class would be just seen by current session, but
it seems it don't work like that (!?).
If I change some preference and I open a second browser session, even
an... more >>
Param dataGrid Question
Posted by Patrick.O.Ige at 12/22/2004 7:07:02 PM
Why does this Sub program work well with ASP.NET Web MAtrix and gives
ERROR when compiled in VS.NET 2003 :-
"Prepared statement '(@State nvarchar(2))select * from Authors where
state = @State' expects parameter @State, which was not supplied."
The error comes at line :-
MyCommand.SelectComma... more >>
how to get listbox value and text as well?
Posted by Asha at 12/22/2004 6:31:02 PM
hello, my list box is generated by javascript and in my codebehing if i do a
Request.Form["lstbox"] i'll get a string to the listbox value e.g. "1,2,3,4,"
how can i get the text for the listbox as well?
any help would be greatly appriciated!... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How do i create an assembly named "SimpleControlSamplesVB"?
Posted by John Blair at 12/22/2004 6:17:35 PM
hi,I have the following code which gives an error in VB.Net when i run it
that it cant find the assembly SimpleControlSamplesVB?
any ideas how to resolve this error?
Thanks for any help! J.
Parser Error Description: An
error occurred during the parsing of a resource required to service th... more >>
Merry XMas
Posted by WJ at 12/22/2004 5:35:16 PM
..Net Programmers! Please have a very Merry Christmas 2004 and a Happy New
Year !
We all work very very hard all year long, we deserve a little break and...
please click here to join the fun bunch:
http://web.icq.com/shockwave/0,,4845,00.swf
WARNING: Donot attempt to convert this orchest... more >>
Can't select a row in DataGrid control
Posted by Zachary Hilbun at 12/22/2004 4:58:00 PM
I'm using a DataGrid control in a web form. I can display it using binding
but when I click on any of the items there is no feedback that that row has
been selected. I changed SelectedItemStyle but the changes do not appear
when a row is clicked. What do I need to do to get it to do selecti... more >>
Advice on best approach
Posted by Manny at 12/22/2004 4:33:02 PM
Hello I'm fairly new to ASP.NET and need your advice,
I need to display monthly/weekly table information on the same page. The
user should be able to select first from a month (from a month link inside
the table) and then the weekly information should appear on another table on
the same page.... more >>
Session("counter") vs. ViewState("counter")...a newbie question
Posted by The Eeediot at 12/22/2004 4:09:46 PM
Okay, I'm going to take one more kick at this dead horse to see if I =
understand this stuff.
=B7 Session("counter") store this information on the web server (i.e. =
server side) and can be accessed by any pages within the web =
application.
=B7 ViewState("counter") stores this information ... more >>
How to capture SelectedIndexchanged event of dropdownlist in Datagrid
Posted by Uma Shanmugam via .NET 247 at 12/22/2004 3:56:41 PM
(Type your message here)
--------------------------------
From: Uma Shanmugam
Everyone,
I have a datagrid and it has a dropdownlist in the Edit mode=2EI=
want to capture the selectedIndexChanged event of the=
dropdownlist=2E I tried ItemCommand event and then realised that=
it is fi... more >>
Problems with User Controls in IE from the GAC
Posted by Colin Orr via .NET 247 at 12/22/2004 3:55:35 PM
I'm trying to write a WinForms User Control for Internet Explorer that is accessed from the global assembly cache (GAC) on the server.
I've followed the KB article 839300 (http://support.microsoft.com/default.aspx?scid=kb;en-us;839300).
This has got me as far as hosting a strongly named contro... more >>
debug options with SOAP call problems
Posted by Antoine at 12/22/2004 3:29:17 PM
Instead of getting SOAP header errors, I'd like to get detailed.
Aside from using file.open and creating a debug file, is there any reason it
won't send
a trace.write line ? I can otherwise send them ok but within the catch loop,
it seems to send the same sort of basic truncated message as wha... more >>
Check if Outlook is installed
Posted by chuckdfoster at 12/22/2004 2:34:45 PM
Is there a way to check if MS Outlook is installed on a client PC from
ASP.NET?
... more >>
Setting CSSClass for Datagrid header's for sortable fields
Posted by Diffident at 12/22/2004 2:33:04 PM
Hello All,
I would like to set css class for datagrid's sortable columns. I cannot do
it in the datagrid's header's CSSClass.
Datagrid's sortable column headings are generated as <a> tags for which I
would like to have a css class. How can I accomplish?
Thanks
... more >>
help with datagrid
Posted by Alejandro Penate-Diaz at 12/22/2004 2:29:20 PM
I have a datagrid inside a table and I want to fix both (table and databrid)
width to 700, but when the content of datagrid is too large the width
increases automatically sometimes and sometimes not. Please need help with
that.
Thanks,
Alejandro.
... more >>
What relationship between cookie and ticket expiration?
Posted by Bill Borg at 12/22/2004 2:29:02 PM
Hello all,
I am working on forms authentication and trying to understand: what's the
relationship between the cookie expiration and the ticket expiration? I
create a cookie and I add an encrypted ticket to it. Both of these have an
expiration date, but I'm not seeing how to use them. Does i... more >>
I/O and Security Considerations
Posted by Jerry at 12/22/2004 1:49:18 PM
My web app needs to write text and .jpg/.gif files to disk (e.g., the user
can upload photos which are then made available for viewing in the app's
pages). The folder(s) to which the files are written can be placed below the
site root (i.e., "in" the site), or above the site root.
The hosting ... more >>
Get index of arraylist classed object
Posted by Rodusa at 12/22/2004 12:59:29 PM
How can I update the rank object inside the arraylist based on its
index?
ContainerKeywords k = new ContainerKeywords();
int rank = 0;
if (ArItems.Contains(sItem)==false) // if did not find
{
k.item_id = sItem.ToString();
k.rank = rank;
ArItems.Add(k);
}else{ // if found
rank++
// I w... more >>
Q: number in the textbox
Posted by JIM.H. at 12/22/2004 12:51:03 PM
How can I grantee that user enter only number in the textbox. If possible
accept ","and "." in the number. Can I do this?... more >>
asp:Hyperlink Question
Posted by MrMike at 12/22/2004 12:45:02 PM
I have the following hyperlink webcontrol. The problem is that I can't
figure out how to pass the webform's Request.Querystring("id") param into the
NavigateURL as shown below. As it is currently formatted the hyperlink
appears but I can't click on it. Could someone please let me know how t... more >>
Problems with application configuration (web.config)
Posted by Chris_24 at 12/22/2004 11:49:02 AM
To all,
I am experiencing difficulties with an asp.net web application and its
web.config file. No matter what I try I keep getting the following error:
Server Error in '/action' Application.
--------------------------------------------------------------------------------
Runtime Error
... more >>
ASP.NET Call Class Function
Posted by Bonato Pierantonio at 12/22/2004 11:48:48 AM
Hi All,
It is possible inside a SCRIPT tag in the HTML page to call a SUB or
FUNCTION write in the codebehind ?
Example in the HTML
<SCRIPT Language=vbscript>
sub mySub
call mySecondSub
end sub
</SCRIPT>
mySecondSub reside in mypage.vb (codebehind)
Thanks
... more >>
Virtual directory not configured as an application
Posted by Paul at 12/22/2004 10:51:02 AM
Hi I have a web application and for some reason on only one of the links I
get a config error on the line in the web config file,<authentication
mode="Windows" />
This error can be caused by a virtual directory not being configured as an
application in IIS.
The link worked before so not sur... more >>
Display XML
Posted by Steve Lutz at 12/22/2004 10:46:36 AM
I would like to display XML on my website, I want it to look/behave like an
XML document looks when loaded into IE directly. I was hoping that I could
find an XSL document somewhere on my computer that is the same one IE uses
when displaying XML, but it doesn't look like there is one :-(
I ca... more >>
asp:textbox error
Posted by Jayme Pechan at 12/22/2004 10:44:53 AM
If I try to put some invalid input (<TEST>) into a asp:textbox and attempt
to submit the data, I get a server error response:
Server Error in '/XTAPIADMIN' Application.
--------------------------------------------------------------------------------
Runtime Error
I really don't like this e... more >>
NameValueCollection Serialization Deserialization
Posted by Mike Logan at 12/22/2004 10:43:10 AM
We are trying to serialize the Request.ServerVariables collection
(NameValueCollection) to an XML formatted string, to insert into a database.
The problem we are running into is that most of the example that we find
discuss writing to a file. Does anyone have a simple function to do this?
... more >>
Newbie question: Can a TextBox control be bound to a DataSource?
Posted by Ray Stevens at 12/22/2004 10:39:10 AM
Binding do a dropdown, datagrid, etc. is doable, but I don't see a way to
bind a textbox control to a a DataSet Datatable column.
... more >>
Visual Web Developer 2005 Classes in Code Folder Problem
Posted by tonelab at 12/22/2004 10:03:03 AM
I have an aspx page that does not have a separate source for the VB - it is
on top in between the <script> tags. I use the following statement
Dim oComLib as New ComLib
To reference a class called ComLib in a source member called ComLib.vb that
is found in the /Code folder of my project. ... more >>
Web forms v/s xml xsl
Posted by Nilay Shah at 12/22/2004 9:51:05 AM
Hi,
I am in the design process of web application. And during this I have a
question as which should be used and in which cases? Should you go for Web
forms utilizing all the features of asp.net server controls or should you
create presentation layer using XML and XSL and not use many of th... more >>
Binding to images stored in database...
Posted by Charlie at 12/22/2004 9:29:20 AM
Hi:
When storing images (.gif, .jpg) in binary fields in SQL Server, how do I
bind them to asp.net image control without first writing them to a file and
attaching to URL property? For example, if I'm using a DataList that's
binds to a table in a database, and one column of table is an ima... more >>
Dyanmically calling a function in usercontrol
Posted by phl at 12/22/2004 9:10:05 AM
hi,
I have a number of usercontrols which inherits a interface. the
function in this interface is used to provide information about the
usercontrol. I would like to call this function say when a button is
clicked.
I can do this by lot of hardcoding, as I have the usercontrol names
stored a... more >>
Unable to handle events of controls created at run time.
Posted by Lalit at 12/22/2004 8:31:02 AM
Hi,
My application has two methods which creates buttons at runtime. In one
method I am able to handle the events of the buttons created at run time, but
in other I am not.
The code structure is as follows:
page_load
{
...Do something
CreateFirstSetOfButtons()
}
private Crea... more >>
SmtpMail
Posted by MrMike at 12/22/2004 8:19:03 AM
Hi. I have the following code which sends an e-mail from my asp.net
application. This works fine on my localhost, but when I run this from the
server I get an "Access Denied" Message. What do I need to do to run this
successfully from my server? Thanks.
Private Sub btnSend_Click(ByV... more >>
ASP.NET and recomplie
Posted by msuk at 12/22/2004 8:01:02 AM
All,
I have a ASP.NET/C# website that is currently running in production and I
have made some changes to the .aspx .cs and .ascx. Now if I was to simply
copy the updated files to the webserver would they get automatically
re-compiled or do I need to perform a build first?
I remember rea... more >>
upload file to Oracle DB
Posted by Mike at 12/22/2004 7:57:10 AM
has anyone uploaded a document such as word to an Oracle table? if so where
can i find an example of this being done in VB.NET... more >>
Date format
Posted by huzz at 12/22/2004 7:21:08 AM
How to i bring the date in (dd/mm/yyyy) format from the database?
Here is what am doing... but having problem converting the string into the
short date (dd/mm/yyyy)
string strDateReturned =
((DbDataRecord)e.Item.DataItem)["DateReturned"].ToString();
many thanks... more >>
page validation help
Posted by ACaunter at 12/22/2004 7:11:08 AM
Hi all,
I needed to have a validation to prevent someone from leaving the page if
they added anything to it. I have about 10 imagebuttons at the top of the
page for menu selections, and i wanted to have a warningmessage pop up if
they select any of those without clicking the save button fir... more >>
Specified cast is not valid exception
Posted by PK9 at 12/22/2004 6:53:11 AM
I am looking for assistance in pinpointing the cause of the following
exception. I am getting a "Specified Cast is not valid" exception on my
page. I am trying to populate a datagrid. One of my columns is a template
column where I'd like to evaluate the data brought back from the db and
p... more >>
Events with no arguments?
Posted by 2obvious at 12/22/2004 6:32:17 AM
I'm trying to wrap my mind around writing reusable event handlers.
Say I have a textbox control. In the OnTextChanged event handler of
this textbox control, I want to call a subroutine that does something
to another control (a label control, in this pseudo example):
<asp:textBox id="txt1" O... more >>
Passing Impersonation to new Thread
Posted by constantz NO[at]SPAM gmail.com at 12/22/2004 4:11:46 AM
All,
I am trying to run my BO in a separate thread, so that I can give the
user a visual of the status of my process in a asp.net page/site. All
works fine, IF the ASPNET user has admin rights, (in order to do the
tasks in the BO). Now, I impersonate the admin user in the web.config
after rem... more >>
Regular Expressions - Replace
Posted by Hemant at 12/22/2004 3:09:04 AM
Hi
I want to replace a word using Regular Expression for that i am using below
code
strResult = System.Text.RegularExpressions.Regex.Replace(strInput,
txtSearch.Text.ToString().Trim(), "<b>" + txtSearch.Text.ToString().Trim() +
"</b>", System.Text.RegularExpressions.RegexOptions.IgnoreCa... more >>
Read/Write to folder *above* site root
Posted by Kenny at 12/22/2004 1:13:16 AM
If MapPath is the way to go, then how can I reference the desired folder as
relative to the current site's root (I don't want to hard-code the path from
the C:\root folder). FWIW the logic that does the read/writing is in a
middle tier component (not in a code-behind module).
Suppose I need to... more >>
Datagrid DropdownList in edit mode???
Posted by Tim::.. at 12/22/2004 1:05:02 AM
Can someone tell me how I get the correct selected office in my drop down
list when I enter edit mode. At the moment it just defaults to the office at
the top of the drop down list rather than picking the office that has
actually been selected previously!
I hope this is clear...
Here is ... more >>
insert data with quotation symbol in asp.net with C#
Posted by deepakk NO[at]SPAM mzi-dot-net.no-spam.invalid at 12/22/2004 12:55:31 AM
Hi everyone
i m new here. I have made an web application where user enter message
and clicks on the SUBMIT button. Clickin on the SUBMIT button will
execute a INSERT statement.
Program works fine but if a user enters data with quotation marks in
the text box i.e. "welcome to joe's world.",... more >>
File extension when downloading
Posted by Erik Cruz at 12/22/2004 12:37:18 AM
Hi.
My application has a page where users can click on some links to download
documents. When testing the page I noticed an strange behaviour. One of the
links points to a .pps file. When I click this link, the download window
shows me the file name with a .ppt extension instead of the orig... more >>
Corrputed viewstate from a dynamically generated form object
Posted by 234 at 12/22/2004 12:32:05 AM
I'm playing around with page inheritence and I'm to the point now where I
want to create a form object on a derived page. Here's a truncated version
of my 'base' page from which all/most pages in the application would be
derived:
-------------------------
Public Class clsBasePage
Inher... more >>
loop on production server
Posted by Greg Chu at 12/22/2004 12:31:18 AM
I have a project runing fine in release mode on the development box. But
when move to production server box. It runs a loop repeating to disply error
page and did not display it successfully which I can see on the status bar
on IE.
There is no clue where the problem is. Any suggestions of h... more >>
|