|
Not getting clearly.
Do u have two forms
or do u have two pages ?
Tell the exact problem by proper wordings.
|
|
|
|
|
I have a form in which ther is a submit button which submit values. I want to use an event handler with that button. But it submit the values first and event is fired after submition the values. I mean the event should be fired before that submition. Tell me where should I call that event which fire before the submation.
|
|
|
|
|
What you are asking for is not possible. The event handler is run on the server, and in order for the event handler to run, the form has first to be posted to the server so that the server has a request to respond to.
If you want to do something before the form is posted, you have to use a client script event instead, i.e. the onsubmit event in the form tag or the onclick event in the submit button tag.
---
b { font-weight: normal; }
|
|
|
|
|
I have already done that called the event handler in onclick event of submit button. But with doing that it is first submit and then event is called.
|
|
|
|
|
As I said, server events can not be executed before the data is submitted.
You have to distinguish between the OnClick event of the server control, and the client side onclick event of the html element that the server control creates.
The client side onclick event is executed in the browser before the form is posted. The server side OnClick event is executed on the server after the form has been posted to the server and the server has determined that the form was posted by clicking the element that the server control created.
---
b { font-weight: normal; }
|
|
|
|
|
event handling and data-submission go side by side, so thats not possible. sorry.
// ♫ 99 little bugs in the code,
// 99 bugs in the code
// We fix a bug, compile it again
// 101 little bugs in the code ♫
|
|
|
|
|
|
Hi
I am exporting one datagrid in .xsl file.
So, On particular button click event i have done all coding to save datagrid in .xsl file.
This is fine.
When i select the path to open-save file dialogue box, my excel sheet will get saved, but i want simultaneously to save one another folder to same path , which i am selecting by this open-save file dialogue box.
How can i retrieve the "file-path" which i am selecting from that open-save file dialogue box ?
I want that "file-path" in one variable which datatype is string.
Plz. help me out....
prakash sawant
prakash sawant
|
|
|
|
|
I don't think you can access the selected path and save another folder on the client machine. Also, you basically do not have permission to access the local file system.
|
|
|
|
|
how to access table in a database thru repeater control, how to populate it... plz help me with coding.. made the connction string, commandtext, also filled dataset thru adapter, binded the data to repeater control and also wrote Binder.Eval method in html view but its not showing when viewed in browser.
allyblue
|
|
|
|
|
can u show us some code snippests to know where the problem is?
Best Regards
3ala2
|
|
|
|
|
i got that thing solved but couldn't find where the problem was did it all again . now i have a problem again... i made elements in the repeater control as linkbuttons(name of various categories) and i want, when the linkbutton is clicked, the productlist corresponding to that category be shown in a datalist control. i used item command event and specified the commandname of link button and also used if (e.Item.ItemIndex==0)inside it bounded the datalist. i just want to know how to access the name of item fetched from database in repeater control... what should i write (select * from product where categoryname='"+............+"')when we are inside the if block described above...???
allyblue
|
|
|
|
|
can any one send information how to search code in code projects
valluri kiran babu
|
|
|
|
|
Do you see the search box at the top of this page...?
|
|
|
|
|
type in the search box on right upper side. see, its thats simple.
// ♫ 99 little bugs in the code,
// 99 bugs in the code
// We fix a bug, compile it again
// 101 little bugs in the code ♫
|
|
|
|
|
|
how can i create templete column in datagrid with dropdownlist in that.
can any body help me?
|
|
|
|
|
Hi.
Columns>
<asp:TemplateField headertext="">
<ItemTemplate>
<asp:DropDownList ID="dd" runat="server">
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
</Columns>
Pathan
|
|
|
|
|
i want create templete column with prigraming not this form. plz help
|
|
|
|
|
My Dear Below is an Example which can help u. Replay me when u got it.
<asp:templatecolumn headertext="Enable/Disable">
<itemstyle horizontalalign="Center">
<itemtemplate>
<asp:dropdownlist id="enbl" runat="server" autopostback="true">
<asp:listitem>Enable
<asp:listitem>Disable
|
|
|
|
|
where is an example. i cant see it. plz help
|
|
|
|
|
<asp:templatecolumn headertext="Enable/Disable">
<itemstyle horizontalalign="Center">
<itemtemplate>
<asp:dropdownlist id="enbl" runat="server" autopostback="true" onload="show" ontextchanged="enable_disable">
<asp:listitem>Enable
<asp:listitem>Disable
|
|
|
|
|
There is no here an example plz send it to my mail plz: ptvce@yahoo.com
i need for it plz
|
|
|
|
|
Check ur mail after few minutes
|
|
|
|
|
my dear i nead create templete column with programing not this form.
thanks for ur help
|
|
|
|
|
Hi,
I have hosted my ASP.NET 1.1 application on shared hosting server. My application is running fine on localhost but i am not able to get the permission for my two dll files which i have used.
When i try to access that page, it shows the error like....
<i>Required permissions cannot be acquired.
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.Security.Policy.PolicyException: Required permissions cannot be acquired.
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:
[PolicyException: Required permissions cannot be acquired.]
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +2737893
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission) +57
[FileLoadException: Could not load file or assembly 'WebChart, Version=1.1.1.4, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
System.Reflection.Assembly.Load(String assemblyString) +25
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +32
[ConfigurationErrorsException: Could not load file or assembly 'WebChart, Version=1.1.1.4, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +596
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +3487289
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +46
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +177
System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +180
System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +3454869
System.Web.Compilation.BuildManager.CompileGlobalAsax() +51
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +462
[HttpException (0x80004005): Could not load file or assembly 'WebChart, Version=1.1.1.4, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +57
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +612
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +456
[HttpException (0x80004005): Could not load file or assembly 'WebChart, Version=1.1.1.4, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3434991
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +252
</i>
I get little bit idea about this, like its due to Medium Trust on shared Host server, but how to resolve that error, please help me out!!!
Regards,
Jay Khanpara
|
|
|
|
|