|
|
u can also try Free text box editor
but i in this u can also add images.
<a href="http://freetextbox.com"></a>
amit patel
amit patel
|
|
|
|
|
Hello
I have a listbox that I populate with ma BD(c#), since the list is long I want to introduce the search.
I like to use a TextBox when if I write the word it will be automatically selected in list box
Thank you for helping me.
|
|
|
|
|
|
Hi; Thank you very much Abhijit Jana .
I never used ajax controls,their coding is the same as those of visual studio?
|
|
|
|
|
See before using AJAX in your web application make sure what is your requirment is. You can do the same using javascript also, I suggested AJAX because using that you can do it easily.
You can go through some video from here to understand better
http://www.asp.net/web-forms/ajax[^]
Let me know if you need any more help
|
|
|
|
|
|
|
hi iam using asp.net with c#
i want to display image in a image control as soon as we browse with file upload control ,i dont want to use button click event
<img src="" id="test" alt="test" class="thumbnailImage" onmousemove="zoomImage('test')" onmouseout="hideImage('test')" runat="server"/>
<asp:FileUpload ID="FileUpload1" runat="server" Style="z-index: 100; left: 337px;
position: absolute; top: 384px" Height="32px" Width="1px" Font-Size="Small" />
can you give example which helps me
|
|
|
|
|
|
hi iam using asp.net with c#
i want to change the text for file upload control , ie Browse ,i want to remove and write other text . but there is no option in properties of file upload control.can you give me example which helps me
|
|
|
|
|
Browser will automatically localize the word "browse". That is, if your users have a french browser installed, it'll automatically say 'naviger' (or whatever). It isn't an ASP.NET thing, it's a browser thing.
If you want though, using CSS, you can do some neat stuff:
Styling an input type="file"[^]
|
|
|
|
|
Hi,
I am new in ASP.NET MVC
I have two dropdown list in my page.
I want to populate one dropdown at other's selected index change.
How can I do it with ASP.NET MVC?
Thanks in Advance
|
|
|
|
|
|
Hello everybody and thanks in advance!
In my project, I cant figure out why the event OnClick doesn't fires when using a rewritten url (using URLRewrittingNet).
Buttons lies everywhere on several pages and at the master page too.
I have tried to set the form's action method throught asp.net 3.5 "form.action" feature and also by using a
custom form builder.
Any ideas???
|
|
|
|
|
Form.Action has nothing to do with event handlers, nor can I see any relation to the url. Event handlers are wired up either declaratively in your markup or via code in your code behind. Start checking to make sure the events are still set.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Thanks for your time.
How should I start checking??
I 've tried both methods of event wiring and also tried autoeventwireup.
Just to mention, all events are fired properly when calling the physical file on my browser (eg. localhost/pages/default.aspx)
but if I call the rewritten url (eg.localhost/default.aspx) or do a cross page postback or redirection towards it, all onClick events are not fired.
|
|
|
|
|
Again, the process of rewritting the url has nothing to do with how the asp.net engine parses and renders the page. Make sure the page is the correct, the one you are expecting
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I know it sounds impossible ( I am suprised my self). Tha page that I am expecting works fine if I call the physical file. To be more specific I have a user control on my master page which selects language by clicking on a flag icon. The control and all the other buttons (on usercontrols,masterpage,content pages) are behaving as expected. Now, calling the same page (but throught the rewritten URL) my buttons are not responding to onclick events (even breakpoints won't pause the execution). I am talking about the SAME page, the same Class, the same codebehind file, just different URLs
|
|
|
|
|
hi iam using asp.net with c#
iam using tab ccontainer of ajax control , inside this iam using update panel and drop down list but drop down list not performing any action
and when you select any item from drop down list it gives error
error
========
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation
and tab container while designing not showing controls and shows 1 could not be set on property 'ActiveTabIndex'
code
====
<cc1:TabContainer ID="infotab" runat="server" ActiveTabIndex="1" >
<cc1:TabPanel ID="TabBranchpanel" runat="server">
<HeaderTemplate>Orders</HeaderTemplate>
<ContentTemplate>
<asp:UpdatePanel ID="pannelupdate" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true"><ContentTemplate><asp:DropDownList ID="ddlconnectivity" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlconnectivity_SelectedIndexChanged"><asp:ListItem Value="DSL">DSL</asp:ListItem><asp:ListItem Value="Connect">Connect</asp:ListItem><asp:ListItem Value="Not Available">Not Available</asp:ListItem><asp:ListItem Value="Others">Others</asp:ListItem></asp:DropDownList></ContentTemplate><Triggers>
<asp:AsyncPostBackTrigger ControlID="ddlconnectivity" EventName="SelectedIndexChanged"/>
</Triggers></asp:UpdatePanel>
protected void ddlconnectivity_SelectedIndexChanged(object sender, EventArgs e)
{
if (ddlconnectivity.SelectedValue =="Dsl"||ddlconnectivity.SelectedValue=="Connect" || ddlconnectivity.SelectedValue == "Others")
{
txtconnectaccount.Visible=true;
}
else {
txtconnectaccount.Visible = false;
}
}
how to solve this can you correct this code which helps me
|
|
|
|
|
It seems that you have put only 1 tab in ur Tabcontainer hence u have to use ActiveTabIndex="0" for slecting 1st tab.
Tell me if it works or not
Tej Aj,
http://opexsolution.com/forum/[^]
|
|
|
|
|
Hi
I have a dropdown list, and the values displayed in this come from an enum, which on load of the page I cast to an array and then bind to the dropdown list. The dropdown list is itself part of a details view. When the user selects a value this selected value is saved to the database via an object, which has a property of that enum type. The object is bound using Microsoft Object Container Data Source for the rest of the details view, but of course the dropdown list is bound using the array.
However, where am I stuck is when the user wants to edit a record, of course I want to show this record in the details view. Now I can show all the other fields in the detailsview using the Object Container Data Source, which also includes the value that the user selected from the drop down list when the record was entered. How do I set the drop down list to a value from the Object Container Data Source where the drop down list is bound to an enum/array?
Thanks
|
|
|
|
|
Can you provide code snippet for the same??
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
Hi
I am using Microsoft's MVC design pattern and I have a method in my controller, which sets the data source of a gridview. Whilst I can bind all the other values in the gridview, I am stuck setting 4 hyperlinks. The hyperlinks need to work in the explanation given in the link below: http://forums.asp.net/p/542979/3077895.aspx for forcing downloads to keep the location of where files are saved to private, which I want set in the controller.
To fully explain what I am doing, in my controller for the gridview, I am setting the gridview's data source using ICollection, which is an object containing results from a query. From this collection, I extract a value which has the name of a folder which contains a number files. So, what I have done is to cast my collection to a object, to get folder name and then use a foreach loop to get each folder name. Then to get the files inside each folder, I use Directory.GetFiles, which returns a string array - I wrote string[] files = Directory.GetFiles(ConfigurationManager.appsettings["filepath"]+folderName); . I have set 4 properties for each Hyperlink I want to set.
It is at this point where I am stuck, because even though I can get to the files, I am unable to set the Hyperlinks to these files. Each time I try an set the NavigateUrl property, I get the error message Object not set to an instance of an object. Plus, I have two other issues to resolve:
1) Even though there are 4 hyperlinks, not every hyperlink will be set. In other words, if there are only two files in the folder, I only want to set the appropriate hyperlinks. So, how can I iterate through the string array, and get each value inside the array to do a check?
2) When I set my Hyperlinks in my controller, how do I simply pass the file and keep the file's actual storage location hidden as given in the link http://forums.asp.net/p/542979/3077895.aspx
Thanks
|
|
|
|
|
When you say "Microsoft's MVC design pattern" you mean you have created an MVC application correct? What version? If you are using a MVC application then you have control of the output and formatting in the markup of view or you can set the ViewData or model appropriately. Perhaps if you showed some of what you are doing it would be clear.
Also, as note, if you are including a URL it is customary to make it a hyperlink so people can navigate without copy & paste
I know the language. I've read a book. - _Madmatt
|
|
|
|