Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:705634
More Search Options
RSS Available
Matching Posts
Re: <<Input string was not in a correct format>>
Are you linking to this page from another page in your app, taking in user input (and putting this input in the querystring) ? If so, use a validator control to ensure a number is entered in the textbox when the user clicks the submit button. Then, in your page, you should do something like: int id = 0; if(Request.Querystring["ID"] != null) { try { id = Int.parse(Request.Querystring["ID"]); } catch(Exception error) { // your err handling } } If you are using .Net 2, you can use things like Int.TryParse
Posted to
Web Forms
(Forum)
by
roy_huntley
on 5/2/2007
Re: linkbutton And session
Please explain your problem in more detail...
Posted to
Web Forms
(Forum)
by
roy_huntley
on 5/2/2007
Re: Code-behind cannot find my literal control
Are you editing a page which was previously created in VS2003 ? Using Web Application Projects Model ? If so, when moving to VS2005, the IDE no longer created the protected instance of the control automatically, eg, protected System.Web.UI.WebControls.Literal CheckBoxIDsArray You may need to manually add this. If you are using a page which was added in your solution via VS2005, it should be a partial class (check for a PageName.cs.designer file in the solution explorer). Check this (IDE Generated
Posted to
Web Forms
(Forum)
by
roy_huntley
on 5/2/2007
Re: Retreaving Values from dynamically created Web Controls
OnInit will fire every time a page is accessed, whether it is a postback or not.
Posted to
Web Forms
(Forum)
by
roy_huntley
on 4/30/2007
Re: foreach loop with hyperlinks
Put your Hyperlinks in a container control, then do something like: foreach(Control ctl in MyContainer.Controls) { if(ctl is HyperLink) ctl.Enabled = true; }
Posted to
Getting Started
(Forum)
by
roy_huntley
on 4/30/2007
Re: setting a property with a condition
I would use a method rather than a property....setting a property only really accepts the value for the property itself...not any other conditional kind of parameter. Use something like (in C#) : private void SetSomething(string thingToSet, string valueToSet) { switch thingToSet { case "E" : qText_E = valueToSet; break; case "F" : qText_F = valueToSet; break; } }
Posted to
Getting Started
(Forum)
by
roy_huntley
on 4/30/2007
Re: Delete file from server when database instance is deleted
The DetailsViewDeleteEventArgs contains a Keys property which will relate to the DataKey property of your grid/view. You should also be able to use e.Values["ImagePathFieldame"] to get hold of this value.
Posted to
Getting Started
(Forum)
by
roy_huntley
on 4/27/2007
Re: How to stop button click event from firing
To avoid the event firing on the client, you need something like onclick='return checkok();' in the button, and then in your checkok jscript function, return true or false depending on your condition.
Posted to
Web Forms
(Forum)
by
roy_huntley
on 4/27/2007
Re: How to dynamically create pages each time a user signs up?
For EditUser, you wouldnt use querystring at all. You would simply get the username out of session and display the page relevant to that userid. No querystring needed at all...theres no point if you have the username of the current logged in user in session ! ViewUser will use querystring though.
Posted to
Web Forms
(Forum)
by
roy_huntley
on 4/27/2007
Re: How to dynamically create pages each time a user signs up?
Yes, almost certainly. I used querystring as a simple example, but realistically, when a user is logged in, you would have their username/id stored in session. Glad to help
Posted to
Web Forms
(Forum)
by
roy_huntley
on 4/27/2007
Page 1 of 5 (49 items) 1
2
3
4
5
Next >
TechNet Edge:
Microsoft Windows Server 2008 to AITP
ASP.NET:
How important is medium trust to you?
WindowsClient:
Microsoft Web Platform & You
WindowsClient:
New Book: Developing for Microsoft Surface
Channel 9:
BugCamSmash in Action!
Channel 9:
Virtual Earth Videomap Movies
TechNet Edge:
AD RMS Certificates and Licensing on the Client and the Server
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 10 of 13 [C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 10 of 13]
Channel 10:
Bing Launches 2nd Homepage Photo Contest
Channel 10:
Bing4Free Lets You Use Bing.com Images for Desktop Wallpaper
Channel 10:
Bing Updates: Streetside Views, Photosynth, and "Mapplications"
Channel 10:
Bing for Windows Mobile Updated
WindowsClient:
New WPF Showcase: Bling Tweets
WindowsClient:
Tale of two tweets - VS beta - is it busy 70% of the time or is it brilliantly fast?
TechNet Edge:
Forefront TMG URL Filtering and MRS
Mix Online:
Using the HTML5 Video and Audio Tag with Gestalt
WindowsClient:
Subclassing Shape (or more accurately, Path)
WindowsClient:
Having trouble deleting files? Try this
Channel 9:
Nick Baker: Xbox Architecture
TechNet Edge:
Thrive Live! Behavioral Interviewing: A behavioral answer is always the correct answer
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online