|
How to get the selected item of dropdownlistbox in textbox or viseversa
|
|
|
|
|
dropdown1.selecteditem.text=textbox1.text;
|
|
|
|
|
DropDownList To TextBox
on SelectedIndexChanged()
{
TextBox1.Text=DropDownList1.SelectedItem.Text;
}
TextBox text to DropDownList
ButtonClick()
{
if (DropDownList1.Items != null)
{
for (int i = 0; i < DropDownList1.Items.Count; i++)
{
if (DropDownList1.Items[i].Text == TextBox1.Text)
{
DropDownList1.Items[i].Selected = true;
break;
}
}
}
}
Raju.M
|
|
|
|
|
Hi All,
I am using an ActiveX control for Thermal Printing in my website.... It is working fine for most of the client but now it is causig am unarthodox problem....
Once the activex is installed... it prints the label for first time only but when I issues the command for second time... the website hangs...
Closing the browser and logging again solve the purpose but only for the first print command... for second print command it hangs.
please suggest what is causing the problem???
Thanks in advance,
Vishav
|
|
|
|
|
Hi all,
I've installed SQLServer 2005 in my pc with its Reporting Services. I used it for months and i can create Reports, but this last month, we install SQLServer 2008, VS 2008 and .NET 3.5 framework. I installed all these components with out uninstalling the lower versions. Now, i tried to create again a new Reporting project in VS2005 but it gets me an error and i can't create new report project, nor can't open an existing reporting service project.
This is the error:
"Method 'get_UserContext' in type 'Microsoft.ReportDesigner.Project.ReportServerInformation' from assembly 'Microsoft.ReportingServices.Designer, Version 9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' does not have an implementation."
I tried to goggle but can't find anything explaining that error. Am i correct, maybe there's a conflict in installation? And i can't find the way to uninstall the Reporting Services. I tried to install it again, but it only stated, that the component is already installed.
Please can anyone help me. And send me a way to resolve it?
THANKS A LOT!
Regards,
Ewin
|
|
|
|
|
Just go to the Start->run->inetmgr .in that one find your project folder and right click on it,take the properties. You will get a window and select the ASP.NET tab ,there versions will be listed.Change that to 2.0,then click ok,
maybe this will help
!!!!!!!!!!
|
|
|
|
|
thanks. ah you are saying i have to change the asp .net version? but there's no project that has been created, no .sln file or anything, as in no project at all. I can't open the existing files/projects, that i've created before, so no build/compilation, and i can't assign or create also a virtual directory for it.
When i chose the New>Project>Business Intelligence Project>Report Server Project
that error message comes out that leads to no creation of project at all.
|
|
|
|
|
Hi,
I am trying to list the files stored in a directory on my web server, i want the visitor to be able to download these files. Following is the code.
]]>
Sub Page_Load(sender As Object, e As EventArgs)
Dim root As String = "files/"
Dim files() As String = Directory.GetFiles(root)
Dim sb As New StringBuilder(2048)
Dim f As String
For Each f In files
Dim filename As String = Path.GetFileName(f)
sb.Append("<br><a href="FileDownload?file=")<br" mode="hold" /> sb.Append(root).Append(Server.UrlEncode(filename))
sb.Append(">").Append(filename).Append("")
Next
fileList.Text = sb.ToString()
End Sub
</br>
<asp:label id="fileList" runat="server" xmlns:asp="#unknown">
and following is the filedownload.aspx (mentined as filedownload above) page
]]>
]]>
Sub Page_Load(sender As Object, e As EventArgs)
Dim root As String = "files/"
Dim filepath As String = Request.Params("file")
If Not filepath Is Nothing Then
If File.Exists(filepath) And filepath.StartsWith(root) Then
Dim filename As String = Path.GetFileName(filepath)
Response.Clear()
Response.ContentType = "application/octet-stream"
Response.AddHeader("Content-Disposition", _
"attachment; filename=""" & filename & """")
Response.Flush()
Response.WriteFile(filepath)
End If
End If
End Sub
<title>Untitled Document
this code is working file on my localhost. but is giving a prob on web as:
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customerrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customerrors> tag should then have its "mode" attribute set to "Off".
can anyone help me regarding this???
|
|
|
|
|
read what the error says and do it. Also, you'd do better to have your files all stored within the application root of your website. Then people could just be given a list and right click/save them, as well as fixing permissions errors.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
how to make editor to change the taxt of the text box. can i get some example . or tutorial.or can i get editor form internet..give me some links if anybody have thnx..
|
|
|
|
|
Google broken where you live ?
A textbox IS a text editor, if you want something more, there's many you can buy, and even some free ones.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
ok thnx i find one.....thnx for urs time
|
|
|
|
|
Hi,
I want to edit a pdf through code but we cannot edit it because pdf is readonly.
N!dh!
<div class="ForumMod">modified on Friday, February 13, 2009 4:25 AM</div>
|
|
|
|
|
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.
|
|
|
|