|
You need to clarify a bit more.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I need a script that make it possible to communicate between members, like skype. But then online.
Sorry, my English is not so good. 
|
|
|
|
|
Please kindly help.
I want to validate textbox only if checkbox is unchecked, if checkbox is checked no need to validate textbox as require field.
At where and when I have to attach and deattach RequireFieldValidator to textbox?
Thanks and best regards.
|
|
|
|
|
The ASAP.NET field validaators are run with JavaScript on the client first, then on the server if you have a Server meethod defined. Use some JavaScript to test when you click your submit button, or whatever method you are using to submit the form.
function ValidatePage()
{
return Page_Validate("VALIDATION GROUP NAME");
}
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|
Thanks Mark Nischalke and Shameel
I added a CustomValidator to the textbox and add ClientValidationFunction
This is my solution to share with other people those who have problem as mine
<asp:CustomValidator ID="CustomValidator1" runat="server"
ClientValidationFunction="CheckPorts" ControlToValidate="txtPort"
ErrorMessage="Please checked at checkbox or enter Port code in textbox." ValidateEmptyText="True"
ValidationGroup="RegisterAgentUser">*</asp:CustomValidator>
ValidateEmptyText="True" also important here, if not control will not doing validation.
function CheckPorts(sender, args) {
var chk = document.getElementById('<%= CType(CreateUserWizardStep1.ContentTemplateContainer.FindControl("chkViewAll"), CheckBox).ClientID %>')
if (args.Value == "" && chk.checked == false) {
args.IsValid = false;
}
else {
args.IsValid = true;
}
}
|
|
|
|
|
Currently I have a page with a button on it. When the button is clicked a query string is passed to generic handler. The purpose of this handler is to generate letters for individual students that were in a class (the query string is the class id). As the files are generated they are added to a zip file so the user only has to download one file. Everything works perfectly fine including the downloading of the file.
However my problem is I need a way to know when the handler has finished and to retrieve data from it. Specifically, as the handler is looping through all the students it may find that some students do not have all the necessary data saved in the database in order to generate the appropriate letter. In this case the students name is save in a List(Of String) so that it can inform the user, but continues creating the rest of the letters.
I have tried using HttpContext.Current.Items.Add("BlankStudents", BlankStudentRecords) and HttpContext.Current.Session("BlankStudents") = BlankStudentRecords in order to save the list. The latter did not work because it says the object is not set to an instance and I'm assuming it is referring to the session. The former did work, however the ASP page that calls the handler does not post back so it can't try and read from the HttpContext.
I tried using a redirect but I get a "Cannot redirect after HTTP headers have been sent" because this redirect is being done after the zip file is transmitted to the client. What would be the best way to accomplish this? Would it be better to add the zip file and the List(Of String) both to the HttpContext.Current.Items and then redirect back to the page and initiate the download from there, or is there an even better and efficient method.
Thanks in advance for any help or suggestions.
|
|
|
|
|
As per my knowledge and understanding, if you want to read/write session state value in HttpHandler then you have to implement
IRequiresSessionState . If I am wrong then please let me know.
public class Handler : IHttpHandler,IRequiresSessionState
{
...
Thanks
Parwej Ahamad
ahamad.parwej@gmail.com
|
|
|
|
|
hi
i want create multi language website with asp.net
please guide me
thanks
|
|
|
|
|
Just translate everything to all the languages you want to represent.
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
|
Hi ,
I want implement pleas wait massage when i click button on user control ascx page in ASP.net.
How can i do it .please help me.
|
|
|
|
|
This is the basics
<div id="progress" style="visibility:hidden">Please wait...</div>
<input type="button" onclick="showProgress()"/>
function showProgress()
{
$("#progress").show();
}
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|
I create web site.
But url has many parameters for example http://test.aspx?pageNumber=123&headerId=123123.
So when user click some button(it will go to http://test.aspx?pageNumber=123&headerId=123123.)
I want user to only show http://test.aspx in the url bar.
So, there is many url rewriting.
But i want to simple way.
We have windows2003 server.
If you know site which explain simeple way.
Let me know.
hi
My english is a little.
anyway, nice to meet you~~
and give me your advice anytime~
|
|
|
|
|
|
Instead of GET, you could use POST as the form's method.
|
|
|
|
|
Dear all,
When I click back button from browser 'Page_Load' event fire and all data those I have filled are disapper.
Please kindly advise what is possible cause this and how can I prevent.
Thanks and best regards
|
|
|
|
|
|
Hi, thank you for reply
Yes, I used Ispostback
If Not IsPostBack Then
End If
Here is my scenarios...
I have 4 comboboxes , At page_Load bind only one. Bind Second combo after user select first combo. Third combo depend on Second combo and fourth one depend on Third one. (here to avoid page refreshing I use RadAjaxPanel)
After all if user click on button show data in Grid. When user doubleClick on a row from grid will go to next page, from second page when user click on Browser's back button all selected data combox and data in grid are gone.
|
|
|
|
|
When you click back, the previous page in the history is loaded. I believe caching is disabled for your previous page, so every time the page is loaded from the server. If you want to display the page from the cache, enable caching.
|
|
|
|
|
Good answer!
Wonde Tadesse
MCTS
|
|
|
|
|
Thank you for your reply.
I'm not familiar with Cache, May I know how can I enable catching?
Thanks and best regards
|
|
|
|
|
|
Hello Everybody,
I am using dotnetcharting chart on my project. So there i have generate a problem while :-
i have a chart in which have Multiple bars. then i want to click on bar and show it's option and generate a new graph on this control.
So i have not found any Event to click on bar.
So pls help for this query.
Thanks
If you can think then I Can.
|
|
|
|