|
try
ModalPopupExtender1.Hide()
Apurv
“Never trust a computer you can’t throw out a window.”
(Steve Wozniak)
“There are only two industries that refer to their customers as ‘users’.”
(Edward Tufte)
|
|
|
|
|
You may want to look this up:
[^]
Goofd luck
Dan - rastaquere AATT gmail doott COM
|
|
|
|
|
hi,
i want to make a discussion forum for my website, bt i have no idea how to do it. can some one plz help me with how to start.
|
|
|
|
|
what is the problem you are facing.. Just create the website ... Nothing special to discussion forum, just need to show latest sorted discussions and add reply button to add a new reply.
Additional feature based on your logic.
|
|
|
|
|
|
Hello All,
I have a page on which I am using the wizard control.The finish button is on third step of the wizard. But i am having a FileUpload control in the first step itself.When I select a file in the FileUpload ,after clicking on Next,postback occurs and the Filename is lost.
I need the FileUpload, not to loose the filename till the last step.
I have tried saving the filename in viewstate,but since I need to pass the whole control in my method(which is predefined,and can not be changed),the viewstate solution didn't work.
I also found 1 more solution on internet i.e.
Manually add the enctype to the page's form on Page_Load()
Page.Form.Attributes.Add("enctype", "multipart/form-data");
but it is also not working,might be because the form tag is on my MasterPage and not on the requiered page.
Do anyone have any suggestion/solution to this problem?
Please help.
|
|
|
|
|
Hey.. dont add form Attributes, as ASP.NET handles the form itself.
Your server side form is totally different than your client side form. Thus any attribute that you place in the server side form will not be reflected to the client side form. Just like your case, enctype, onsubmit etc etc are replaced by your page when it renders to its own form.
|
|
|
|
|
Thanks for your reply sir.
But I still have not got the solution to my problem.
Can please suggest anything else to solve it?
I just want the FileUpload to retain its FileName till the last step of the wizard.
Thank You.
|
|
|
|
|
Actually Input type file is the most problematic dom element I have ever seen. Just you cant open a file without the user to have selected through browse button. Even after choosing the file if you just append the control to another form using javascript, the file reference will be wacked up.
I think what is the most viable thing to do, is to upload the file to the server when user chooses the file and then hold the context of the file in the server.
Other Wayouts :
Otherwise, I think you can embed a flash object in the browser to open files using flash open dialog box. Flash is more powerful in this regard.
You can also use Silverlight, If you wish...
|
|
|
|
|
Hi,
I'm trying to use WindowsLiveSearchProvider for search in my ASP.NET website. I've configured proxy and AppId in the web.config.
<system.net>
<defaultProxy enabled="true" useDefaultCredentials="true">
<proxy bypassonlocal="True" proxyaddress="http://proxyServer:80"/>
</defaultProxy>
</system.net>
<microsoft.web.preview>
<search enabled="true">
<providers>
<add name="WindowsLiveSearchProvider" type="Microsoft.Web.Preview.Search.WindowsLiveSearchProvider, Microsoft.Web.Preview"
appID="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" siteDomainName="http://localhost:49781/" />
</providers>
</search>
<diagnostics enabled="true"/>
</microsoft.web.preview>
This is the html part:
<asp:GridView runat="server" ID="myGrid" datasourceid="mySource" AutoGenerateColumns="false">
<Columns>
<asp:BoundField HeaderText="Title" DataField="Title" />
<asp:BoundField HeaderText="Url" DataField="Url" />
<asp:BoundField HeaderText="Description" DataField="Description" />
</Columns>
</asp:GridView>
<asp:SearchDataSource ID="mySource" runat="server">
<SelectParameters>
<asp:ControlParameter Name="query" Type="String" ControlID="query" />
</SelectParameters>
</asp:SearchDataSource>
But when click on Search, I receive SoapException. This is the Stack Trace:
[SoapException: Client Error]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +431766
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +204
Microsoft.Web.Preview.com.msn.search.soap.MSNSearchService.Search(SearchRequest Request) +107
Microsoft.Web.Preview.Search.WindowsLiveSearchProvider.Search(SearchQuery searchQuery) +606
Microsoft.Web.Preview.Search.SearchService.Search(SearchQuery query) +264
Microsoft.Web.Preview.Search.SearchService.Search(String query) +85
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +71
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +261
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance) +488
System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1247
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +19
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
System.Web.UI.WebControls.GridView.DataBind() +4
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e) +22
System.Web.UI.WebControls.GridView.OnPreRender(EventArgs e) +17
System.Web.UI.Control.PreRenderRecursiveInternal() +80
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
I've Googled for a while, but could not find a solution. Any help in this regard would be sincerely appreciated.
Blumen
“Last night I lay in bed looking up at the stars in the sky and I thought to myself, where the heck is the ceiling.”
|
|
|
|
|
i want to apply font size and color which i had in one of the cssclass in stylesheet.I want to apply it on the string . Can anyone please let me know how it is done.
|
|
|
|
|
Why do you want to apply a CssClass to a string variable? If you are trying to show string (or text) with specific font size , apply the CssClass to the control through which you are displaying the string. (For e.g. a Label would serve the purpose)
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
|
|
|
|
|
that's the problem . it has to be applied to only part of the string which is text of a textbox.
|
|
|
|
|
Ok...I think you cannot do it using a normal TextBox...Probably the other way would be to write your own custom TextBox control and render the text as according to your requirement.
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
|
|
|
|
|
Hi,
You can assign your string value to a label and assign style sheet for that label ,...
hope this will help u...
|
|
|
|
|
Hi,
I have two website projects in vs 2008 and i need to integrate with these two projects
and i want session to be shared amoung the projects,
Is it possible in vs2008?
|
|
|
|
|
Ramesh A. wrote: I have two website projects in vs 2008 and i need to integrate with these two projects
and i want session to be shared amoung the projects,
Is it possible in vs2008?
What do you mean integrating ? Do you want to share session information between two web application?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
|
Read This[^] Article.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
as i know the session should be created at the server, and does it create a new session for each request that a browser requests(for each page it requests) or one session for one browser, means once the browser requested the first pg then web server creates a session and keep it until the browser closes or session expires.
|
|
|
|
|
Hi,
It does not create session on every request. Server creates session only once when you declare in your code and keep alive until you have kill it or close the browser.
krishna veer singh
|
|
|
|
|
Please Read[^] this article. This will resolve your query and you can also learn something new from it.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
tanx, but i'm experiencing that is confucing.i use a web service to server the web application. the problem is when user login i create the session
this.Session.Add("customer", customer.CUSTEMAIL);
then insert it to table (db) to restrict the same user log in.
in the log off method i use
customer.CUSTEMAIL = this.Session["customer"].ToString();<=====A
if (Customerinfo.delete_session(customer))
{
this.Session.Abandon();
return "log off successful";
}
else
{
return "log off failed";
}
to delete the record in the db and then destroy the session, but the prolem is when logging off at point A the session count is 0 means no session object and gives null ref exception, could you tell me what is going wrong here.
|
|
|
|
|
Hi,
Only one seesion value will be created
|
|
|
|
|
Hi friends...
Please help....
I have created a setup in VB.NET and installing in different machines. Now the problem is that the same setup is working on some machine fine, while same setup is not working. When i am trying to run the application its giving a message that "unable to find a version of the run time to run this application".
And also i want to tell you that all those machine having same configuration and same operating system, same anti virus.
Now please help me... i got frustrated with this kind of error.
krishna veer singh
|
|
|
|