|
|
Member 4021845 wrote: I have a textbox in User control and a button "validate" in aspx page.On click "validation" button it will show message.So how i will give javascript validation.Pls. anybody gives solution of this question.Describe coding simple so that i can understand.
Use ASP.NET validator,assign a groupname to the validator control and assign the same ot validation button.
If you want to do it from JS only, then have a JS function which will check your textbox and show a message or act accordingly
Member 4021845 wrote: 2. I have a textbox and button "validate" in User control.This user control i have called in aspx page.So on click "validation" button it will show message.So how i will give javascript validation.Pls. anybody gives solution of this question.Describe coding simple so that i can understand.
You can also do it in same way as above
Member 4021845 wrote: 3.How dynamically create page using asp.net
Member 4021845 wrote: 4.How dynamically create user control using asp.net
Pls explain bit more
Member 4021845 wrote: 5.How to create web custom control using asp.net ,give me only simple example and where it necessary.
Have a look to the Link
|
|
|
|
|
I have used AutoCompleteExtender, but how can i handle error if there is any error thrown from webservice.
|
|
|
|
|
|
Autocomplete doesnot use update panel it uses webservice so ho can iuse pagerequestmanager.
|
|
|
|
|
Hi
is there any process to print report in asp.net expect crystal report.
plz provide me the solution.
Thanks
|
|
|
|
|
Any_India wrote: is there any process to print report in asp.net expect crystal report.
Yes.
Any_India wrote: plz provide me the solution.
No.
What I will do is point you to other third party controls like iTextSharp [^]or ABC.Pdf[^] which will allow you to produce rather good reports in PDF format. If you wanted to spend money there are many other third party controls that will also do the job.
Or you could write some code to output a report to, for instance, Excel. Or you might make use of SQL Server Reporting Services[^], if it were appropriate.
If you search through the articles I'm sure you'll find something to get you started.
me, me, me
"The dinosaurs became extinct because they didn't have a space program. And if we become extinct because we don't have a space program, it'll serve us right!"
Larry Niven
|
|
|
|
|
i want to print details in design page,means like there is money receipt format on page ,i hav to print the field on that money receipt.so there need of scale for gaping between line to print on that forment.
so tel me the process how to set the print size page dynamically
|
|
|
|
|
Any_India wrote: so tel me the process how to set the print size page dynamically
Print layout is a property of the browser, more specifically, the user's settings. Basic security requirements forbid you to change the browser's setting.
However, you can "guide" the browser if you want to print html. You can write a css with "media=print" and define the layout there.
Beware:
1) You may design the layout for a specific size, user may have a different paper at his printer.
2) Make sure that whatever CSS you use, is cross-browser compatible.
cheers
srikanth
|
|
|
|
|
Use this javascript code snippet:
window.document.print();
Hope it help?
Aweda Akeem B
Software Developer
http://aweklin.net
|
|
|
|
|
tel me the process how to set the print size page dynamically,like top,left right line gap etc
|
|
|
|
|
use this code in design view ...... by this code u can print div inner content
Print
HI this is the test message.
........
function ClickHereToPrint(){
try{
var oContent = document.getElementById(‘divToPrint’).innerHTML;
if (oDoc.document) oDoc = oDoc.document;
oDoc.write("<body onload=’this.focus(); this.print();>");
oDoc.write(oContent + "</body>");
oDoc.close();
}
catch(e){
self.print();
}
}
|
|
|
|
|
Hi,
I am trying to post a message to twitter from my ASP.NET Application.so downlaoded the Twitterizer.Framework.dll and try the below code. but i am getting error message like
"{Twitterizer.Framework.TwitterizerException: Unable to connect to the remote server ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 128.242.240.116:80
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)"
Twitter twitter = new Twitter(TwitterUserName, TwitterPassword);
string TwitterMsg = message.Text;
if (message.Text.Length > 120)
{
TwitterMsg = TwitterMsg.Substring(0, 130) + "... For more update logon to DailyFreeCode.com";
}
else
{
TwitterMsg = TwitterMsg + "... For more update logon to DailyFreeCode.com";
}
twitter.Status.Update(TwitterMsg);
lblTwitMsg.InnerText = "Your have shout successfully on http://twitter.com/" + TwitterUserName;
fttyhtrhyfytrytrysetyetytesystryrty
|
|
|
|
|
Hi,
I don't know the twitter framework, but it seems that the twitter host is not reachable. A quick ping and telnet test showed me, that I can connect to this host. Did you checked that you can reach the host (ping and telnet at port 80)? Maybe your firewall does not allow the connection?
Regards
Sebastian
|
|
|
|
|
This process is no longer. Twitter changed their process to OAuth process. and I am looking for a sample code. Can anybody please send me the code of twitter OAuth process.
|
|
|
|
|
i have one survey page (survey.aspx), on submit it inserts records in DB and redirect to (thanks.aspx). when again i used to execute same page its again insert data to DB and redirect to thanks.aspx page. but perticularly on IE(Internet explorer), second time & onwards its not inserting data and redirect to same page, i.e survey.aspx.
i tried with page.forms[0].reset(); but its not working plz help.
thanks in advance.
|
|
|
|
|
1. are you using GET method?
2. use VS debugger and check the flow. Tell us whats causing it if you are unable to resolve it.
|
|
|
|
|
i'm using like dis,
function clear_form() {
document.forms[0].reset();
}
<form id="form1" runat="server" method="post" target="_self" onsubmit="this.clear_form();return true">
if you know any other way plz guide.
|
|
|
|
|
punit belani wrote: target="_self" onsubmit="this.clear_form();return true"
It says, clear the form on submit and reload the page! Where are you doing a DB update? Redirection to other page?
further, target attributes generally work with action attribute. Why have you used target here?
|
|
|
|
|
actually im trying wid this, according to searching guide. the exact scenario is as i mentioned in question. so what can i do, if i want on submit first insert data and then reset the form and then redirect to thanks page?
|
|
|
|
|
punit belani wrote: i want on submit first insert data and then reset the form and then redirect to thanks page
1. submit first. Use a Submit button
2. on button click event handler, insert the data in database
3. you don't need to clear the form! As you are already going to a Thank you page. Just redirect it the thanks page.
4. Whenever a new person does a survey, the page will load afresh and the controls will auto reset.
Just in case (which you shouldnt!), you have a flow where you have to reset the controls manually for such kind of survey functionality - then do it on server side for that particular scenario. Clear the controls values of that panel.
|
|
|
|
|
|
Hi everyone. I download the Ajax Control toolkit for .Net 3.5 and embedded in VS 2008. then I drag a control on the form. after running webform the error came up in browser.
Server Error in '/' Application.
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "AjaxControlToolkit.Properties.Resources.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "AjaxControlToolkit.Properties.Resources.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "AjaxControlToolkit.Properties.Resources.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.]
System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) +7680766
System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) +583
System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) +583
System.Resources.ResourceManager.GetString(String name, CultureInfo culture) +74
AjaxControlToolkit.Properties.Resources.get_E_NoScriptManager() in C:\AjaxBuild\Ajax\Server\AjaxControlToolkit\Properties\Resources.Designer.cs:68
AjaxControlToolkit.ScriptObjectBuilder.RegisterCssReferences(Control control) in C:\AjaxBuild\Ajax\Server\AjaxControlToolkit\ExtenderBase\ScriptObjectBuilder.cs:331
AjaxControlToolkit.ComboBox.OnLoad(EventArgs e) in C:\AjaxBuild\Ajax\Server\AjaxControlToolkit\ComboBox\ComboBox.cs:523
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
|
|
|
|
|
have you added ajax control toolkit dll in bin folder?
|
|
|
|
|
What is the thread culture you are using? Error says that it's a culture specific issue and resource files related to the culture you are trying is missing. Get the resource files of AjaxControlToolkit for the locale you are using.
|
|
|
|