|
I want to add a multiple attachment control in my site. Only 1 attachment can be added at a time. When user clicks on "Add Another Attachment" link, he is able to add another attachment & so on, just like gmail. Please help me accordingly.
|
|
|
|
|
Start here[^].
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
|
Hi,
I am using jquery autocomplete.
I am implementing multi values for autocomplete
while entering data into text box is fine.
But when page is post back I am displaying the previously selected values, now if i want to delete the selected values how can i know which value is deleted from text box.
And my data is from database if user keep on pressing back space or select content from text box and click on delete can i know which value is selected and which value is deleted.
Here is my sample code
$("#personGroupID").autocomplete({ minLength: 3,
multiple: true,
mustMatch: true,
autoFill: true,
source: function (request, response) {
currentvalue = this.term.split(', ');
searchlength = currentvalue.length;
var theUrl = "/Pages/ITS/ITSLookUpService.aspx?Type=PersonGroup&Value=" + currentvalue[currentvalue.length - 1].toUpperCase();
$.ajax({
url: theUrl,
data: request,
dataType: "json",
type: "POST",
success: function (data) {
response(data);
}
});
},
select: function (event, ui) {
var terms = split(this.value);
terms.pop();
terms.push(ui.item.DESCRIPTION);
terms.push("");
var selectedvalue = document.getElementById("personGroupID").value;
if (selectedvalue = "") {
document.getElementById("personGroupID").value = terms.join(", ");
}
else {
}
if (document.getElementById("HiddenPersonGroup").value != "") {
var selectedpersongroupsk = document.getElementById("HiddenPersonGroup").value.split(',');
var exist = false;
for (var i = 0; i < selectedpersongroupsk.length; i++) {
if (selectedpersongroupsk[i] == ui.item.PRSG_SK) {
exist = true;
}
}
if (!exist) {
document.getElementById("HiddenPersonGroup").value = document.getElementById("HiddenPersonGroup").value + "," + ui.item.PRSG_SK;
$("AssignedPersonGroup").val(this.personGroupID.value + "," + ui.item.DESCRIPTION);
}
}
else {
$("HiddenPersonGroup").val(ui.item.PRSG_SK);
$("AssignedPersonGroup").val(ui.item.DESCRIPTION);
}
return false;
}
If i want to delete the data from text box how can know which value is deleted.
|
|
|
|
|
Member 8482949 wrote: But when page is post back I am displaying the previously selected values,
That's the proper behavior of a postback to the server.
If you populate a dropdown or listbox on the server side, the server maintains the list of values, and expects the same list of values to postback, with one of them having the selected attribute.
You can alter the contents of an edit box, for the server does not care what value is returned on postback.
If you don't like the behavior, then populate the dropdown box using JQuery when the DOM is ready, and take the selection and copy it into a edit box, then post the page back using the edit box for the value.
Also, a web service uses the asmx extension, and not the aspx extension. The wrong mime type may produce strange behavoir.
|
|
|
|
|
I have a flash page(URL) that has a product image and some text like color,category,price etc.I would like to know how to get data (image & all the data associated with product) from a Flash website into a file (may be excel, access, flat, csv, xml...etc).
|
|
|
|
|
Lalit Kumar Jain wrote: image & all the data associated with product
Good Luck on that, I don't think Google can even do it, otherwise all the images in a flash file would be available in Google Images.
|
|
|
|
|
|
<pre lang="vb">HI,
I need to find an API for scheduler in SSRS and call it from a ASP .Net Web Page/HTML page, which performs a scheduling operation and calling this API should directly get linked to a SSRS Scheduler. Can someone help me please on this. This is a very urgent requirement.</pre>
Praveen Kumar. V
|
|
|
|
|
Did you Google SSRS API yet?
Well let's see
http://msdn.microsoft.com/en-us/library/ms159767.aspx[^]
It's been my experience that you can do almost anything you want to SQL Server by sending TSQL to it. So you just need to write your TSQL, and send it like you normally do for other tasks.
So you gather your data parameters like date and time, and just send it to SQL Server via TSQL.
|
|
|
|
|
Kindly find the below doubt and do his needful on the earliest of tomorrow..... Thx
Make a simple Web form for registration of students and courses. The form should accept first name, last name, faculty number, university (drop-down list), specialty (drop-down list) and a list of courses (multi-select list). Use the appropriate Web server controls. After registration you should display summary of the entered information as formatted HTML. use dynamically generated tags (h1, p, …).
|
|
|
|
|
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.
Try it yourself, you may find it is not as difficult as you think!
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
|
|
|
|
|
Please read the site's guidance about asking a question. We don't do your [home]work for you, we are all volunteers. Also it is rude to tell people it is urgent: it might be urgent to you, but to me it matters exactle 0% whether you ever finish this or not.
|
|
|
|
|
This is called "homework" and it was assigned to YOU, not us. That means YOU "do the needful", not us.
If you think getting anyone else to do your work for you is going to get you a passing grade, think again. There's just too many idiots in this field who don't know their ass from a hole in the ground, and we're not about to create another one by doing your work for you.
You do the work. If you get stuck, the you can ask us questions about the problems you're having.
|
|
|
|
|
I have a C# 2010 web application that I am going to be setting up.
If I want to point to a file on my C drive like C:\work\app, how does this translate to a url on the internet?
I know localhost would be part of it. However, what would be the rest of the url?
|
|
|
|
|
sir;
C:\Work\App is a physical path. You should point to the virtual path.
e.i. If we said that the virtual directory that represent the application root is 'app' then the request path should be 'server/app/resources/file.ext'
Help people,so poeple can help you.
|
|
|
|
|
So if I am running cassini on my local workstation and I want to refer to a file on my c drive,
it would be referred to as:
https://localhost:3358/directory name/excelfile.xls.
The 3358 would be the port number and the c drive is my application root?
|
|
|
|
|
if the file 'excelfile.xls' is located on 'C:\directory name\'
and the application is hosted at 'localhost:3358/'
then the request path to the file 'excelfile.xls' is 'localhost:3358/directory name/excelfile.xls'.
Help people,so poeple can help you.
|
|
|
|
|
I am new to working with deploying a C# web application 2010. I want to use the setup and deploy template in the visual studio .net 2010 ide since that is what the previous programmer(s) used at my company. Right now I am the only programmer at my small company. I also want to mention there are is no written deployment documentation for this web application. I have used the setup and deploy project file that I generated, but it does not install the web form 2010 application to acutally run.
Thus,I am trying to determine what I could have done wrong.
Here are my question:
1. I am not exactly certain what I need to include in the project file for it to work. I can see the files that were generated by theoriginal programmers but I am not certain if I need exactly those files those particular folders.
Thus can you make a recommendation on how I determine what files to include in the deployment.?
2. Also once I deploy the application, I am not certain exactly how to test that the application to that it actually acutally runs. Basically the production application runs on IIS 7. Do you think I should deploy the application to cassini on my workstation and then see if it runs? Thus basically are there directions I can follow to see how I can test the web application? Would I deploy the web application in steps? Should I deploy the web application to cassini, then to iis on a test server?
|
|
|
|
|
WOW
You have been struggling with this since March 12, 2012. That's almost 2 months now.
[First Post^]
I think it's time now for you to purchase a book on ASP.NET, and learn how to deploy your project on a web server. Or perhaps just contract out to someone to do it for you. I think your server admin can do it for you in less than an hour or so.
No insult intended here, but your going round in circles here with the whole process, and you really need to take a large step back to ground zero, and start with something more simple.
|
|
|
|
|
For your information, I got the iis work on my workstation, test iis7 and deployed into production on Monday. I am using application pools. My problem was the .net did not know what the startup page was. I just reset it.
|
|
|
|
|
You posted your question on cinco de mayo, the 5th, yesterday was the 7th.
You should still buy the book, it will explain what .net is.
dcof wrote: My problem was the .net did not know what the startup page was
.net is a programming language, in which you can write in visual basic or c sharp. It allows you to make dynamic web pages, in which you can change the output on the fly.
html is a static web page, in which the content never changes, and is always the same.
A web server is required to host the web page. For .net, you need a web server that is .net compatible.
The more correct nomenclature is
dcof wrote: My problem was the web server did not know what the startup page was
|
|
|
|
|
I am designing a site that will use ajax panel to load it's controls from an xmlDocument. On the ajax panel I will have several asp:Label, asp:textbox, asp:Listbox, and radgrid controls. Now, my data will consist of the content of nodes from an xmlDocument. How do I populate the ajax panel's controls (bind the data) from the xml tree contained in the xmlDocument?
Thanks,
Steve Holdorf
|
|
|
|
|
Also, I was wondering if there was a way to do this in the code behind one setting the value of one control at a time? See what I am doing is filling an xmlDocument onLoad then using it for display through out the whole application.
|
|
|
|
|
What I am doing is in the OnLoad page event for the main page I want to load an XMLDocument from a wcf service pulling the data from a list of SharePoint items, then not have to hit the web service again. Next, I want to fill the top level navigation control with the top level nodes of the xmlDocument. Now, once the user selects a menu option I want to populate and display/hide child controls with the detail data and so forth going into more detail with each selection.
|
|
|
|