|
Hi,
I have done it before for reading from config file the connection string:
<asp:SqlDataSource ID="SqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"
Here in Provider name, it reads from web.config file..
It works fine..
i only want to know how to get appsettings value in similar way,,,could you help me out here?
|
|
|
|
|
sorry..actually in web.config's appsettings i have a format for date. so in javascript function i need to check if date is valid using that format...could you tell me how to do it plz....me new to asp.net...
thanks
|
|
|
|
|
Retrieve it like '<%$ AppSettings : Key %>'. Note however that you phrased the original question wrong and this has nothing to do with javascript at all.
|
|
|
|
|
ok thanks...but in a javascript function, i want to check if date entered in textbox is valid according to the format i get from appsettings..
how is this to be done..?
|
|
|
|
|
I suggest you store the info in a hidden field, so it can be accessed on the client side, like this:
<input id="dateformat" runat="server" type="hidden" value='<%$ AppSettings : Key %>' /> Then use its value to compare it with the one entered in the textbox. Obviously you don't check for equality, but construct a pattern (very likely a regexp) and see if it matches the entered value. Something like:
var dateformat = document.getElementById('dateformat').value;
var pattern = BuildPattern(dateformat);
if (!pattern.test(document.getElementById('textboxfordateid').value))
alert('Invalid format!');
|
|
|
|
|
|
hi good morning every body...
i have a problem in adding Reference to asp.net 2005. i am trying to add dlls reference to asp.net application. but they r not adding to the reference list of the application. so i am not able to imports that. it is working in vb.net 2005 and vs 2003.
the other thing is i tried the application coded in other system, copied to my system. in that also all referenced dlls are not showing.
is the problem in my system?
is there any settings in VS ( of my system ) to be modified to solve my problem.
eagerly waiting for your solutions.
Vinod
|
|
|
|
|
Seems like you are missing the file path.
make sure you are pointing to the exact location.
Success.
|
|
|
|
|
thank u for ur reply,
but i am adding references from the bin folder of that application itself.
i tried with number of applications on my system. but in all same result. when i tried on my colleague's system its adding.
so i think this problem is in my system's settings or other...
i also re-installed entire vs-2005 but no use.
vinod
|
|
|
|
|
|
there is no error page coming just the components do not add to the reference lists so i can not able to import the porceedures
....
vinod
|
|
|
|
|
Hi
here i will get text(string) into a field in a table.I need to convert that string into XML file. can any one have code or any idea please guide me .
Suresh.R
|
|
|
|
|
Hi Suresh,
What do u mean you want to convert string into xml file.
If you want to save the string as an xml file: Just open a new filestream. write this string to it and save it as any file with .xml extension.
Else, I feel the question needs to be rephrased.
rAm
i Think, i Wait, i Fast -- Siddartha
|
|
|
|
|
I am developing website... I like add sms system in my website... I need source code or any sugestion please help me....
I am Mani I work in pondicherry
|
|
|
|
|
|
Hey Guys
Anybody knows any .NET control for implementing Google Base API...?
|
|
|
|
|
|
Thanks for your time dude BUT I couldn't get any specific control for implementing Google Base in ASP.net.
|
|
|
|
|
i have created one cookie object for my project in login page. i created that cookie to store login information using formsauthentication. main purpose is to provide "remember me" feature. so when user enters login name and password and clicks on logon button,it will store login info. so when next time user logins in he doesnot have to provide login info and redirected to the other page than login page. for that i have set cookie expiry date after 1 yr. when i run my project first time it will create cookie object and store login info in that. but when i am trying to access cookie object at page load event for second time it will be deleted and also not redirected to other page. what is the reason that cookie object is deleted and also user is not redirected to other page?
|
|
|
|
|
Hi,
This is the third time I'm positng this question, because nobody did respond to this, the only response I got dint solve this issue..
I'm working on a project for dynamic code generation. We are creating the entire solution from scratch here(just at the initial stage).
I create aspx and code behind files in the PL, but after the entire solution is created, I try to open the aspx file in the designer and I get this error:
"The file could not be loaded in to the Web Forms designer."
I am getting this link for help:
http://msdn2.microsoft.com/en-us/library/aa289356(VS.71).aspx
But I'm using src attribute like this and it was working when creating file using VS 2003:
Could someone point out whats going wrong here.
Am I the only person having this problem??
Regards,
Blumen
|
|
|
|
|
the error is talking about the page/custom control declaration not a script declaration. reread the error page.
post the top line from the aspx page/or custom control in question
werD, MCP
|
|
|
|
|
<blockquote class="FQ"><div class="FQA">werD420 wrote:</div>post the top line from the aspx page/or custom control in question</blockquote>
<%@ Page language="c#" Codebehind="ChkList.aspx.cs" AutoEventWireup="false" Inherits="Empower.Adrenalinet.ChkList.PL.ChkList" %>
<%@ Register TagPrefix="radg" Namespace="Telerik.WebControls" Assembly="RadGrid" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
Regards
|
|
|
|
|
Hi Friends
I create search option in my web application.
now i enter the company name like TCS or Tata Consultancy Service
if i give TCS or Tata Consultancy Service both are retrieve the same result
how can i achive this?
regards
saravanan
|
|
|
|
|
You really can't, without writing your own indexing code.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi all.....
The scenario which i have to finish as follows need to create one XML document and i have to check for errors in that. And i have to load that document with the data by getting from a field in a table. And again i need to check for errors.Just i need how to create XML document and check for errors in that. If any one have idea please assist me.
Suresh.R
|
|
|
|