all groups > asp.net > february 2007 > threads for tuesday february 20
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
InstrRev (VB) --> C# ???
Posted by Andrew at 2/20/2007 11:57:27 PM
One year ago I have programmed in VB. There was a function named
"InStrRev".
In C# I don't have found a similar function. Can anybody help me in
this question.
Thanks a lot
regards
andrew
... more >>
inheritance problem
Posted by goldie11 at 2/20/2007 11:41:27 PM
Hi,
I have two classes - A,B that inherit from an abstract class C.
The problem is that I need a global field which has always the same
value for the two classes. If I put the field in class C -
As I understand inheritance - both classes will recognize the field
but will have their own values... more >>
Localization problem
Posted by Aleyna[] at 2/20/2007 11:05:01 PM
Hi,
I've just moved to my new server which is located at USA(meaning, default
language is Englsh) however I saw that Turkish characters do not seem
properly.
I viewed the uploaded files via remote desktop and saw that Turkish
characters seem corrupted but after downloading and opening it o... more >>
Refresh gridview from another window
Posted by chris at 2/20/2007 11:01:00 PM
My form includes a gridview with existing clients.
I use the code below for opening a new window for adding a new client or
updating an existing one.
If (Not Page.ClientScript.IsStartupScriptRegistered(Me.GetType(),
"Client")) Then
Page.ClientScript.RegisterStartupScript... more >>
How to Change PostBackUrl from Client
Posted by Rajiv Das at 2/20/2007 9:48:08 PM
I want to postback to the Search.aspx from default.aspx.
I have a textbox and a button on default.aspx
I want the postbackurl to be Search.aspx?q={textbox.text}
How to achieve this?
Any hacks?
I am currently doing a self-post back + redirect.
--
---------------------
Thank... more >>
Prevent Session Timeout
Posted by Arthur Dent at 2/20/2007 7:35:47 PM
Hello all, i am at idea's end here...
We have an ASP.NET 2 app, which we want to prevent from ever timing out... i
have tried every thing i can think of... and have search all over, and have
not found anything new;
I have tried putting little spots in my master page which call back to the
se... more >>
newbie question on tests and styles
Posted by Neil at 2/20/2007 7:09:57 PM
Hi,
I have a datalist of links.
I want the selected link to be a different style / class and prefereably not
a link.
I have created the following code which failed because of the test in line
2 - can anyone advise how I could do this?
Many thanks,
NEIL
<ItemTemplate>
<% If R... more >>
master Pages
Posted by Just Me at 2/20/2007 6:14:42 PM
Hi
I have a master page with a control on it, but I need to set a property of
that control from the content.
my master page is called Admin.Master and the class is Admin.
I have tried this
dim mp as Admin
mp = Ctype(me.master, Admin)
But I get the error that ASP.Master_Admin ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Master Pages
Posted by Just Me at 2/20/2007 6:01:54 PM
Hi
I have a master page with a control on it, but I need to set a property of
that control from the content.
my master page is called Admin.Master and the class is Admin.
I have tried this
dim mp as Admin
mp = Ctype(me.master, Admin)
But I get the error that ASP.Master_Admin... more >>
Regular Expression Question
Posted by Matthias S. at 2/20/2007 5:44:05 PM
Hi there,
I'm trying to build a regular expression which will do a replace for me. I'm
getting grey hair on this one:
here is my input string:
<a href="http://test.com/fun.jpg" target="_blank">my fun pic</a>
I'd like to turn this into the following:
[url=my fun pic]http://test.com/fun.jp... more >>
what is the best way to verify an uploaded image is indeed an imag
Posted by Samuel at 2/20/2007 5:32:17 PM
Hi,
I have a web app that allows others to upload files, and the problem is that
if I allow users to upload image files, fake image can be uploaded and cause
XSS issues.
In the app, I do check image dimension when uploaded so that any fake image
that is actually a text file is blocked (... more >>
gridview filterexpression problem
Posted by Curt at 2/20/2007 5:08:22 PM
I have a gridview object with a sqldatasource as its sourceid.
Everything was going so well until I came across this problem.
My SELECTCOMMAND for my sqldatasource is:
select alertid,subject,createdt,eventid,eventname, statuscd,trgid from
vwAlerts order by createdt desc
Now, based on a fiew... more >>
Termination of Worker/Child thread terminates the Parent Thread
Posted by Sanjay at 2/20/2007 3:59:11 PM
Hi All
Have an app. On start up it creates a thread and goes to sleep.
Either on termination or completion of the worker thread, it triggers
the main app to start executing.
Question
Why is the completion of the worker/child thread triggering the
execution of the main app thread. Shouldn... more >>
Best way to store lookup variables?
Posted by john_c at 2/20/2007 3:15:36 PM
I'd like to store information for roles in Session variables. RoleA
has a specific set of values, RoleB has a specific set and so one.
When I access values for RoleA, it looks like this:
Session[Utils.RoleA_MBcount] = "30"
Session[Utils.RoleA_BandwidthLimit] = "1000"
Session[Utils.RoleA_Feat... more >>
virtualpathprovider
Posted by VV at 2/20/2007 3:14:36 PM
I've created virtualpathprovider class in my application. Everything is ok
in developer enviroment (asp.net dev server), but when I switch to IIS
everything crashes with Server 500 and 404 error. Please, what I'm missing?!
VV
... more >>
Replicating Cold Fusion Decrypt()
Posted by jhagerty at 2/20/2007 3:10:24 PM
Hi all,
I have a SQL server table which holds passwords encrypted using the Cold
Fusion Descrypt() function. Theoretically, I should be able to use the
crypto services in .NET to decrypt these based on the Xor algorithm. But, it
seems as though Cold Fusion adds in some extra characters to m... more >>
HELP: [RETURN] key is not submitting form (ASP.NET 2.0)
Posted by Axel Dahmen at 2/20/2007 3:08:25 PM
Hi,
trying to submit an ASPX form using the [RETURN] key (using IE6) the =
page is not submitted in my web project.
Trying to debug the pages' JavaScript code I noticed that there's some =
ASP.NET client script code being executed having a flaw:
function anonymous() {
if (!ValidatedTextB... more >>
Website to provide access to documents
Posted by bstauffer NO[at]SPAM oldrepublictitle.com at 2/20/2007 2:27:38 PM
Thanks in advance to anyone who has any ideas on this.
I have an ASP.Net 2.0 website set up on a working production web
server. The purpose of the site is to provide access to various
documents including .doc, .xls, .pdf, etc. Once a user signs in, a
customized treeview of documents is displ... more >>
asp.net membership login
Posted by MichaelFord85 NO[at]SPAM gmail.com at 2/20/2007 1:55:54 PM
I'm using the Visual Web Developer 2005 Express, and I'm trying to
create a web page where one must log in to advance. in the upper-most
directory lies the registration page, where I've inserted a
CreateUserWizard, which should place the new user information in a
database called ASPNETDB.MDF (I'... more >>
Array & ArrayList
Posted by rn5a NO[at]SPAM rediffmail.com at 2/20/2007 1:51:03 PM
What's the difference between Array & ArrayList? If possible, please
support with code snippets (preferably using VB & not C#) to highlight
the difference between Array & ArrayList.
Thanks
... more >>
C# Help: configurationmanager.appsettings
Posted by Jim in Arizona at 2/20/2007 12:36:41 PM
I've been using VB 2005 for a few years now. My entire coding history is
VB related.
This weekend I decided to start learning C#. I'm at work now and decided
to do some coding in C# that I would normally do in VB. I'm running into
various 'small' difficulties.
I don't understand this:
... more >>
ASP.NET Customer Membership Provider
Posted by John Chapman at 2/20/2007 12:29:40 PM
Hello,
I am trying to use an Access database as the provider for the ASP.NET
Membership for the users, roles, and profiles. I have looked at many
tutorials available online, and I could not come up with a solution for
everything. I need to know how to setup the tables within the database ... more >>
Server created pages
Posted by Jeremy Bruening at 2/20/2007 12:15:40 PM
I have found numerous iterations of server classes creating controls and
adding them to web pages. However, I have never found any uses with the
databind. I would like to set the text of the object to a databind call, not
just a string value.
Textbox1.Text = <%# DataBind.Eval("Col001")%>
... more >>
how to store a small file into a database table in programming?
Posted by david at 2/20/2007 11:43:37 AM
Any one has the exprience in storing a file into a table in a database?
Thank you
David... more >>
DataGrid Row Number Column???
Posted by mavrick_101 at 2/20/2007 11:30:00 AM
Hi,
I want to display a serial number before every row in the datagrid. How can
I do that?
Thanx for your help.... more >>
Loading webcontrols problem
Posted by ThunderMusic at 2/20/2007 11:21:28 AM
Hi,
I always refer to this page to know the order of events in a page :
http://weblogs.asp.net/jeff/archive/2004/07/04/172683.aspx but this time,
I'm mystified...
I have a Control called "ImagePreloader" I placed in the head of my
MasterPage (aspx)... in the Init of the "ImagePreloader",... more >>
Software to convert AVI/MPEG to Flash Video File
Posted by daokfella at 2/20/2007 11:18:07 AM
Hi all,
I want users of my website community to be able to upload video files.
I'd like to automatically convert these on the server to flash video.
I'd also like to get a screen shot from the video to show on my video
links. Basically, just like YouTube. Can anybody point me to some
resource... more >>
Allowing Users to only View their Page
Posted by craig.buchinski NO[at]SPAM gmail.com at 2/20/2007 10:09:30 AM
Ok i have created a login, what i want to do is each time a user logs
in, i want to direct them to their own web page and not a "community"
web page. Any help would be great.
... more >>
Multiple Application Membership/Profiles in SQLServer?
Posted by dgk at 2/20/2007 9:58:50 AM
I've got an app that's using SQLServer to store the membership and
profile data, in the Aspnetdb database. Now I'm going to be adding
another app and I'm concerned about using the same database. They will
each have different application names but I think it's probably better
to have completely d... more >>
master pages and AJAX controls
Posted by mike NO[at]SPAM 5starserv.com at 2/20/2007 9:34:47 AM
I'm having a problem getting AJAX working with a master page.
I have created a new website using the AJAXControlToolkit template and
default.aspx as follows.
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD ... more >>
event handler in VS 2005 designer
Posted by Hong at 2/20/2007 8:56:35 AM
Hi,
I am trying to wire an event handler to ASP.NET control event in VS
2005 designer view for an aspx page. When I double click on the event
in the Property box, the event handler is added to the top part of
apsx file instead of the code behind cs file. How can I config VS 2005
so that it wi... more >>
CheckBox Count
Posted by jtnpham NO[at]SPAM gmail.com at 2/20/2007 8:53:56 AM
In the .aspx file I have a check box list containing five items.
After clicking on a button I want to display in a label the number of
items the user checked. Can someone help me on what the code would
look like in the .aspx.vb file?
Thanks
... more >>
Counting CheckBoxes
Posted by jtnpham NO[at]SPAM gmail.com at 2/20/2007 8:52:42 AM
If I make a list of checkboxes in the .aspx and I want to display the
number of items they selected, how would the code for .aspx.vb look?
... more >>
Membership and Role Providers - users got duplicated
Posted by awrigley NO[at]SPAM yahoo.com at 2/20/2007 8:37:23 AM
Hi
An app that was chuntering away quite happily to itself had roles
added to it. Just two: Admins and Subscribers.
However, I seem to have mucked up when assigning the role provider in
the Web.config file, as I just left the default, whereas in members,
this was modified to use our onlin... more >>
Automatic recover ASP web page?
Posted by Ben at 2/20/2007 8:00:57 AM
Hi,
In the first start page, I use JavaScript window.open to open a new
ASP IE
window that is used to display real-time stock price and refresh each
10 seconds.
The problem is when ASP server restart, the real-time page will
display "... cannot display the webpage" and cannot back to norma... more >>
Get user credentials
Posted by William Buchanan at 2/20/2007 7:40:31 AM
Hi Folks
I have made an asp.net page for our intranet which submits bugs into Team
Foundation Server. So that the bugs appear to be raised by the person who is
browsing the page I have created an instance of TeamFoundationServer by
passing in the CredentialCache.DefaultCredentials:
ICred... more >>
DNN - Supporting Msging Protocols...
Posted by karthick at 2/20/2007 6:45:15 AM
Hi,
Can anybody tell me if DotNetNuke supports messaging protocols like
MIME, SMTP etc ?. Thanks.
Karthick
... more >>
StreamWriter and File Access
Posted by Mike at 2/20/2007 6:24:15 AM
Hi. I'm building an ASP.NET site which is hosted on a remote server. When I
try to create a new file using StreamWriter I must specify the drive location
where the file will be saved. I don't have file access anywhere on the
remote server, and therefore I can't figure out how I can create a... more >>
ASP '0115'
Posted by Balaji at 2/20/2007 6:19:07 AM
Hi All,
For past 4 years the application is running perfectly (Windows 2003 Server).
suddenly it throws the error from last month, the error is
Provider error '80020005'
Type Mismatch
\default.asp line 90
Active Server Pages error Asp '0115'
Unexpected Error
\Index.asp
A trappable err... more >>
Object does not match target type.
Posted by rn5a NO[at]SPAM rediffmail.com at 2/20/2007 6:15:58 AM
Consider the following code:
<script runat="server">
Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs)
Dim dInfo As DirectoryInfo
dInfo = New DirectoryInfo(Server.MapPath("/Folder1"))
dgFD.DataSource = dInfo.GetFiles("*.*")
dgFD.DataBind()
E... more >>
URGENT: window.open does not render server-side code when aspx file pulled from a resource file
Posted by Bob Jones at 2/20/2007 6:03:39 AM
Here is my situation:
I have an aspx file stored in a resource file. All of the C# code is
written inline via <script runat="server"> tags. Let's call this page
B. I also have page A that contains some javascript code that calls
window.open. I pass the resource url of page B to Page A's window... more >>
RegisterOnSubmitStatement not posting eventtarget
Posted by APA at 2/20/2007 4:37:42 AM
I have registered a OnSubmit client script using the below statement:
ClientScript.RegisterOnSubmitStatement(this.GetType(), Guid.NewGuid().ToString(), "var retVal = validateForm(); return retVal;");
The validateForm() function is called properly and does all the validation that it's suppose... more >>
Deploying ASP.NET AJAX-Enabled Web site to host without AJAX insta
Posted by Brian Edwards at 2/20/2007 4:06:15 AM
I don't see a managed newsgroup for just AJAX, so hopefully this is the best
place to ask this question.
Is there a sure-fire way to deploy an ASP.NET AJAX-Enabled web site to a web
host who refuses to install AJAX 1.0?
How come just copying the System.Web.Extension .DLLs to the app... more >>
images not visible
Posted by Zeba at 2/20/2007 4:02:38 AM
Hi,
In the master file for my website, I inserted some image files inside
<body>. The form is given as runat="server" It is getting displayed
correctly in the Design view in Visual Studio. but when I try to run a
related Content page, only the alt text is displayed instead of the
image. What ... more >>
AccessDataSource constraining results?
Posted by musosdev at 2/20/2007 3:55:23 AM
Hi guys
I'm having a really strange error which I can't wor out, so I thought I'd
post it here cos I'm not sure if it's a datasource problem or otherwise.
I have a site with an Access MDB file, and a page which uses an
AccessDataSource to display data in labels and DIVs.
All was working... more >>
CheckBox selection
Posted by Badis at 2/20/2007 3:07:13 AM
Hi,
I have a 5 checkboxes and I would like to be able to use them as grouped
radiobuttons or a checkboxlist (one selection at the time) in the client side
without having to use a autopostback.
I think the only way is javascript but I don't know how. does any one have a
sample code to do t... more >>
ASP.NET Website 2003 -> 2005
Posted by David++ at 2/20/2007 2:35:13 AM
Dear list,
Firstly, I hope I'm posting this on the right newsgroup as I'm more of a
dabbler in ASP.NET website development than a fully fledged developer.
I have a simple ASP.NET website which I developed in VS2003. This consists
of some web forms and a few web services. I'm now using VS20... more >>
Uploading Large Files using ASP.net
Posted by rajarameshvarma NO[at]SPAM gmail.com at 2/20/2007 2:34:17 AM
Hi..
I am facing problems with file uploading in asp.net.my filea are
nearly 40 MB size. I set the MaxRequestLength property to match. Files
are getting uploaded but it is taking so much time. I want to reduce
the time. can anybody tell me a better way. I need to use only http
(no ftp).
I ne... more >>
request is not available in this context
Posted by ruthiefy NO[at]SPAM walla.co.il at 2/20/2007 2:02:39 AM
Hi,
I created a class(AAA) which derives from System.Web.UI.Page.
In the new class (AAA) I created some private variables and I
initialize the variables from the property "Request".
For some reason, I get an exception in the initialization -
"request is not available in this context" .
I tri... more >>
Data grid!
Posted by rcoco at 2/20/2007 1:51:22 AM
hi,
I'm having problem with seeing my datagrid? Yet I set Property visible
to true and I'm caling the DataBind() what could be the Problem. I
mayed be forgetting something.. Could you please help?
Thanks?
... more >>
Changing Repeater ItemTemplate
Posted by mj.redfox.mj NO[at]SPAM gmail.com at 2/20/2007 1:13:24 AM
Hi,
I wonder if someone could possibly help with this? I have the
following code, which is a nested repeater in turn nesting a datalist.
This all works fine, together with my page-behind vb code controlling
the relations etc.
Now, what I'm wanting to do is to call a subroutine 'subroutine1'... more >>
insert values into databse using sqlserverstoredprocedure with asp.net
Posted by Sirisha at 2/20/2007 1:02:07 AM
Hello,
I want code for insert values into database using
storedprocedure and how to write stored procedures.
I want code in codebehined file, imean .aspx code
Regards,
Sirisha.
... more >>
trouble with click events on dynamically created link buttons
Posted by Amoril at 2/20/2007 12:58:16 AM
I've read quite a few different message on various boards and for some
reason I'm still having trouble wrapping my head around this viewstate
maintenance and trying to get these dynamically created link buttons
to stay wired up to their click events.
I have what is basically a simply survey qu... more >>
Old website mix with asp.net 2
Posted by Alan T at 2/20/2007 12:00:00 AM
I have a legacy website has only html, how do I add a asp.net pages (.aspx)
to that and develope in VS 2005?
... more >>
Integration: response first, then do data processing
Posted by L-E Eriksson at 2/20/2007 12:00:00 AM
Hello!
I am working on integrating two systems, one internal and one external.
I have a web site. One of my webpages are called from the external systems
with a http get. In the querystring i catch some variables. These values are
then sent to the database.
The external system requires ... more >>
Membership questions
Posted by John at 2/20/2007 12:00:00 AM
Hi
I am planning to use asp.net 2.0 built-in membership system. I have two
questions. Would appreciate a reply.
1. What is the maximum length of the username?
2. Is there a method to deactivate/disable a user without actually deleting
the user?
Thanks
Regards
... more >>
Password recovery
Posted by John at 2/20/2007 12:00:00 AM
Hi
I am using the password recovery control. When I submit I get an smpt server
not set error. I can't see any property in the control for smtp server.
Where do I set the smtp server value?
Thanks
Regards
... more >>
aspx cannot show
Posted by Alan T at 2/20/2007 12:00:00 AM
I got WinXP SP2, VS 2005 installed.
In my existing project that's with html only.
Now I created a aspx file with only
<html>
<body>
<%
response.write("Hello World!")
%>
</body>
</html>
When I display this page I got the error:
Server Application Unavailable.
The web application ... more >>
|