all groups > asp.net > february 2007 > threads for monday february 26
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
Using ASP.NET 2.0 log in controls - Creating the first user
Posted by Matt Adamson at 2/26/2007 11:29:05 PM
Guys,
I'm thinking of using the various log in controls ASP.NET 2.0 provides e.g.
the CreateNewUserWizard. However my first question is how do I get a new
user into the system initially to actually log in and create new users?
Should I use SQL to directly insert a user record into the aspn... more >>
asp:login
Posted by Jman at 2/26/2007 10:31:53 PM
Is it possible to do a login from the code instead of using the interface
(asp:login)?
... more >>
Prevent Number From Getting Rounded
Posted by rn5a NO[at]SPAM rediffmail.com at 2/26/2007 9:18:54 PM
A Web Form has a TextBox within a DataGrid wherein users are expected
to enter only whole numbers. It should be validated so that the
TextBox doesn't remain blank or any non-numeric data is entered in the
TextBox. If the TextBox doesn't get validated, I want to display
messages to the user whic... more >>
print in landscape mode
Posted by nuhura01 NO[at]SPAM yahoo.com at 2/26/2007 9:01:31 PM
I want a printing properties to be set to landscape mode, so that when
the user click a print button, it will print in landscape mode
automatically.
I use this code in the code-behind of the web form to print the page:
HttpContext.Current.Response.Write("<script>window.print();</script>")
H... more >>
Validator Control is not working in Live site.
Posted by BSM at 2/26/2007 8:35:06 PM
Hi,
I have used some validator controls in my project and itz working fine
in developement enviro. But it does not work in the Live site.
Help me to solve this issue.
bsm
... more >>
Hide ButtonColumn of Datagrid
Posted by nuhura01 NO[at]SPAM yahoo.com at 2/26/2007 7:28:20 PM
Hi all..
I have a datagrid in my system and I preview the datagrid in other
html page. Below are the code that I'm using:
Dim oStringWriter As System.IO.StringWriter = New
System.IO.StringWriter
Dim oHtmlTextWriter As System.Web.UI.HtmlTextWriter = New
System.Web.UI.HtmlTextWriter(oStringW... more >>
Http Post error (405) Method Not Allowed.
Posted by Eric at 2/26/2007 5:08:40 PM
I'm trying to test code to post xml to a web page in anticipation of a new
project. I wanted to try a simple test first, but I get a (405) Method Not
Allowed error no matter what I try.
I have tried posting to the same machine as well as a different machine.
Anonymous access is enabled for th... more >>
nested server controls, is that allowed?
Posted by Jeff at 2/26/2007 4:45:13 PM
ASP.NET 2.0
Here I have a repeater control and a table server control, I wonder if this
approach is allowed in ASP.NET 2.0 or should I use a html table instead?
Originally I used a html table but now wants to convert it to a server
control so that I can apply themes to it
<asp:Repeater ID... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
modiffying the dll.config
Posted by phillip at 2/26/2007 4:29:13 PM
Hello,
I'm somewhat new to .Net 2.0. I have a web app that uses assemblies (middle
tier). I added the reference to the assemblies and want to change a value in
one of the assemblies <assembly name>.dll.config file. It's a path entry.
So how do you do this? Can you simply modify it the va... more >>
Is the .master extension of importance
Posted by WT at 2/26/2007 2:53:23 PM
Hello,
I want to know if the .master is of any importance for a master page.
Could I have an .ascx extension and the <%@ Matser..%> Directive inside,
will my page load using LoadControl from code ?
Thanks
CS
... more >>
master pages
Posted by seema2007 at 2/26/2007 2:46:15 PM
what is the use of master pages
--
seema2007... more >>
Querying for rows belonging to a month
Posted by mavrick_101 at 2/26/2007 2:11:31 PM
Hi,
I have a table where I keep information about events. All the events have
start date time and end date time.
I want to get all the events for a month. I tried the following but it
doesn't cover the whole month...
SELECT *
FROM Events
WHERE StartDate between '2/1/2007' AND '2/28/20... more >>
How to add the HTML script when creating new ASPX page
Posted by Joe Penora at 2/26/2007 2:08:40 PM
Hi All,
How to add the HTML script when creating new ASPX page. After it is done =
I=20
may need to add some Meta tags etc... but the html script is not there.
Is there an option in the ASP.NET that WHEN creating a new aspx page, =
then=20
it will generate that basic HTML scrip as well.
... more >>
execute SQL Agent job from web form
Posted by Tom at 2/26/2007 2:01:25 PM
I have a web form and I'm able to list db servers and Job listed in the SQL
Server Agent Job list, now my question is, how can I execute a .
so for example
dropdown 1 has all my db servers on my network.
I can log into the selected DB from my web form.
Then drop down #2 shows all jobs in ... more >>
Custom Profile Provider Implementation
Posted by Kirk at 2/26/2007 1:05:25 PM
I have successfully, implemented a custom Membership Provider to a SQL
2000 table, however, I am having problems doing the same with a
Profile Provider.
As I understand it, the steps for both of these are similar: Create a
new class (MyMembershipProvider and MyProfileProvider). Add the
"Inhe... more >>
parameter:currentwebform to a vb class
Posted by chieko at 2/26/2007 12:55:22 PM
Hello,
I'd like to use a visual basic class.function to iterate through the html
controls
and verify that the user entered something in the controls. But I cannot
figure out how to pass the current webform to the function.
Would anyone know how to do this?
I currently have this code in a fu... more >>
New Outlook message via browser
Posted by Marc Castrechini at 2/26/2007 12:45:30 PM
The business requirement is relatively simple:
Automatically open a new mail message using the default mail client (Outlook
2003) and attach a document located on the server.
Obviously we need to open the New Mail Message on the client so we are
trying to determine if this is possible by set... more >>
PostBackUrl Not Working
Posted by Uriah Piddle at 2/26/2007 12:33:55 PM
Hi Gang,
In ASP.NET 2.0 when I click a button with a PostBackUrl in Firefox, its
posts back to itself instead of the page specified in the code. It works OK
in IE. This only happens in one project. In other projects the problem is
not there. I can't figure it out. Does know what would do th... more >>
Folders not deleting immediately
Posted by jawloc NO[at]SPAM hotmail.com at 2/26/2007 12:29:57 PM
Hi I have a question that I hope someone can help me with. I have
created a web page that allows a user to upload an image with a
caption to my web server. Here is what happens when the user loads
the page:
1 - A temporary folder is created with that user's username here is an
example of... more >>
Page URL
Posted by smay at 2/26/2007 12:03:23 PM
I've created a custom base class for my asp.net web pages that needs to
retrieve the URL of the calling page from the New method. Problem is that
the Request property of the page is not available until after the base code
completes. How can I get the page URL from the New method?
Partial ... more >>
Master Pages and Mixed Languages
Posted by Paul Cheetham at 2/26/2007 11:05:20 AM
Hi,
I have some Master pages from a new project in c#
I have some older projects in VB that are being upgraded, and I want to
use my existing Master Pages.
Can I use a c# Master page for a VB content page, or do I need to create
a VB version of the master?
Thanks.
Paul... more >>
How to convert a char[] of integers to a string.
Posted by Steve Kershaw at 2/26/2007 10:38:06 AM
I can convert from a string to a char array (char[]) by using
string.ToCharArray() function. Now how do I convert it back?
The string looks like this: "000457". I've converted it to a char
array: char[] = {0, 0, 0, 4, 5, 7}. Now I need to convert it back to a
string.
Thanks in advance for y... more >>
custom validation
Posted by Mr. SweatyFinger at 2/26/2007 10:28:27 AM
hi.
i have a bunch of controls that get validated with the validation controls
in vs2005
there are two that i could not find a control for so i wrote some
javascript.
so i set my submit button to
OnClientClick="vRealtor()"
yet my function is not executed.
What is the problem??
... more >>
Membership provider issue
Posted by SalamElias at 2/26/2007 10:23:23 AM
Hi, I am trying to play with the Survey manager application provided
gracefully by Microsoft at
"http://msdn.microsoft.com/vstudio/express/sql/samples/" VB team(so many
thanks), compiled the win app, added 2 users beside the "thardy" user already
shipped with the aplication. I can not pass t... more >>
Server side control that maintains viewstate for client-side javascript variables?
Posted by Keithb at 2/26/2007 10:17:47 AM
I have some client-side javascript for that I use for dhtml stuff such as
hiding div tags based on user menu selections, etc. I need a way to maintain
the state of javascript variables across postback. Are there any server side
controls that can be used as a container for client-side javascrip... more >>
Newbie Q: Insert record in db
Posted by AlecL at 2/26/2007 10:12:49 AM
I am trying to insert a record in a control. All the webcontrols
(i.e. textboxes, ddl, etc.) are also located on the control and the
following code is executing the insert:
Dim oOSQL As New System.Data.SqlClient.SqlCommand("INSERT INTO
FeedBackAndTales (name, email, daytimephone, sentToEmail,... more >>
convert spaces to underscores
Posted by Kevin O'Brien at 2/26/2007 9:12:49 AM
Hey guys,
I have a textbox where I want to find any spaces in the text and convert
them to underscores _. Can someone please give some help with this one?
Thank you,
Kevin
... more >>
Improving HttpHandler parallelism
Posted by Alan Samet at 2/26/2007 8:33:18 AM
I have a performance issue related to HttpHandlers.
I've written a photo gallery application that uses HttpHandlers to
manage a virtual URL to my thumbnails. When I render the document with
the actual thumbnail URLs, the images appear to load instantly. When
using the HttpHandler, it looks as ... more >>
Setting asp:parameter at runtime - possible?
Posted by musosdev at 2/26/2007 7:31:15 AM
Hi guys
I have the following AccessDataSource control on my page..
<asp:AccessDataSource ID="adsAllStories" runat="server"
DataFile="~/App_Data/Stories.mdb"
SelectCommand="SELECT StoryID, StoryTitle FROM Stories WHERE
StoryTitle LIKE '?%' ORDER BY StoryID DESC">
<Select... more >>
Property. Init and Load. Very strange error.
Posted by shapper at 2/26/2007 7:30:01 AM
Hello,
I have a page and two user controls:
Page.aspx
|--- UserControl_1.ascx
|--- UserControl_2.ascx
In UserControl_2 I have a property defined as follows:
' Margin
Private _Margin As Integer
Public Property Margin() As Integer
Get
Return _M... more >>
I can not read a small file from NTEXT field in the database
Posted by david at 2/26/2007 7:21:41 AM
I try to follow Steve's paper to build a database, and store a small text
file into SQL Server database and retrieve it later. Only difference between
my table and Steve's table is that I use NTEXT datatype for the file instead
of using IMAGE datatype. I can not use SqlDataReader to read the d... more >>
Abandon Session
Posted by rn5a NO[at]SPAM rediffmail.com at 2/26/2007 7:10:50 AM
In a MS-Access database application, the following code resides within
the *Catch* block of a *Try....Catch* block:
=========================================
Try
'some code
Catch ex As OleDbException
If (ex.ErrorCode = -2147467259) Then
Response.Write("ID: " & Session.Sessio... more >>
Repeater. I see only the last record. Have no idea why!
Posted by shapper at 2/26/2007 6:44:11 AM
Hello,
I am created an Asp.Net 2.0 repeater implementing the ITemplate class.
I know my datasource, a datatable has 6 rows, but the repeater only
displays the last one.
If I add more rows to my datatable I keep seeing only the last record
on my repeater. any idea why?
This is my IT... more >>
Displaying calendar month according to Datalist choice
Posted by Zeba at 2/26/2007 6:00:40 AM
Hi,
I have a page with a calendar and two datalist items - one containing
month values and the other, year values. Depending on the month/year
value chosen ( in text/string format ) I should be able to display
the correct month of the calendar.
I thought it would be possible to use the OnS... more >>
Creating a search function in VB.net
Posted by Daniel at 2/26/2007 5:44:10 AM
Dear All
I need some help. I've got a deadline for this friday and i'm stuck. what
i'm trying to do is have 1 textbox, datagrid and 1 button then when the user
enter a search string, and press the button, I want the result to be
displayed in the datagrid.
At the moment, when the user p... more >>
REGEX. What am I doing wrong?
Posted by shapper at 2/26/2007 5:11:38 AM
Hello,
I need to create a REGEX which accepts only phone numbers.
The phone numbers start allways with 261, 21, 96 or 91 and have 7
numbers after it.
Something like. 261 1223346, 21 2334456, etc.
I tried the following but it is not working:
^(?:261|21|96|91)\s\d{7}$
How can I do thi... more >>
adding a row on a datagrid
Posted by rcoco at 2/26/2007 4:07:11 AM
Hi,
I'm trying to Insert a new Row on a dagrid. When I did a google
search, I got an example on this address: http://www.codeproject.com/ASPNET_DataGrid.asp.
I've done mycode as follows:
private void Fill()
{
DataSet ds=new DataSet();
SqlDataAdapter adapter =new SqlDataAdapter("select * fro... more >>
Reading Excel file into datagrid asp.net
Posted by Omar at 2/26/2007 3:36:04 AM
Hello Allo,
I am creating a page that allows a user to upload an excel file, and
display the contents in a datagrid. The problem I am having now is
that, some of the columns have both numeric and alphanumeric data.
How
can I upload the file into a datagrid as it is? Is it possible? I do
not wa... more >>
ASP.NET Page cannot be displayed error
Posted by rajesh at 2/26/2007 3:00:40 AM
Hi,
I have an ASP.net page that takes over an hour to execute.
I get a Page Cannot Be Displayed error.after exactly 60 minutes. I
have set the session timeout = 120 minutes. in both IIS level and
web.config level.
But still the problem exists.
can any one help me
Thanks,
K.Raje... more >>
memory limit
Posted by Marco Sellani at 2/26/2007 1:32:11 AM
I need an information.
I've a ASP.NET web application on windows2003r2 server with IIS 6.
In framework 1.0 memory limit for a worker process is 800MB;
in framework 1.1 the limit is 1600MB with /3GB option.
This is Right??
Which is the limit for framework 2.0 and how can i monitor it (wh... more >>
first time using gridview
Posted by goldie11 at 2/26/2007 12:28:38 AM
Hi,
This is the first time I use a gridview.
I have two big problems:
1) I need to assign the columns of the gridview from the code (the cs
file )- because the assignment of the columns depends on the user.
Different users see different columns.
2) There is a dataTable column that I nee... more >>
.Net Framework 1.1 and 2.0 in one IIS
Posted by Gunawan at 2/26/2007 12:00:00 AM
Dear All,
I would like to know how to run two version on .Net Framework in one machine
(IIS).
TIA.
Regards,
Gun
... more >>
Validate multiple form fields with one method
Posted by Neo Geshel at 2/26/2007 12:00:00 AM
Greetings,
I have a form with a telephone field. It is very specific, as it has=20
four text boxes - the country code, area code, prefix and suffix. I can=20
validate each of them individually, but I am stumped as to how to=20
validate them as a group (as one final validation). I need to check... more >>
|