|
ok ... I've never done any ActiveX programming before. Any suggestions on where to start? I already know what functionality I need. Can I do activeX in .Net ?
|
|
|
|
|
I got this[^], when I searched in google.
|
|
|
|
|
I have a messagebox , which i call on the form load in the java script using the onload fucntion in the body tag.
when the form loads it automatically gets invoked.
i have a button too, on clicking the button , again the message box gets appeared.How i should avooid it.
<head runat="server"><br />
<script language="javascript" type="text/javascript"><br />
var a;<br />
a = false;<br />
function abc()<br />
{<br />
if(!a)<br />
{<br />
alert('hi');<br />
}<br />
<br />
}<br />
</script><br />
<title>Untitled Page</title><br />
</head><br />
<body onload="return abc();"><br />
<form id="form1" runat="server"><br />
<div><br />
<asp:Button ID="Button1" runat="server" Text="Button" /></div><br />
</form><br />
</body>
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Since it is a ASP:Button (Server Control), I guess, it is posting back and after postback, the page gets painted afresh causing the web browser to invoke the onLoad event handler.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi
Can any one please let me know wht's the best approach if i have to change the theme of my web application on different occasions in ASP.NET,thankx in advance, Reply ASAP,
Regards,
|
|
|
|
|
How about applying customized stylesheets mapped for each theme?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Have you looked at ASP.net 2.0 themes?
|
|
|
|
|
I have a master page . and a web page , it has master page properties,
Now in this web page i drag dropped a table , in the first rows of table , i drag dropped the script manager control, afterwards , i viewed the source file (html) then i the script manager tyag was shown underlined and was implying the error message
Script manager is now the known element.This can occur if there is a compilation error in the website.
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Forms_Default" Title="Untitled Page" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table>
<tr>
<td style="width: 100px">
<asp:ScriptManager id="ScriptManager1" runat="server">
</asp:ScriptManager></td>
<td style="width: 100px">
</td>
<td style="width: 100px">
</td>
</tr>
<tr>
<td style="width: 100px">
</td>
<td style="width: 100px">
</td>
<td style="width: 100px">
</td>
</tr>
</table>
</asp:Content>
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Help! I am a beginner in ASP.NET.
I have this code below to display images from my SQL Database to my ASP.NET website. But still wont work. What did I miss? Can someone please help me sort this?
Your help is greatly appreciated. Thanks.
==========================
<asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" RepeatColumns="4" RepeatDirection="Horizontal" DataKeyField="imgData">
<ItemTemplate>
<asp:Label ID="EmployeeNameLabel" runat="server" Text='<%# Eval("EmployeeName") %>'>
</asp:Label><br />
Department:
<asp:Label ID="DepartmentLabel" runat="server" Text='<%# Eval("Department") %>'>
</asp:Label><br />
<asp:Image ID="Image1" runat=server ImageUrl='<%# Eval("imgData", "{0}") %>'/>
</ItemTemplate>
</asp:DataList><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MYSQL%>"
SelectCommand="SELECT [EmployeeID], [EmployeeName], [Department], [imgData] FROM [tblStaff]">
</asp:SqlDataSource>
aigreen.net
|
|
|
|
|
imgdata is of image type?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Yes, it is an image type. I am getting problem in my code expression in binding to image url just to display my image using datalist.
aigreen.net
|
|
|
|
|
whar code u r using ? can i see it?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Below is the whole code: in ASP.NET
=======================
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Display.aspx.vb" Inherits="Display" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" RepeatColumns="4" RepeatDirection="Horizontal" DataKeyField="imgData">
<ItemTemplate>
<asp:Label ID="EmployeeNameLabel" runat="server" Text='<%# Eval("EmployeeName") %>'>
</asp:Label><br />
Department:
<asp:Label ID="DepartmentLabel" runat="server" Text='<%# Eval("Department") %>'>
</asp:Label><br />
Position:
<asp:Label ID="PositionLabel" runat="server" Text='<%# Eval("Position") %>'></asp:Label><br />
email:
<asp:Label ID="emailLabel" runat="server" Text='<%# Eval("email") %>'></asp:Label><br />
<asp:Image ID="Image1"
runat=server
ImageUrl=
'<%# Eval("imgData", "{0}") %>'
/>
<br />
<br />
</ItemTemplate>
</asp:DataList><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MYSQL %>"
SelectCommand="SELECT [EmployeeID], [EmployeeName], [Department], [Position], [email], [rank], [imgData] FROM [tblStaff]">
</asp:SqlDataSource>
</div>
</form>
</body>
</html>
aigreen.net
|
|
|
|
|
if u have a image datatype , then for retrieving the pic u
http://aspalliance.com/140_Retrieving_Images_from_SqlServer_in_ASP_NET[^]
Hope this will help u.
Please let me know if u still face the problem.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
How can i make the dsn for sql server 2000 programatically?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
How should i make a crystal report formula field for the date
In the database it is 12/12/2000 23:10:12
i want 12/12/2000
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Hello,
I have datatable and it is populated with some values.
Is it possible to add a column in an exiting datatable now with a auto increment values?
I am trying like this but it does'nt wotk
dslistItems1.Tables[0].Columns.Add("ID", Type.GetType("System.Int32"));
DataColumn[] pk = new DataColumn[1];
pk[0] = dslistItems1.Tables[0].Columns["ID"];
//dslistItems1.Tables[0].PrimaryKey = pk;
dslistItems1.Tables[0].Columns["ID"].AutoIncrement = true;
dslistItems1.Tables[0].Columns["ID"].AutoIncrementSeed = 1;
dslistItems1.Tables[0].Columns["ID"].ReadOnly = true;
This code doesn't populate the values in the column
Regards,
Pavas
|
|
|
|
|
You are trying to use this code to create a new column in the database? The DataSet is a disconnected, in-memory representation of the database, if you want to add a column into the actual database table you'll need to issue an ALTER table sql statement.
only two letters away from being an asset
|
|
|
|
|
No I do not want to add it to database table. I have a populated datatable and then I want to add an autoincrement datacolumn to a data table.
The purpose is I want to create relations among other datatables present in the dataset.
Regards,
Pavas
|
|
|
|
|
|
please can any one help me to solve my error when i run the setup of my vb.net application then an error occur like
"the type initializer for CrystalDecisions.CrystalReports.Engine.ReportDocument threw an exception"
its urgent
|
|
|
|
|
hi ravi
i am new but working on VS 2005. After reading your post i just understand that your application consist of Crystal Report but at the time of installation it throws installation. I searched on the google got the following link. Hope this will help you.
Thanks & Regards
Dilip
.Net Consulting
|
|
|
|
|
Hi all ,
I am using Asp.Net 1.1.. How can Enumurate all the rows in a datagrid ? .This works in 2.0. But what about 1.1
For each Row as GridViewRow in GridView1.Rows
Next Row
Thanks in advance
Dana
modified on Thursday, January 17, 2008 7:20:50 AM
|
|
|
|
|
There's a clue in the variable types here, if you look for it... Or you could look at what type of row a collection of rows in a datagrid contains.
|
|
|
|
|
dear all,
i have developed a web application using asp.Net 2.0, i have a database,site on X machine (works as domain). i have access that site from client Y machine.
Application copy the file from Z machine to X machine, Z machine under the domain (X machine). i have copy file with following code
my.computer.network.download("http://IP of Z machine/folder/fileName","Location on X machine")
when i execute the code it will throughs an execption of "UnAuthorisation" on above code.
i have login on Z machine from X machine (with IP and Computer name also)
where i am wrong???
what should i do?
please help...
thankx in advance
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|