|
you can enable this button by javascritp
|
|
|
|
|
How do I dynamically populate controls on a MVC page?For example: I have a page to create questions. I have a drop down with questionType; and i have properties of questions which are specifc to question type; so on selecting specific question type, i want to show controls like textboxes and dropdowns to show properties relevant only to the selected option. E.g. If text type is selected, MaxTextlength textbox is shown. If singleselectradio is choosen a choice is shown to use standard options or create custom options, on selection of custom, something like user control is shown to add options . Bottomline: controls on a page, appear and disappear as per user selection in MVC. This can be easily achieved by loading dynamic user controls or show/hide panels in ASP.Net.
|
|
|
|
|
Hi
I need to download file that does not have extension. The file itself is a simple plain text file. I do this from code using WebClient object. I also cannot view this file in browser with the same error.The error was 404 - file not found.
After research I added mime type: .* as application/octet-stream on web server level. Also the file has these permissions:
NetworkService - full access, ASP.NET - full access. Rebooted machine after making changes.
Still the same issue.
Anybody can advise what else to look for?
Thanks a lot,
Roman
|
|
|
|
|
Roman Muntyanu wrote: .The error was 404 - file not found.
This does not mean that the file extension was missing or file could not be opened via selected application. It simply means that the path used to access the file downloaded is incorrect and there is no file at the given path.
Make sure you download it at a specified location, check file exists visually once downloaded then try to open it using correct filepath.
|
|
|
|
|
The file definitely exists. I have access to the server. If I add extension .txt to the file and to the url I can browse the file and download it.
What is puzzling me is that I was able to download files withou extension on one staging server with adding mime type .* as application/octet-stream . Then we built another paralel staging server for development where download fails. I check all settings I know on both servers and they are identical. I am guessing I am still missing some specific setting on this new development server.
Thanks
|
|
|
|
|
Hi to all,
I have values in sql table like
RollNumber
----------------
101,102,103
----------------
Now i need get count of this cell, how can i get?????
anyone help me......
Thanks in advance......
|
|
|
|
|
select count(*),RollNumber from <yourtable> group by RollNumber
remember to vote !
|
|
|
|
|
select count(firstField1),count(firstField2),count(firstField3)from tblname
group by firstField1,firstField2,firstField3
|
|
|
|
|
comma (,) seperated rollno in a single field??
clarify please
|
|
|
|
|
I have a website that uses the Microsoft Report Viewer to display a report and it worked great until I uploaded it to web hosting company. It runs great on my local machine but not on the web host server.
more details...
on my local machine the report viewer preview data and it run successfully but on the web hosting server the report viewer preview nothing,the report viewer toolbar appear as disable and no error returned.
modified 19-Jun-12 4:09am.
|
|
|
|
|
Above information is insufficient. You need to provide more details. Updating question with error would help.
|
|
|
|
|
more details...
on my local machine the report viewer preview data and it run successfully but on the web hosting server the report viewer preview nothing,the report viewer toolbar appear as disable and no error returned
|
|
|
|
|
Check Report Viewer versions present and used. Make sure they are same.
Also, check system EventViewer to see if any error logged there.
|
|
|
|
|
How can if it hosted in a web hosting company and i haven't permission on that server???
|
|
|
|
|
Check Whether required .Net framework installed on that server or not,
along with all necessary software.
You hadn't mentioned any error, just not displaying data !
Check whether on that server itself it is showing or not?
Or its only at client side.
|
|
|
|
|
so i think that the required .Net Framework installed on that server
Hum Dum wrote: You hadn't mentioned any error, just not displaying data
no error just not displaying report data and the report toolbar appear as disabled
i want to know what the difference between running the report locally and remotely??
|
|
|
|
|
This is framework problem.
|
|
|
|
|
so,,, how do you know that it is a framework problem? as the framework,i worked is the same in the server.
and how can i solve it ...?
|
|
|
|
|
I suspect that you have a .NET runtime version mismatch issue here. Basically, if you are running IIS, you can target which version of .NET your application runs - now it could well be that the version on the remote website is set to an incompatible version. What you would need to do is check the version there and see if it matches.
|
|
|
|
|
now...i am sure that the .NET Framework on the hosting Web server is the same which i worked on my local machine.So i want to know if is Microsoft Report Viewer is a package that must installed on the server to run the report viewer in asp.net pages or not?
|
|
|
|
|
There are a set of report viewer DLLs that have to be included. If you take a look at your references, see if they have been copied locally - if they haven't, you need to install the report viewer on the server. Have a look at this[^] page.
|
|
|
|
|
I have a function in which I bind my Gridview with the Datalist according to the info that i get from the Row in Datalist
My Code Behind function is:
protected void dtlGradeMaster_ItemDataBound(object sender, DataListItemEventArgs e)
{
GridView grdGradeDetails = (GridView)e.Item.FindControl("grdGradeDetails");
BindDetailGrid(grdGradeDetails, dtlGradeMaster.DataKeys[e.Item.ItemIndex].ToStrin());
}
private void BindDetailGrid(GridView GridView, string strGrade)
{
DataTable GridData = GridDataSource(strGrade);
GridView.DataSource = GridData;
GridView.DataBind();
}
But it gives me the Fallowing Error plss help...
|
|
|
|
|
|
Thanks...
Its working now...
|
|
|
|
|
I want to communicate with serial port on client side system via asp pages.I think silverlight is the best solution,but there is no asp.net sample about this topic.
would you please tell me if there is a sample in this site or other web pages?
thanks
|
|
|
|