|
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.
|
|
|
|
|
|
|
Add
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
tage on your page or If you are using Master page then just use the above tag on master page.
|
|
|
|
|
You might need to add the toolscript manager to your code.
Thatsanun.N
|
|
|
|
|
Hi
I am developing a web application and I am having to use CSS2.1, which I have discovered does not provide a simple way to rotate text. Therefore, I am asking anyone if they know of another way to rotate text through 90 degrees?
|
|
|
|
|
|
My initial thought was OMG they have upgraded The Captain!
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
Hi all,
I am new to rss feeds, please help.
I am facing problem to consume rss feeds, I found several articles on How to consume RSS feeds, they helped me to some extened but I didn't get info for what exactly i am looking.
My problem is:
I tried to consume feeds from these two URLs
http://www.sowetan.co.za/rss/Sowetan_TopStories.xml
http://rss.news.yahoo.com/rss/mostviewed
I've used this code to get the feeds info
XmlTextReader readerSport = new XmlTextReader("http://www.sowetan.co.za/rss/Sowetan_TopStories.xml"); //http://rss.news.yahoo.com/rss/mostviewed
DataSet dsSport = new DataSet();
dsSport.Clear();
dsSport.ReadXml(readerSport);
for both the feed dataset have same 8 tables but with diffrent names, and if i write the xml using the folloing code
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load("http://www.sowetan.co.za/rss/Sowetan_TopStories.xml");
//xmlDoc.Load("http://rss.news.yahoo.com/rss/mostviewed");
xmlDoc.Save(Server.MapPath("~/sowetan.xml"));
after observing the genrated xml, both the xml have diffrent structure.
My Questions are:
1. What information required to display the feed content?
2. if we have diffrent structures for the genrated xml how can we write a single transform method?
3. Is all the 8 tables data required for displayingrss content, In most article i found they've used only for table 3
4. I want to open the feed content on my webpage, how it can be done.
Please any one help me on the above quesions.
|
|
|
|
|
when i m accessing database from my Default.aspx page exception raises i:e
Cannot open database "MyDatabase" requested by the login. The login failed. Login failed for user '[Computer Name/ASPNET]'.
any idea how to solve this?
|
|
|
|
|
Don't use integrated security and specify a username and password in your connection string.
|
|
|
|
|
string connString = @"server = .\sqlexpress; integrated security = true; database = MyDatabase";
hv i to use this
string connString = @"server = .\sqlexpress; username = "xyz" ; password = "xyz" ; database = MyDatabase";
|
|
|
|
|
hotthoughtguy wrote: string connString = @"server = .\sqlexpress; username = "xyz" ; password = "xyz" ; database = MyDatabase";
Something like that. I think it is user id instead of username, and of course no quotes around the values. For a good reference see http://www.connectionstrings.com/[^]
|
|
|
|
|
It is bad manners to post the same question to multiple forums
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|
well thanks for that link
|
|
|
|
|
Hi,
im trying to use the webcam on a webpage, I created the control in C# , when working with a normal windows form app, it works fine , displaying the image that it gets from the webcam, but when i convert it into a activex control so that i can use the functionality on a aspx page , the webcam gets initialized but i only see a black box where the cam feed is supposed to be, ive tried a lot of ways now but i cant seem to display a picture in the picture box in the activex control, it just stays black,
so if someone could please assist me in do this,
either how to use the webcam on a aspx page or how to display a image saved on the client pc
(when i save an image on the client pc with the activex control it saves fine, it just does not display on the page)
I need this to take pictures of employees ect via the website
|
|
|
|
|
|
Armandt__ wrote: created the control in C# , when working with a normal windows form app, it works fine , displaying the image that it gets from the webcam, but when i convert it into a activex control so that i can use the functionality on a aspx page
You cannot create ActiveX using .NET. But you can do similar by luck. There are lots of steps to follows. I tried to create on and finally dropped that plan. I suggest you to create the ActiveX either using VC++ or VB6.
Refer: MSDN Forum[^]
Happy programming.
|
|
|
|