|
I have a form view that use objectDataSource with cache enable as following:
<asp:ObjectDataSource ID="odsTest" Runat="server" EnableCaching="true" CacheDuration="300" CacheExpirationPolicy="Sliding" CacheKeyDependency="ckdCaseExam" TypeName="App.Test" SelectMethod="GetTestList" UpdateMethod="fvwTest">
*Assuming the SELECT item1, item2, item3 from tblTest WHERE item4 =’Y’
I need to access the cached data to check something in code behind without refresh the data. How can I do it?
|
|
|
|
|
hi
I have a regular validator for a textbox, I would like the textbox to only accept numeric entry but also allow a .
so it would except the following
1
11
1.1
but not
letter
i have this ([0-9]{1,2}) but I cant find anyway to enter a .
thanks
|
|
|
|
|
sorted it
\d+(\.\d{1,2})?
|
|
|
|
|
Erhm, I'm not a regular expressions wizard... but this may be the one
^([0-9]+)([\.]?)([0-9]*)$
|
|
|
|
|
I have created a web control library but i have the following two major problems:
1- when the page is posted back the control disappears from the page as it is added in the run time. I need it to still as it is and the values in (text boxes or radios).
2- I need to know a mechanism to take the user data entered in the control.
thanks in advance
abdelhameed81
|
|
|
|
|
This is such a common question, I should check if there's an article on it ( I'm sure there is ) and write one if need be
You need to add the control every time, on postback. And you need to add it before page load in order for viewstate to be restored so you can get values from it.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Ok, i am waiting for this article as i cannot find it
thanks in advance
|
|
|
|
|
Please read the article linked to in my sig. Then, read this[^].
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
How is it possible to open a external link in Content place holder ?
I hava master paeg and in menu there is link "Codeproject", when user click on this link, code project will loaded on this place holder.
Any idea.
Thanks in advance !!!
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
An iframe is what you need here.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
Hello Friend
I've faced a problem
I am using .NET 2008. But I can not find Microsoft.Web.Preview.dll in my system.
Can any body tell me from where I can download Microsoft.Web.Preview.dll file or where the file is located in my system.
Thanks
|
|
|
|
|
There's a link in my sig, please read the article it links to, because your core problem is addressed there.
http://forums.asp.net/p/1049988/1481402.aspx[^] will answer your more direct question.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i searched many website but i am not get proper answer for my question...
pls answer the following question.....
how to execute the textbox script value dynamically at runtime in ASP.net with c#
|
|
|
|
|
Could you not use ontextchange attribute for textbox to do it on the fly?
|
|
|
|
|
Please don't create a new account every time you ask this. Instead, try asking it a bit better. Possible reasons that you can't find your answer, after I gave it to you
1 - you want the code to run on the client ( this is impossible )
2 - the sort of code you want to run and the way you want to get the result, is your real problem/question and instead of asking the same thing over and over, you should refine your question to make it clearer
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hai, how do execute the textbox script value at dynamically in .net with c#.if you know the answer replay to me..
|
|
|
|
|
um not sure if I understand you correctly so here is some possible answers
You can have an ontextchange event so that when someone clicks on your textbox enters a value, then clicks elsewhere the event is ran
You could have some script run on a button on the onclick event which executes what you want
please give more info on your problem if this doesnt help
|
|
|
|
|
Thank you for your replay,
i want do Ads in website project.my client need,in runtime i give a some java script code in textbox,it will execute in web page header.i change java script code in execution time it will be change in web page header.it is clear...if you know help me..
|
|
|
|
|
Why do you want to change the javascript code at runtime, sorry i dont think im understanding what you mean
|
|
|
|
|
my client need to different Ads in web page header and fooder colums.admin change the script in textbox it will be execute in runtime.so javascript change dynamicaly.so help me...
|
|
|
|
|
You want to execute javascript in your page from a textbox ? That's trivial, on postback, inject the text as code into the header of your page.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
function displaymessage()
{
alert("Hello World!");
}
onclick="displaymessage()" >
it is a normal call to javascript but i want to execute text1.value (it contain
function displaymessage()
{
alert("Hello World!");
}
)
so how to execute that script if know help me....
|
|
|
|
|
So let me get this straight when someone clicks the button
sugunavathysubramanian wrote:
onclick="displaymessage()" >
you want
sugunavathysubramanian wrote: function displaymessage()
{
alert("Hello World!");
}
to run, is that right? becuase there is no text1.value on your page
|
|
|
|
|
<asp:textbox id="TextBox1" runat="server" textmode="MultiLine">
<asp:button id="Button1" runat="server" onclick="Button1_Click" text="Button">
<asp:label id="Label1" runat="server" text="Label">
it is my form design.i give code to textbox1.how it is execute .and how to call and execute
|
|
|
|