|
Thanks alot for your answer.
Ok, so you build the page structure from codebehind, and the content controls with javascript/jquery.
My challenge is a little different though. What I meant with the xml thing, is that the whole site has a setup file, which defines the controls on the page. Like this:
<PageSetup>
<Control Type="TextBox" CssClass="test" PageOrder="1" Text="Default text in the textbox" />
<Control Type="Drowdown" CssClass="dropdownClass" PageOrder="2" >
<Item text="Dropdown item 1" Value="1000" />
<Item text="Dropdown item 2" Value="2000" />
</Control>
...
</PageSetup>
Hope that clearifies it a bit
I´ve started the project, and chosen to avoid the asp.net controls. So right now I build a long html string from codebehind, bases on the xml settings, and inject it on the page with jquery.
Any better idea?
Thanks alot for your time!
|
|
|
|
|
So what will be advantage of that solution against .aspx markup?
No more Mister Nice Guy... >: |
|
|
|
|
|
Hi,
I have a WCF serivce which is hosted in IIS. I want to have child config files for the wcf service so that I dont have to build different times to host in different environments like dev, staging and production.
I am not familiar with how to maintain child configuration files and access them in the web config file. If anybody can give me any idea or link with example, it would be helpfull for me.
I am also googling but anyone can give me any help its really thankful.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
I use a INI file I keep in the App_Data.
My server controls read the file and stage for the modes indicated in the file.
|
|
|
|
|
Hi,
I am using this code to bind news to the repeater using XMLDataSource. I want to ask, is it possible to have multiple XMLDataSources bineded to the same repeater so it will have xmlNews1, xmlNews2, xmlNews3, etc?
<asp:XmlDataSource ID="xmlNews" runat="server" XPath="/rss/channel/item/." DataFile="http://www.asp.net/community/articles/rss.ashx"></asp:XmlDataSource>
<asp:Repeater ID="repeaterNews" runat="server" DataSourceID="xmlNews">
<ItemTemplate>
<p>
<a href='<%#XPath("link")%>' target="_blank"><%#XPath("title")%></a>
</p>
</ItemTemplate>
</asp:Repeater>
|
|
|
|
|
You would require to merge all data source xmls into a single xml and then use it as XMLDataSource.
You may wish to use Linq To Xml to simplify your task.
|
|
|
|
|
<pre lang="HTML"> Hi All,
I have a control like this
<DC Type="ASPxTextBox" ErrorMessage="" Width="40px" CssClass="cText" IsSFControl="true"
MaskSettings-IncludeLiterals="DecimalSymbol" AutoCompleteType="None" BackgroundImage-Repeat="Repeat" ValidationSettings-Display="None"
ValidationSettings-ValidateOnLeave="False"
ID="POLICYEFFDATETIME" MaskSettings-Mask="<00..12>:<00..59>" ></DC>
This will take 12.59 as maximaum . But if i am entering morethan that like 22.99 , 12.59 is comming , i need to 00.00 if i am entering a higher value than 12.59. Please help
Thanks
Rk
|
|
|
|
|
Check Mask Setting? it reads 12 : 59 .. Could this be used for a time Box previously? - Where did the control come from? did you write it? .. Check Docs.
|
|
|
|
|
hi,my webapplication has ben changed outputpath,but show error msg:"Could not load file or assembly" in runtime,why?
<add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net"/> //Could not load file or assembly
<add name="WebSite.HttpModule" type="Framework.Common.HttpModule, Framework.Common" /> //Could not load file or assembly
</httpModules>
|
|
|
|
|
That means it can't find the dlls.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I have a loop in my razor view as
below
@foreach(var inmate in Model)
{
@inmate.inmateid
@inmate.inmateid
}
My Model is an IEnumerable of inmates
containing 2 inmate objects. But the
result I am getting in my browser is
6
6
7
7
Instead of
6
7
Please can someone tell me why this is
the case?
Thanks
|
|
|
|
|
Because you enumerating collection, and for each item You are writing this item twice. If you want it just once remove one @inmate.inmateid from inside foreach loop.
No more Mister Nice Guy... >: |
|
|
|
|
|
That really is a very silly mistake
|
|
|
|
|
Yes it is. But is not mine. You should answer to the question not mine answer.
Take care.
No more Mister Nice Guy... >: |
|
|
|
|
|
why don't you try to do this??:
@foreach(var inmate in Model)
{
@inmate.inmateid
}
|
|
|
|
|
Anyone have idea about Payroll Management System and Human Resource Management System in .net?
Please guide me how can I Start these projects.
|
|
|
|
|
First you need to know about each of the systems[^]. Explore, see the existing features you need, understand the product.
Once you are sure, start off features wise. Try out and post specific issues if you face.
|
|
|
|
|
That's specialty software, and you really have to know the industry or process before you start evaluating packages or start writing code.
And your heart has to be in it to take on payroll processing, because it's a boring subject. Plus the rules keep changing, so your app has to be adaptive.
Plus if you make a mistake, in the US, there's a huge penalty to pay.
|
|
|
|
|
Thanks in advance,
Back End : SQL Server 2012
Front End : ASP.net 4.0
My question is can we save files to a specified folder from ASP.net in a specific folder (C:\Download).
Right now browser prompts the dialogue box that do you want to save or open and if user saves it saves that file to the user's download folder,So is there a way that it does not prompts/Show download dialogue box and will save file to desired folder
any suggestion ?
SOFTDEV
Luck in life always exists in the form of an abstract class that cannot be instantiated directly and needs to be inherited by hard work and dedication.
|
|
|
|
|
εїзεїзεїз wrote: can we save files to a specified folder from ASP.net in a specific folder (C:\Download).
Yes.
εїзεїзεїз wrote: So is there a way that it does not prompts/Show download dialogue box and will save file to desired folder
You can use WebClient class to do it.
Following discussion will help: want to suppress filedownload dialog box [^]
|
|
|
|
|
Thanks for the post, i had changed response.addheader from attachment to inline and
its not asking for and message and saving to specific folder i will go through the link
SOFTDEV
Luck in life always exists in the form of an abstract class that cannot be instantiated directly and needs to be inherited by hard work and dedication.
|
|
|
|
|
As with many people asking questions related to the web here on CP, also you ought to learn to differentiate where what happens! ASP.Net runs on the web server. That is normally not the machine where the user looks at your web pages in a browser - though many developers do both things on the same one computer. The "save file dialog" is opened by the browser on the client - that is not an ASP.Net function.
If a web page wants to write some files onto my hard disk without asking me for permission, I would not trust it: I'd think of malware. Yes, there are security holes in many browsers allowing for such bad things, and they ought to get fixed as soon as possible.
|
|
|
|
|
εїзεїзεїз wrote: is there a way that it does not prompts/Show download dialogue box and will save file to desired folder
No.
If there was any way for the server to force the browser to save a file to a particular folder without prompting the user, that would be a massive security risk.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Yes, I do agree
To kill a DEER, You need Guns, knives, Ropes and many people to help But To kill
a DEAR,
You need just ignorance and silence
|
|
|
|
|
In my application i have to use singleton class.. and also enough single worker process. case is, when i start a application, it has created then working and if have any crash occurred, worker process created new one so it(singleton object) has been created again.. now i want to modify this single object getting entire( worker process).. my idea is
1) Can we create separate service for single instance application for processing. with service to iis communication via tcp using wcf.
or
2) Can we assign that object to httpContext for keeping object to entire application. if i used this, its applicable all webservice method (ajax callback).. please clarify
Any other idea?? please give proper idea for this concept..
|
|
|
|