The problem being, the integer is not a user input.
I need to say:
if (id != null) {
}
It does not compile, I get the following:
Operator '!=' cannot be applied to operands of type 'int' and '<null>'
If I try
Convert.ToInt32(id)
It compiles but I get a runtime error...
That works as sugggested:
I have a css file and added a custom class for this.
Now I need to do a lot of cosmetic changes for a nice look and feel.
You get a star!.
thanks again ca8msm
I need the features of both list box and datagrid:
Scroll bar
Multi Column
The list is readOnly.
I need to build these lists on dynamically: onPostBack.
To start with the visible attribute will be false, and postback will build the list based on user selection and set the visible to true ?
The following is a good article:
http://ryanfarley.com/blog/archive/2005/03/11/1886.aspx
As I have linked buttons, simple
Request.Params.Get("__EVENTTARGET")
serves my purpose.
-raghu
I have a set of 6 linkbutton controls on a page : click of each will show a part of data on the page.
How can I know which linkbutton was clicked in post back?
my sample code:
<asp:LinkButton id="a1" runat="server" Text="Name" />
<asp:LinkButton id="a2" runat="server" Text="Address" />...
Lesson learnt.
Works after compiling.
Also have 2 nested web controls: nothing fancy, just headers and footers.
Found out that the following gives error:
Request.ServerVariables["PATH_INFO"];
Replaced with fully qualified ...
HttpContext.Current.Request.ServerVariables["PATH_INFO"];
which...
I did not compile: Honestly in my previous .net apps, I did not compile. I understood this as the apps will compile on 1st time use. Will try to compile before checking on the browser.
Thanks a lot vbkris: will update the status.
asp.net 1.1 with visual studio 2003.
Cannot migrate to .net 2.0 as the web servers etc have to migrate, these have a variety of 3rd party apps.
I am so lost,
With reference th the following thread:
thread855-1049521
I am basically hitting a wall to have a base page as a common repository for a set of functions:
maybe I will have 2 user controls: header and footer.
Rest will be just c# functions and some business logic, set-reset session variables...
We upgraded one of servers from windoes 2003 to windows 2003 SP1, there were no problems.
I tried the above web site on firefox and get the following error message:
The server at 192.168.42.1 is taking too long to respond.
* The site could be temporarily unavailable or too...
Was it working before ?, If so what has changed.
What is the HTTP error message: 400/403/404 ...
I would try accessing by IP address , maybe a name issue?
Hello,
This sounds pretty simple and straight:
I have a generic page_header file: header.ascx which is a common header across the web site.
Would now prefer to have the style sheets in this header so that I can refernce them all over. The traditional html link tag in the header.ascx does not...
I have installed the library: the link above points to an Enterprise Library june 2005 and the library has different components. I am going through the documentation as well.
I don't have ADO.NET 2. I am nut sure how to find this also.
I am migrating an access db to SQLSERVER with enhancements: .net UI, brand new design, more functionality, more data etc.
I have the dbschema/layout from the users. They have given foreigh keys to every table. The current access will be used only to import in existing data. the data is not very...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.