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...
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 ?
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" />...
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...
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 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...
I am going crazy over this.
No error message on the javascetp console. Here is the code:
<a href="#" onclick="Javascript:goback();" onMouseOver="return changeEdit()"
onMouseOut="return changeEditBack()">
<img name="edit" src="images\edit1.gif" border="0" WIDTH="105" HEIGHT="25"></a>...
I am creating a generic class which will be used from asp.net console apps and web apps.
I need to use something like Application.Path so that I can have only 1 copy of the class.
I do not want to have the same copy at 2 places with just a path different:
for console apps, it will be the...
How can I ping a server from classic asp and check if the server is responding to this ping ?
If the ping fails, I will connect to an alternate server.
There are 7 such server , and I will connec to the 1st responding one.
what is wrong with this sp:
create procedure tstSP @ret char(10)=null OUTPUT
AS
.
.
.
SET @ret='returnval'
RETURN @ret
when I execute this, I get the following message:
Syntax error converting the varchar value 'returnval' to a column of data type int.
On debug the value of @ret is set...
This this code will explain:
<object type="application/pdf" height=600 width=900 data=http://www. somesite.com/show_pdf.pdf >
</OBJECT>
If the adobe reader is not on client, It comes up with the notfound icon:red X in a white box.
How can I detect that the object was loaded ?
On...
I have the following in an .asp page:
<EMBED height="600" width="900" src="" ></EMBED>
where the src is a pdf file from another web site hosted.
It is nothig fancy just plain text: max 5-7 pages.
On IE the embed opens up the pdf but I get the following error message on netscape 8:
Acrobat...
Must be some thing simple.
The aspx file has 3 buttons: on click of each, there is javascript validation -> set a hidden field -> submit.
Post back reads the hidden field and figures out which button was clicked and performs the set operation. One such is insert a record in db. Others re-build...
I have the following sitituation:
aspx: form with
<asp:Label id="txtMoveTo" Font-Name="Arial"
Font-Size="8pt" runat="server"
EnableViewState="True" Text=" " />
The value is set via javascript based on other selections on the form.
Now I need to request this value in code-behind...
Sounds fairly straight:
I have a xml file with user created attributes:
<ou Text="test" img="Folder.Gif" exp="True" url="" cn="cc\cc\cc" >
How do I access the user defined attribites? text,cn ...
Thanks,
I have to manupilate huge trees: 3000+ nodes.
I have a program to build am xml file:hierarchal data.
Are there alternatives to the Microsoft treeview ?
thanks
I am reading data from an AD/OU: hierarchical format and writing an XML file using stream writer:
if (File.Exists(fname))
File.Delete(fname);
StreamWriter sr = File.CreateText(fname);
sr.AutoFlush=true;
< ... read data
tmp1= data;
sr.WriteLine ("{0}",tmp1);
sr.Flush();
...>...
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.