|
Member 2697696 wrote: How do I go about creating a project that will contain multiple controls that can be dropped into other projects?
Create a web custom control, inherit from an appropriate base (control) and succeed...
|
|
|
|
|
Thanks for replying to my post. I've tried creating a class and inheriting from the fileupload control (for example) but how do I create a control that contains both a file upload and a custom button?
I even tried adding the extra button through code (see below for example):
Protected Friend WithEvents MyButton As System.Web.UI.WebControls.Button
Public Sub New()
MyButton = New System.Web.UI.WebControls.Button
MyButton.Text = "test"
MyButton.Width = 100
Me.Controls.Add(MyButton)
End Sub
Can you suggest a solution? Do I need to add some code in the RenderContents sub?
Thanks.
|
|
|
|
|
Hi All,
I have a web service developed in .Net, I want to use it in my dot net application. I am trying to add it by using VS.Net add webreference. But after I do it, I am unable to access the WebSrvice namespace, class and webmethods. And mainly the .asmx file is not included in to my application.
Can anybody please suggest me what to do in this scenario.
But the web methods are accessible using web reference.
Thanks,
Aleem Mohammad.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
First of all check the Domain rights...may be due to that reason you are not able to access the classes and methods. Also check the web refrence u have added is also added in your web.config file.
I think after doing this u will get access to webservice.
|
|
|
|
|
Hi,
Thanks for your reply, what I want is to add deploy my web service in to a domain name called ent.jnpr.net(it is actually a system name in network) in this domain I want to keep it in a directory called "WebService". So how should I put it in [WebService(Namespace="http://tempuri.org/")] tag.
And please give me some idea how to access it in my sample web application just give me few steps.
Thanks a lot.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
hello
i m updating the user's detail through gridview...everything is allrite..but i make my email-id field unique...so i want to validate the mail-textbox of gridview to check whether mail-id already exists or not..if yes den der should be an alert that mail-id already exists...plesae help me how can i do dat....
|
|
|
|
|
Just write a query to run when they update the id that checks if it already exists in the database and if it does show a label which displays error message
Why would they be able to update this field though?If its unique why dont you disable it
|
|
|
|
|
Hey,
Im trying to implement long-lived ajax connections (aka the comet pattern) in a WCF service I have written. The issue is the obvious gobbling up of ASP.NET threads - which would literally limit 1 per connection.
So, ideas started flying around - and the idea of an Async HTTP handler came to light, with the ability to send the processing of the wait loop in the connection to a different thread thus returning the ASP.NET thread back to the pool to process other page requests. THe bottle neck now still lives on whatever I employ to handle the waitloop (probably a custom TCP service, keeping a socket open)
So, I thought some more and wondered if it would be possible to have a Async Handler, that handed off execution to a service say 100 threads in which are typically looping around and these can be used to handle the wait loop for the long lived connection. Now if more than 100 connections exist, I thought about putting more than 1 connection on the same thread, which I think would require a custom TCP server. e.g
Client -> ASP.NET ASync Handler ->
Open Connection To Server Async ->
Send Request -> Async
Wait For Response -> Async
On the service I would use a non blocking socket calls (e.g the IO Completion ports, beginreceive etc..) to accept the connections and send and receive data, and it would put the connection handling the request in some sort of queue that can be handled by one of the 100 threads in the service. If more than 100 connections come in, it would start to reuse the while loops (e.g iterate, test messages for connection 1, iterate, test messages for connection 2... iterate, test messages for connection 3... )
Obviously those 100 threads would be configurable, and I may only need 10, or twenty ...
I am assuming that using sockets I am not consuming a thread until a Begin operation, e.g inbetween they waiting to be resused, which would essentially make the system scalable? And because Im not handling the wait loop in the End operation of the socket call, im not keeping the socket thread open, im handing it of to one of the 100 (or 10, 20) threads in the service which can queue automatically...
Any thoughts? I hope i Have explained myself correctly...
THanks, James
James Simpson
Web Developer
imebgo@hotmail.com
P S - This is what part of the alphabet would look like if Q and R were eliminated Mitch Hedberg
|
|
|
|
|
|
I read that article, and the comments indicate its using Flash Component for data transfer, which would explain how we can have a socken in the browser.
Im looking for a method that does not use anything on the client, apart from the usual Javascript available..
Its a different approach - so Im going to download the article code tonight and see how helpful it is.
Thanks,
James
James Simpson
Web Developer
imebgo@hotmail.com
P S - This is what part of the alphabet would look like if Q and R were eliminated Mitch Hedberg
|
|
|
|
|
i am using --->
try
{
MailMessage message = new MailMessage(txtFrom.Text, txtTo.Text, txtSubject.Text, txtBody.Text);
SmtpClient emailClient = new SmtpClient(txtSMTPServer.Text);
emailClient.Send(message);
litStatus.Text = "Message Sent";
}
catch (Exception ex)
{
litStatus.Text = ex.ToString();
}
but it display error -->
System.Net.Mail.SmtpFailedRecipientException: Mailbox name not allowed. The server response was: sorry, that domain isn't allowed to be relayed thru this MTA (#5.7.1) at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception) at System.Net.Mail.SmtpClient.Send(MailMessage message) at _Default.btnSubmit_Click(Object sender, EventArgs e) in c:\Documents and Settings\Afxisi\Desktop\hai\New Folder\Default.aspx.cs:line 29
txtSMTPServer.Text="mail.atsl.in";
if you know the answer replay to me....
|
|
|
|
|
It sounds like your smtp is wrong
try localhost instead
|
|
|
|
|
|
I created a web program using the dropdown cascading extender from AJAX and from time to time the error message appears below for unknow reason when I choose from the dropdownlist.
You have any idea or work aorund for this problem?
--------------------------------------------------------------------------------
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Dabsukol
Dabsukol
|
|
|
|
|
try
Setting EnableEventValidation="False"
|
|
|
|
|
Hi, I am working on a web project, its mainly for the back office ppl. But the problem is, say I logged in to the application, and got the main menu I clicked on one of the menus, a new window appears for that menu. And if the user again clcicks on the same menu item, the window gets refreshed instaed of opening another new window. The other main thing is when I access the same application through other PC, Like say my pc uses http:\\localhost\\default.aspx and accessing the same link using other PC like http:\\OtheCompName\\default.aspx.....it gives conflict. It opens the window in the same window of the localhost PC rather than this PC's path http:\\OtheCompName\\default.aspx .......Any Help would be appreciated..!!
Thanks in Advance!
|
|
|
|
|
What would be the reason for using localhost, this should only really be used on one machine
Is there not a server you could put the app on and then people access it from there?
|
|
|
|
|
Hi thanks for the reply, I used the localhost just for an example...but if the Appplication is installed over two servers and if we access both the links from a same client PC then it would create a conflict as I stated in the first post.
Thanks Again for taking Interest.
|
|
|
|
|
dont put them across two server use just one
|
|
|
|
|
But this is still not the solution....! Thanks for the replies..!
|
|
|
|
|
hi
I want to add next and back button to the tab control..
and restrict user from changing the tab by clicking on tab
is it possible to do this with ajax tab...if yes then please tell me how to do ..
or i need to write my own control
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
I dont think you can do this
It might be better to use asp.net buttons and then use css to style the buttons to make a tabbed menu look.
You could use a panel as the area to display the information
|
|
|
|
|
thank you ...
i was also thinking the same ..
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
I have a gridview in my page & a Calendar control ..
i bound a gridview to dataset then i add a gridview to a calendar ..
after i added a gridview to my calendar no grid view events fire ..
why ??
plz help me ..
|
|
|
|
|
You will need to post your code so we can see what is happening
Im not sure what you mean by
legend_of_zanado wrote: i bound a gridview to dataset then i add a gridview to a calendar ..
|
|
|
|