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...
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.