|
see stop Posting words like "Urgent" here we dont work for you.
seee this http://www.pdfonline.com/easypdf/sdk/sample_code.htm[^]
Hope it helps
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswam@its.co.za
|
|
|
|
|
NidhiKanu wrote: pls help me its urgent.
I'm sorry, but it's actually not urgent at all.
You need to buy a PDF library.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi all,
I have a gridview and in that, one template field is there with a link button.When i click in that field ,i want to get the full path from link button.I want to send the path to a function.The codes is somewhat like this
function abc()
{
alert(path from linkButton(Music_path);
}
<asp:gridview id="GridView1" runat="server" autogeneratecolumns="False" cellpadding="4" xmlns:asp="#unknown">
DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" style="z-index: 102; left: 202px; position: absolute; top: 238px" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
<footerstyle backcolor="#507CD1" font-bold="True" forecolor="White">
<columns> <asp:templatefield headertext="No" insertvisible="False" sortexpression="No">
<edititemtemplate>
<asp:label id="Label1" runat="server" text="<%# Eval(" no=") %>">
<itemtemplate>
<asp:label id="Label1" runat="server" text="<%# Bind(" no=", ">
<asp:templatefield headertext="Music_Path" sortexpression="Music_Path">
<edititemtemplate>
<asp:textbox id="TextBox1" runat="server" text="<%# Bind(" music_path=") %>">
<itemtemplate>
<asp:linkbutton id="LinkButton1" runat="server" text="<%# Eval(" music_path=", ">OnClientClick="javascript:abc();">
<asp:templatefield headertext="Name" sortexpression="Name">
<edititemtemplate>
<asp:textbox id="TextBox2" runat="server" text="<%# Bind(" name=") %>">
<itemtemplate>
<asp:label id="Label3" runat="server" text="<%# Bind(" name=", ">
<rowstyle backcolor="#EFF3FB">
<editrowstyle backcolor="#2461BF">
<selectedrowstyle backcolor="#D1DDF1" font-bold="True" forecolor="#333333">
<pagerstyle backcolor="#2461BF" forecolor="White" horizontalalign="Center">
<headerstyle backcolor="#507CD1" font-bold="True" forecolor="White">
<alternatingrowstyle backcolor="White">
and when i am clicking the template field ,just i want to alert that path.
here the field is Music_path(i dont know whether the binding is correct or not)
Please help!!!!!!!!!
modified on Friday, February 13, 2009 2:55 AM
|
|
|
|
|
For binding the text use this
Text='&<%# bind("question_groupdesc") %>'
in the function abc pass parameter as this
and while calling the function pass any name as parameter say (args)
for getting the path in the alert write
alert(args.value)
let me know if you have any problem
|
|
|
|
|
I'm currently working on a page that has two ContentPlaceHolder areas:
<asp:Content ID="Content1" ContentPlaceHolderID="StepsContentPlaceHolder" Runat="Server">
<a href="...">Choose your item</a>
<asp:CompareValidator ID="Validator" runat="server" ErrorMessage="*"
Operator="NotEqual" Type="Integer" ValueToCompare="-1" ControlToValidate="PickMe"/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContentPlaceHolder" Runat="Server">
<MyControls:PickSomething ID="PickMe" runat="server"/>
</asp:Content>
The idea here is that the user can choose an option using the PickSomething control in the Content2 ContentPlaceHolder and if the selection is invalid the Validator in the Content1 ContentPlaceHolder will display the error message.
My question is how to get the Validator to in Content1 connected to the control in Content2 . When I run this I get an "Unable to find control id" exception.
I've looked on the web for a solution but haven't run across anything helpful. Can somebody point me in the right direction?
Thanks in advance.
|
|
|
|
|
i want to upload image and at time display thubl(like orkut) plz give me code
|
|
|
|
|
|
Hi friends,
I am using Asp.Net 2.0 application. I have a user information form like username, password,name,lastname etc., I stored this information in a database. In the user information form one view button available. Suppose user click the view button, i show the information of user from database. What my query is that i need to show some fields like encrypted method from database. ie password and mobile no like **** or some encrypted no.Is it possible in .Net that encrypted data from database to our front end.
Hope Your's reply.
Every Successful Person Have A Painful Story
|
|
|
|
|
With the information you have provided,
do you mean your data is stored in database in an encrypted form and you need to decrypt it before showing it to user ?
(well, if you have stoted it in an encrypted manner you should know how to decrypt it too ?? if you are not aware of how it was encrypted ask the person who has done it)
Or
do you want to show the data in an encrypted way(****) to the user ?
(i doubt this would be usefull ?? )
|
|
|
|
|
I want to show the data in an encrypted way(****) to the user
Your second option is only i want. I dont want to store data in database in an encrypted form.
Hope yours reply.
Every Successful Person Have A Painful Story
|
|
|
|
|
As I already mentioned, what is the point in showing the user ******* ?
An input box with type password could be used [^]
|
|
|
|
|
Hi,
I am using a Treeview control with xml file as source file. I have given the html source code below.
<asp:TreeView ID="TreeLeftNavigation" runat="server" DataSourceID="XmlDataSource1" ImageSet="Simple" OnTreeNodePopulate="TreeLeftNavigation_TreeNodePopulate" >
<DataBindings>
<asp:TreeNodeBinding DataMember="Countries" Text="Countries" Value="Countries" />
<asp:TreeNodeBinding DataMember="continent" TextField="cont" />
<asp:TreeNodeBinding DataMember="country" TextField="coun" />
<asp:TreeNodeBinding DataMember="language" TextField="lang" NavigateUrlField="Url"/>
<asp:TreeNodeBinding DataMember="captial" TextField="cap" />
<asp:TreeNodeBinding DataMember="cities" TextField="city" />
</DataBindings>
<ParentNodeStyle Font-Bold="False" />
<HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" />
<SelectedNodeStyle Font-Underline="True" ForeColor="#5555DD" HorizontalPadding="0px"
VerticalPadding="0px" />
<NodeStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="Black" HorizontalPadding="0px"
NodeSpacing="0px" VerticalPadding="0px" />
</asp:TreeView>
<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/XMLFile.xml"></asp:XmlDataSource>
This is my xml file content.
<?xml version="1.0" encoding="utf-8" ?>
<Countries>
<continent cont="NorthAmerica">
<country coun="United States of America">
<language lang="English" Url="Header.aspx"></language>
<capital cap="Washington D.C"></capital>
<cities city="Chicago"></cities>
</country>
</continent>
<continent cont="Europe">
<country coun="United Kingdom">
<language lang=" English" Url="Header.aspx"></language>
<capital cap="London"></capital>
<cities city="Bristol"></cities>
</country>
</continent>
</Countries>
Here i have given the url link in xml file. I am getting the url value thru NaviageUrlField property of TreeView control. I want to get the selected leaf node url value when i am clicking on some leaf node. Pls help me.
Tnx in advance.
|
|
|
|
|
try this for your solutions I hope it works for u.
protected void Node_Populate(object sender, System.Web.UI.WebControls.TreeNodeEventArgs e)
{
if (e.Node.ChildNodes.Count == 0)
{
switch (e.Node.Depth)
{
case 0:
function(e.Node); //here u can get the node value
break;
}
}
}
Vijay V.
Yash Softech
|
|
|
|
|
hi. i'm developing an asp.net application. here i want to drag and drop a div on html table's cell. now i want to get id of that cell on which div was dropped. please help me.
|
|
|
|
|
it is possible to implement dnd using JS.
For a sample, please check this[^]
Calin
|
|
|
|
|
I have an FTP server configured to a directory that is inside the webserver root
Some times acessing files is not allowed
Any problem in doing the same
|
|
|
|
|
hi , when i run my asp.net page from IIS, it shows the following configuration error
how could to resolve..?
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 43: ASP.NET to identify an incoming user.
Line 44: -->
Line 45:authentication mode="Windows"
Line 46:
|
|
|
|
|
Explain the Steps you took when deploying your application
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswam@its.co.za
|
|
|
|
|
previously i went to IIS tree, right-click the Default Web Site item and choose New -> Virtual Directory
gave alias name,then physical directory path,and gave virtual directory access path,and finished.
then i delete the virtual directory
and configure again with the same process, i dont know how the things went wrong previously,
now my index page is working, here am getting user name and login,
when i give signin button am getting error as
Server Error in '/MySweethomes' Application.
Cannot open database "test" requested by the login. The login failed.
Login failed for user 'SOFTWARE\ASPNET'.--------------> here my database name is 'SOFTWARE\test'
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Cannot open database "test" requested by the login. The login failed.
Login failed for user 'SOFTWARE\ASPNET'.
Source Error:
Line 23: {
Line 24: SqlConnection conn = new SqlConnection(ConnStr);
Line 25: conn.Open();
Line 26: string MyQuery = "SELECT USERNAME,PASSWORD FROM LoginDB " + "WHERE USERNAME = '" + UName + "' AND PASSWORD = '" + Pass + "'";
Line 27: SqlDataAdapter Sda = new SqlDataAdapter(MyQuery, conn);
Source File: F:\SweetHomes\SweetHomes\Login.cs Line: 25
self confidence+hard work=SUCCESS
|
|
|
|
|
This tells me that your Connection string in your web.config is poiting to an incorrect database or path.
Post your Connection String in your Web.Config and let us see
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswam@its.co.za
|
|
|
|
|
do you want all lines from that,,?
i coded only as
appsettings
add key="MyConnection"
value="Data Source=SOFTWARE;Initial Catalog=test;Integrated Security=True;" />
add/appsettings
authentication mode="Windows"
self confidence+hard work=SUCCESS
|
|
|
|
|
Where is the Username and Password ?
That is why it gives errors, try to write it like this
<add key="MyConnection" value="User id = sa;Password=mypass;Server=SOFTWARE;Database= test" />
If you are working with SQL Server you must always pass the username and password
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswam@its.co.za
|
|
|
|
|
there is no user name and password..
and i execute
exec
sp_grantdbaccess N'SOFTWARE\ASPNET', N'ASPNET'
exec
sp_addrolemember N'db_owner', N'ASPNET'
this commands and now its working,
self confidence+hard work=SUCCESS
|
|
|
|
|
You execute this in SQL ?
If yes, then before you execute this, you must first login in order to run Commands, so that user name and password that you use to log in there , is what is needed.
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswam@its.co.za
|
|
|
|
|
i solve this problem
i execute the following query and now its working
exec
sp_grantdbaccess N'SOFTWARE\ASPNET', N'ASPNET'
exec
sp_addrolemember N'db_owner', N'ASPNET'
and .... !!
after successfully login am showing a page and in that am updating a content of text in to text file,
now when i try to update the text content am getting as
Could not find a part of the path 'C:\windows\system32\SweetHomes\Documents\SweetHomes.txt'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\windows\system32\SweetHomes\Documents\SweetHomes.txt'.
Source Error:
Line 43: string fname = "SweetHomes\\Documents\\SweetHomes.txt";
Line 44: string readcontent;
Line 45: StreamReader Srdr = new StreamReader(fname);
Line 46: readcontent = Srdr.ReadToEnd();
Line 47: Srdr.Close();
Source File: F:\SweetHomes\SweetHomes\AdminInfo.aspx.cs Line: 45
self confidence+hard work=SUCCESS
|
|
|
|