all groups > asp.net > april 2007 > threads for monday april 30
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
Localisation with RESOURCE: in aspx pages need resx files no dll
Posted by WT at 4/30/2007 11:26:00 PM
Hello,
Could we use 'Embedded resources' with resx files that contain text
resources used in aspx pages with the syntaxe:
Text="<%$ Resources:ResourcesMy,KEY1 %>"
I tryed removing the App_GlobalResources folder, and after verifying thta my
resources were correctly embedded in my dll, ... more >>
How to convert from string to integer?
Posted by Allen Maki at 4/30/2007 9:47:18 PM
I am working with MS Visual C++ .net 2003.
With your help, thank you, I am able to take data from the user through a
text box of a form and show the information on label of another form. But I
discovered that the data that I collected was not in such a format by which
I can do simple a... more >>
How to use CSS Control Adapters
Posted by a.mustaq NO[at]SPAM gmail.com at 4/30/2007 9:18:40 PM
Hi All,
My Client wantsb to develop the site using
CSS Control adapters. I go thru number articles on web, but could not
understand how they are worthfull. What are theire merits over <table>
tags. Please help me.
Thanks and Regards
A.Mustaq Ahmed
... more >>
ASP.Net 2.0 - how to add custom style into page header in code
Posted by Sergey Poberezovskiy at 4/30/2007 7:23:27 PM
Hi,
What is the "right" way to create the following css rule in a page header:
<style>
..myRule{text-align:right;padding-right:10px;}
</style>
I know that you can add simple styles as follows:
this.Page.Header.StyleSheet.CreateStyleRule(style, this.Page,
".mySimpleRule");... more >>
ASP.Net 2.0 - how to add custom style into page header in code in
Posted by Sergey Poberezovskiy at 4/30/2007 7:15:23 PM
Hi,
What is the "right" way to create a css rule similar to the following in a page header:
<style>
..myRule{text-align:right;padding-right:10px;}
</style>
I know that you can add simple styles as follows:
this.Page.Header.StyleSheet.CreateStyleRule(style, this.Page,
".my... more >>
How to read a value in a Formview ?
Posted by user at 4/30/2007 6:50:27 PM
Hello,
How to read a value in a Formview, when the page is load or when the
formview is updated, and if the value (integer) is negative,for example, the
user will get a msgbox that say "becarefull ! negative value !")
Thanks a lot ...
... more >>
Do most of Fortune 500 companies use OOP with ASP.Net 2.0?
Posted by Randy Smith at 4/30/2007 6:44:30 PM
Hi ALL,
I was told that most Fortune 500 companies use OOP in conjunction with
ASP.Net 2.0. Personally, I find this hard to believe, unless the class
libraries being created are going to be used over and over. But what about
instances where the web application is designed to be stand-alone.... more >>
HTTP Handler?
Posted by RSH at 4/30/2007 4:15:33 PM
Hi,
I have a situation where my company wants to implement a part of our website
that needs to process requests such as:
http://www.mydomain.com/<ServiceCenterName>
I want to build a template page that will ultimately handle the request, but
Im not sure how to go about interception the in... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Newbie question
Posted by Robert Dufour at 4/30/2007 4:01:46 PM
I am using vs2005 and I have Created a new web site into which I have simply
copied existing html and asp pages as they were when created with an earlier
dev tool. I suspect it was Visual interdev.
If I try to view an asp page in browser I get an error page saying Server
error in the web si... more >>
(Hopefully) Quick Question about Session Variables
Posted by DLN at 4/30/2007 3:41:34 PM
Hello all,
I apologize for the naivety of this question, but I'm wondering whether
session variables can ever be modified (somehow) by a client without having
to go through code that I write. If I read in user input from a web form,
sanitize the input to make sure there isn't any injected ... more >>
Masterpage problem please help...
Posted by vinit_mahajan99 NO[at]SPAM yahoo.co.in at 4/30/2007 3:14:16 PM
Hello All.
I am designing the master page for my site.
I have used a table and ther are three rows in a table.
Table lies in the
1. Header
2.ContentHolder
3.Footer
The footer should be always at the end of the browser.
But I have a problem my footer is being shown at the middle of ... more >>
Validate control to check 2 entries
Posted by David C at 4/30/2007 2:52:34 PM
I have a DropDownList control that has a value of 0 for not selected and
a -1 for adding a new company. I want to be able to validate to say that
this selected value is not 0 or -1 but I couldn't find a control validator
that did this. Can someone help? Thanks.
p.s. I am using .Net 2.0 and... more >>
How to use a repeater with two buttons?
Posted by Roger0x1 at 4/30/2007 2:38:01 PM
Language: c#,.net 2
This looks simple in concept: I have a page that needs to display a userid,
a date/time to start vacation, a date/time to end the vacation, and two
buttons: one says approve, the other deny. When you press Approve, it
updates the sql table from pending to approved, wh... more >>
check for a connect request
Posted by Tenacious at 4/30/2007 2:35:54 PM
I need to add to my server application the ability to receive up to
30K of XML data from a client application. I know I can use an
XmlTextReader() to receive the data and put it into the cache. What I
am mostly not sure about is how the server is supposed to know that a
client is wanting to conn... more >>
Formview template insert to edit mode
Posted by Ann at 4/30/2007 2:16:00 PM
Hello,
I am using ASP.net 2.0 and I am using templates in a formview control.
After I insert a new record, I want the formview Edit template to display
with the NEW record that I just inserted. Is this possible and can someone
show me some example code in VB.
Thanks for your time!
... more >>
I need UTF-8. But I keep getting UTF-16. Why? How to fix?
Posted by darrel at 4/30/2007 1:38:17 PM
I've been struggling for some time now getting a RSS app to work. I'm
creating RSS from existing XML files (transforming via XSLT).
The problem is that the page, itself, is still being sent at UTF-16 when I
create the RSS from XSLT. It's UTF-8 when I'm creating the XML myself via
the DB and... more >>
downloading orcas vpc
Posted by rodchar at 4/30/2007 1:34:01 PM
hey all,
i downloaded orcas from msdn and was wondering if .net framework is on it by
default or do i have to that manually? Or how can i tell if it's already on
the vpc?
thanks,
rodchar... more >>
Any equivalent to debug.assert?
Posted by Brian Cryer at 4/30/2007 1:03:27 PM
It would be very handy to be able to stop the debugger on parts of code
without having to explicitly set a breakpoint - either a "debugger.break" or
"debug.assert" type of thing would do. I've not come across anything, but is
there anything in (VB).NET that would allow me to do this?
TIA.
... more >>
Remember ViewState after Redirect
Posted by Joe Kovac at 4/30/2007 12:39:23 PM
Hi!
I have an edit page and a view page. When I edit I sometimes want to see
the results graphically in the view page. Therefore I use:
Response.Redirect("ViewPage.aspx");
Then I go back, using:
Response.Redirect("EditPage.aspx");
Coming back I don't have the view state of my edit p... more >>
Learn AJAX
Posted by gouqizi.lvcha NO[at]SPAM gmail.com at 4/30/2007 12:06:15 PM
I would like to learn AJAX under ASP.net environment, but I don't know
how to get started. Any suggestions? Thanks
... more >>
HttpContext.Current.User.Identity.Name loses value
Posted by Doogie at 4/30/2007 12:01:22 PM
Hi,
I am using HttpContext.Current.User.Identity.Name to get a user id
from a web application. I then use that as part of a name of a cookie
I'm writing. 30 minutes later I do a refresh of this page and try to
access that cookie. However, because I am using
HttpContext.Current.User.Identity.... more >>
dynamically adding a FormView
Posted by justin at 4/30/2007 10:49:26 AM
I am trying to make a page that has a drop down list at the top, and
based upon the selection in the drop down list, inserts a FormView in
the bottom of the page. I tried to create each of my FormView's in
seperate files, and then use the following method.
<!--#include file=<name of correct fi... more >>
Using forms authentication, but you can get at a file if you know the name of it.
Posted by Mufasa at 4/30/2007 10:33:48 AM
I have a website where there is a login screen on it. All works fine. As
part of the website I have links to some pdfs, htmls, jpgs, and assorted
other stuff. I have found if you know the name of the file (or login, and
copy the link) you can get at the file without logging in.
I verified t... more >>
Radiobutton list return truncated values
Posted by Fendi Baba at 4/30/2007 10:22:50 AM
I encountered a very strang problem. In my form I have a
radiobuttonlist control. I listed sizes ranging from XXS to XXL in
them. And users must select one.
The list are:
XXS
XS
S
M
L
XL
XXL
Now, each of the selection has the same values ie XXS values is XXS.
Now with XXS and XS, m... more >>
Cookie isn't being read
Posted by Doogie at 4/30/2007 8:12:08 AM
Hi,
I am having a problem reading a cookie that I can see is being
created. I create the cookie in my global.aspx.vb page like so:
Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
Dim user As String = Current.User.Identity.Name
Dim roleCookieName As String = user & "-R... more >>
View tiffs
Posted by David C at 4/30/2007 8:03:30 AM
I have a DataList control that shows thumbnails of jpg files. I would like
to be able to show other image types, such as tif files. Can I do that in
..Net 2.0, and if so, how do I display them intermixed with .jpg files?
Thanks.
David
... more >>
Saving profile information for a specific user when not logged in
Posted by daokfella at 4/30/2007 7:41:20 AM
I want to be able to store profile information for a user when they
sign up for an account...but BEFORE they can log in. Can this be done
using any of the built-in profile methods?
Here's my current sign-up procedure:
1. User creates an account with username, password, e-mail and other
info... more >>
PostbackURL not working
Posted by Joe at 4/30/2007 7:36:00 AM
I have a page that has a drop down list that does a autopost back which
brings up a datagrid. I then also have a button at the bottom that has a
PostBackUrl property to go to another page. I cannot get the button with the
postbackurl to work at all. The drop down has to be used for the prop... more >>
ASP.NET Postback Event Occurrs Again after page refresh
Posted by Mike at 4/30/2007 6:58:03 AM
Hi. If an ASP.NET page postsback, for example, after a button is clicked,
and then I refresh the page (ie, by pressing F5 key), why does the same event
occur when I press F5 as it did when I clicked the button?
For example - On an ASP.NET webform I click a button which produces a
postback ... more >>
Why can't I set the textbox "text" property??
Posted by mj.redfox.mj NO[at]SPAM gmail.com at 4/30/2007 6:45:15 AM
Can anyone help? I have a textbox which I'm programatically adding by
using the following code:
txtTest = New TextBox
txtTest.ID = "txtLeft" + cntCount.ToString
Page.FindControl("tdInput").Controls.Add(txtTest)
This successfully creates a textbox called "txtLeft1" in the table
cell "td... more >>
ASP.NET Search Engine
Posted by hardieca NO[at]SPAM hotmail.com at 4/30/2007 6:37:20 AM
Hi,
I'm building an internal website which will require a search engine.
It needs to scan the title of the document, the content of the page,
the keywords metatag, and also some additional custom metadata. Does
anyone know of any search engine out there that I can easily plug into
a an ASP.NE... more >>
Automation urgent help
Posted by Badis at 4/30/2007 4:14:01 AM
I'm doing a server side automation(I know it's bad but..) and its working
fine locally and when accessing it from a remote machine using web browser is
was giving me this error"Retrieving the COM class factory for component with
CLSID
{000209FF-0000-0000-C000-000000000046} failed due to the ... more >>
Remove spaces
Posted by shapper at 4/30/2007 3:29:57 AM
Hello,
I have the following string:
str = " string , hello,something ,new object, london city "
How can I remove all the spaces before and after a comma but never the
ones between words?
So I get my string as follows:
str = "string,hello,something,new object,london city"
Thanks... more >>
Get Substrings
Posted by shapper at 4/30/2007 3:27:55 AM
Hello,
I have a string as follows:
str = "string,hello,something,new object,london"
How can I get each substring between commas and add it to a generic
list of string?
Thanks,
Miguel
... more >>
Get data from dataset
Posted by shapper at 4/30/2007 3:19:52 AM
Hello,
I have a stored procedures as follows:
SELECT a.ArticleID, a.Title, a.Content, c.CommentId, c.Title,
c.Comment
FROM Articles a
INNER JOIN Comments c ON a.ArticleID = c.CommentID
WHERE a.ArticleDate = @articledate
I get a dataset in my .NET code.
How can I get,... more >>
Resizing table height
Posted by JMT at 4/30/2007 12:00:00 AM
Hello,
I get some dynamic controls (ASP .Net) inside a table, the height
property of the table is variable according the controls loaded, so I
need to know the final table height, this value must be an odd number
by graphic design. I put the next code at bottom of the page;
<script type... more >>
|