|
How to add reference to mpr.lib in ASP.net application
If you have faith in the cause and
the means and in God, the hot
Sun will be cool for you.
|
|
|
|
|
What on earth is mpr.lib ? AFAIK, you can't add a lib file to a .NET app. ASP.NET has nothing to do with it, the .NET part is your problem.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: What on earth is mpr.lib ?
Yeah. I googled it and found that mpr.lib is using in this control.
this article wrote: Add the mpr.lib library in, to be linked into your application. To do this select 'Project->Settings' to open the project settings dialog. Select the 'Link' tab and from the drop down box select the 'General' category. In the 'Object/Link modules' edit box, type in mpr.lib
but not sure whether this is the one that he is using..
I wonder why VS doesn't allow us to add *.lib?
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Because a .lib file is the compiled code to go with headers used to include a C++ library.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi friends
I need regular Expression string for single char '-' or values like 12.00 , -12.00 , 124.85 , -154.89 , -5.14 , 5.25 , 5247.25.......
User can add either single char - or values.
Thanks for advance
Pathan
---------------------------------------------------
|
|
|
|
|
Try
\A-\d*\.\d{2}\b|\b\A\d*\.\d{2}$
This will match all in the this pattern -10.00 and 10.00
|
|
|
|
|
Hi navneeth
I have tried all string 12.00 , -12.00 and - but didnt matched.
Please check out
Pathan
---------------------------------------------------
|
|
|
|
|
It is matching 12.00 and -12.00. Do you need any more combinations to be matched ? You are using this in .NET right ?
|
|
|
|
|
Ya. I am working in .net 2.0.
It should be also accept only a single char '-'.
Pathan
---------------------------------------------------
|
|
|
|
|
Imran Khan Pathan wrote: It should be also accept only a single char '-'.
\A-\d*\.\d{2}\b|\b\A\d*\.\d{2}$|\A-{1}$
|
|
|
|
|
hi friend
i am using remoting on same system then its work properly . if i using remoting server on different system and client on different system then error generates:-
A remote side security requirement was not fulfilled during authentication. Try increasing the ProtectionLevel and/or ImpersonationLevel.
any body tell me what problem here and how to remove this problem...
help me
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
Are you using impersonation in the application that calls the remoting object?
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
<identity impersonate="true ">
i am using this but there is no any effect on error
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
If you are impersonating the ASPNET account with some other account, this only works on the local machine. As soon as you leave the machine to access another computer on the network, the user is changed back to ASPNET for security reasons.
I have had this kind of problem when trying to access a COM on another machine, I couldn't make impersonation work over the network, so I used remoting instead and everything worked fine. Maybe you need to set some permissions on the remote computer. Could it be that the remote PC has a firewall enabled? In this case, the remoting port you are using might be blocked.
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
Hello Friends ...
i migrated ASP.NET 1.1 application to 2.0 . i completed all the things after that i check with browser compatibility . and i changed HTML 4.0 v to HTML 4.01 v . in this .IE 7 working properly in MOZILA "OVERFLOW" CSS Property is not supporting and also its shows error on bellow line in CSS file
top:expression(this.offsetParent.scrollTop-0);
this is the overflow line ..
Please help for this ...
Thank u
Nanthakumar
|
|
|
|
|
nandhububbly wrote: top:expression(this.offsetParent.scrollTop-0);
expression doesn't support in non-IE browsers. So, you may need to handle this by using Javascript.
There are some CSS tricks that can be used instead of "expression." (eg: You can use max-width instead of width:expression(*** + "px") but it's too large to cover. maybe. you can tell us more details about why you use this and what it does in your application.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hello sir ... thank u soo much
i followed ur way but its not working actual process this project is reg Hospital management system. in one .aspx i need to add patient name and details and that same page i search exit patient option is there if i click search button that another page will come in that exit patient details is there so if i selected that one patient . that patient details comes previous .aspx page here blow that page one gridview is there that patient details comes under that page
so in that grid header contains patient id, name , ph no .. below that header name and id comes. if i scroll that datagrid that patient details overflow to that grid header this is actual function , this is working in IE but in Mozilla that datagrid header also overflow .
.CSS file
.gridFixedHeader
{
background-color:white;
font-size: 9pt;
color: #FFFFFF;
position: relative;
font-family: Airal,sans-serif;
border:#0066CC;
max-width :100px;
top:expression(this.offsetParent.scrollTop-0);// this line shows top doesn't have this property)
z-index: 1;
}
.aspx datagrid code
plz help for this
Thank u
|
|
|
|
|
Hello sir ... thank u soo much
i followed ur way but its not working actual process this project is reg Hospital management system. in one .aspx i need to add patient name and details and that same page i search exit patient option is there if i click search button that another page will come in that exit patient details is there so if i selected that one patient . that patient details comes previous .aspx page here blow that page one gridview is there that patient details comes under that page
so in that grid header contains patient id, name , ph no .. below that header name and id comes. if i scroll that datagrid that patient details overflow to that grid header this is actual function , this is working in IE but in Mozilla that datagrid header also overflow .
.CSS file
.gridFixedHeader
{
background-color:white;
font-size: 9pt;
color: #FFFFFF;
position: relative;
font-family: Airal,sans-serif;
border:#0066CC;
max-width :100px;
top:expression(this.offsetParent.scrollTop-0);// this line shows top doesn't have this property)
z-index: 1;
}
.aspx datagrid code
|
|
|
|
|
Hello sir ... thank u soo much
i followed ur way but its not working actual process this project is reg Hospital management system. in one .aspx i need to add patient name and details and that same page i search exit patient option is there if i click search button that another page will come in that exit patient details is there so if i selected that one patient . that patient details comes previous .aspx page here blow that page one gridview is there that patient details comes under that page
so in that grid header contains patient id, name , ph no .. below that header name and id comes. if i scroll that datagrid that patient details overflow to that grid header this is actual function , this is working in IE but in Mozilla that datagrid header also overflow .
.CSS file
.gridFixedHeader
{
background-color:white;
font-size: 9pt;
color: #FFFFFF;
position: relative;
font-family: Airal,sans-serif;
border:#0066CC;
max-width :100px;
top:expression(this.offsetParent.scrollTop-0);// this line shows top doesn't have this property)
z-index: 1;
}
.aspx datagrid code
DIV id="div-datagrid" style="overflow :auto ;Width :100%;HEIGHT: 100%"
|
|
|
|
|
Hi, I would like to have 2 questions on data reader object answered. Suppose I want to iterate through the data reader results using a while loop like the following:
While objDataReader.Read()<br />
'do something<br />
str = objDataReader("Supplier_Name")<br />
End While<br />
If my query which precedes the above while loop is (Select Supplier_Name from Suppliers where ShippingFee < $50.0).
1)Will the results include all the names within the Supplier_Name column or will they be just the names of suppliers whose ShippingFee is less than $50.0?
2)Will I need to tell it to read the next result until the EOF?
Thank you in advance for your help.
|
|
|
|
|
ASPnoob wrote: 1)Will the results include all the names within the Supplier_Name column or will they be just the names of suppliers whose ShippingFee is less than $50.0?
they will be just the names of suppliers whose ShippingFee is less than $50.0.
ASPnoob wrote: 2)Will I need to tell it to read the next result until the EOF?
No.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
hi all
i want show product same page amazon so i dont know have control in .net 2.0, can do it ???
i am trying build to desgin table with codebehind
but have problem: it only show cell Price on function CreateTable
could u show to me ?????
on the page desgin i have control:
<asp:table id="tabaddform" runat="server" cellpadding="0" cellspacing="0">
and in codebehind into function Page_Load is function viewdata
TableCell tblCell;
TableRow tblRow;
Table tbltable;
Image imgView;
Label lblLable;
private void ViewData()
{
try
{
DataTable dt = LoadData();
string strName, strPrice, strImg;
//y Counter int y = 0;
for (int i = 0; i < dt.Rows.Count; i++)
{
strName = dt.Rows[i]["ProductName"].ToString();
strPrice = dt.Rows[i]["UnitPrice"].ToString();
strImg = dt.Rows[i]["linkimg"].ToString();
if (y == 0)
{
tblRow = new TableRow();
}
tblCell = new TableCell();
//createTable
tblCell.Controls.Add(createTable(strName, strPrice, strImg));
tblRow.Cells.Add(tblCell);
tabaddform.Rows.Add(tblRow);
y++;
if (y == 3)
{
y = 0;
}
}
}
catch (Exception ex)
{
throw ex;
}
}
And function
private Table createTable(string strName, string strPrice, string strImg)
{
try
{
tbltable = new Table();
//Add image
tblRow = new TableRow();
tblCell = new TableCell();
imgView = new Image();
imgView.ImageUrl = strImg;
imgView.ID = "img" + strName;
tblCell.Controls.Add(imgView);
tblRow.Cells.Add(tblCell);
tbltable.Rows.Add(tblRow);
//add Name
tblRow = new TableRow();
tblCell = new TableCell();
lblLable = new Label();
lblLable.ID = "lblName" + strName;
lblLable.Text = "Name: " + strName;
tblCell.Controls.Add(lblLable);
tblRow.Cells.Add(tblCell);
tbltable.Rows.Add(tblRow);
//add Price
tblRow = new TableRow();
tblCell = new TableCell();
lblLable = new Label();
lblLable.ID = "lblPrice" + strName;
lblLable.Text = "Price: " + strPrice +"$";
tblCell.Controls.Add(lblLable);
tblRow.Cells.Add(tblCell);
tbltable.Rows.Add(tblRow);
return tbltable;
}
catch (Exception ex)
{
throw ex;
}
}
|
|
|
|
|
Use The following code insted your:
DataTable dt = new DataTable();
System.Text.StringBuilder sw = new System.Text.StringBuilder();
sw.Append("");
for (int row = 0; row < dt.Rows.Count; row++)
{
sw.Append("");
for (int col = 0; col < dt.Columns.Count; col++)
{
sw.Append("");
}
sw.Append("");
}
sw.Append("" + dt.Rows[row][dt.Columns[col].ColumnName].ToString() + " | ");
HtmlTable tbl = new HtmlTable();
tbl.InnerHtml = sw.ToString();
panel1.Controls.Add(tbl);
Naresh Patel
|
|
|
|
|
thanks it good idea
But i dont want to use HtmlTable
could u tell me how can i assgin sw to desgin
ex:
<% sw.tostring()%>
|
|
|
|
|
A dropdownlist is calling a function. The function needs to capture the id (__EventTarget) of the control and the value (__EventArugment).
Below is the code that I have, it can successfully capture and display the id of the drdopdownlist but it does not
capture anything for the selected value (__EventArugment). I've seen similar code being used by others and it seems to be working fine for them
Any help would be greatly appreciated.
Aspx Page:
<code><%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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:DropDownList ID="DropDownList1" runat="server" OnSelectedIndexChanged="function" AutoPostBack="true">
<asp:ListItem Text="1" Value="1"></asp:ListItem>
<asp:ListItem Text="2" Value="2"></asp:ListItem>
<asp:ListItem Text="3" Value="3"></asp:ListItem>
<asp:ListItem Text="4" Value="4"></asp:ListItem>
</asp:DropDownList>
</div>
</form>
</body>
</html>
</code>
Code Behind:
<pre>
<code>using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void function(object sender, EventArgs e)
{
Response.Write(Request.Form["__EVENTARGUMENT"] + Request.Form["__EVENTTARGET"]);
}
}
</code>
|
|
|
|