|
dropdownlist.Items.FindByValue("value") gives me item in C#, i think you can find that in VB too and then set LstItm.Selected to true.
Regards
Shajeel
|
|
|
|
|
Hi, Thank you for the reply
Worked like a charm! Was also very pleased to find "FindByText" as an option. Thanks again mate
|
|
|
|
|
I'm having a problem with using AJAX with classic ASP
I have a dropdown for country which when selected shows the state.
But when, I'm using the AJAX script the "xmlHttp.responseText" actually shows me the HTML code and the client script of the entire page which is not desirable.
Can anyone send me the code for populating one dropdown based on the selection of another dropdown in classic ASP and AJAX.
any help would be appreciated.
Thanks & regds,
Anirban Deb.
|
|
|
|
|
hi all,
coding for sending emails is simple as smtp class is provided in dotnet framework vs-2005. but i am facing problem in writing code for retrieving mails using pop3 or mapi or otherwise.
pls help me in this matter.
language preffered is vb.net.
thanks in advance for help.
regards,
gauri.
gauri
-- modified at 5:06 Wednesday 20th December, 2006
|
|
|
|
|
Hi Dear All,
I need a so very urgent.
I want a put DropDownListBox in GridView at runtime.
When i click on button, new row will be display in gridview with DropDownListBox at runtime and i also binding database in DropDownListBox with MS-Access.
please reply asap.
I hope you all understood my question.
Thanks
Vipul
|
|
|
|
|
Hi,
I need to use a Custom Validator to check whether data is present in a Textbox or not. I am using a custom validator because the field is only required IF the user logged in is from a certain user group.
Anyway.. The OnServerValidate method only fires up when data is present in the textbox. I NEED the method to also fire up when data is not present.
Any ideas? Thank you.
|
|
|
|
|
|
Have you tried it with ValidateEmptyText = true?
|
|
|
|
|
For some reason my custom validator is not recognising the ValidateEmptyText Property.
Im assuming this is not to be implemented in the Front-End. I am trying something like:
Me.cst1.ValidateEmptyText = True [Doesn't Work]
Dim cst1 As CustomValidator<br />
Dim blnStatus As Boolean<br />
blnStatus = cst1.ValidateEmptyText<br />
cst1.ValidateEmptyText = blnStatus
Still has problems. Any suggestions? .. still
Thank you once again for your time.
|
|
|
|
|
i want to pass asp array in javascript function as parameter.
and access the array values in that function.
its in asp and not asp.net
reply fast
diya
|
|
|
|
|
diya_dev wrote: i want to pass asp array in javascript function as parameter.
and access the array values in that function.
You can't pass the actual array from server code to client code. You have to create client code that recreates the array.
diya_dev wrote: its in asp and not asp.net
Then you should post in web development forum, not the ASP.NET forum.
diya_dev wrote: reply fast
Unless you want to pay me, I reply when (and if) I feel like it.
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|
|
hello everyone
i m developing a web application in which i m using crystal reports for reports.
till yesterday it was working fine.but from today it gives me the error
"Error in File E:\Documents and Settings\SERVERHO3\ASPNET\Local Settings\Temp\temp_f07331d1-84fb-4c1d-8ea3-970e931d27d0.rpt: The request could not be submitted for background processing"
and surprise to see that i dont have any "Local Settings" folder in aspnet folder.
So i am confused with this error.
plz rectify my error
thank u very very much in advance
|
|
|
|
|
HI, is there a ASP.NET equivalent for PHP's echo command?
Or else is there a way to write on a web page without using a label or a textfield?
Thanks for any reply!!
|
|
|
|
|
You can do like this:
<%=someVariable%>
However, if you use that your code quickly gets a mess of page level variables that you assign a vaule in one place and use in another place.
You don't have to use a label or textfield to display values in the page, you can use any server control you like.
A Literal control is useful if you want a control that does not add any html to what you put in it:
<asp:Literal id="objInfo" />
objInfo.Text = "Hello world!";
This will put the text "Hello world!" in the page where the literal control was. There is no span tag added around the text.
A PlaceHolder is useful for adding controls to the page:
<asp:PlaceHolder id="objContainer" />
objContainer.Controls.Add(new LiteralControl("Hello world!"));
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|
|
i want to add a regular expression to validate the user input to be only in currency formate
thanks
abdelhameed81
|
|
|
|
|
Hi mate,
The best way forward for all those kind of validators is using a regular expression validator:
<asp:regularexpressionvalidator>
Look it up. It should be quite easy. There is a "ValidationExpression" property where you are supposed to input a complex expression which validates the input of Currency/Date/Time/Datetime/Numbers/Strings/Anything!
Visit http://regexlib.com.DisplayPatterns.aspx
It's a good site.
|
|
|
|
|
thank you for your efforts, but i want to knw the expression it self
thanks
abdelhameed81
|
|
|
|
|
Hai Take Compare Validator and Change main Properties like this
1.Type=Currency
2.Operator= DataTypeCheck
Thanks and Regards
Siddu
Siddu
Software Developer
|
|
|
|
|
Hi,
I am trying to use a web service in one of my window application project.
I have written the code:
localhost.HelloWebServiceinC myservice=new invoke_service.localhost.HelloWebServiceinC();
Console.WriteLine(myservice.HelloWorld());
But it is not returning anything from the webservice. Please help me to solve the problem.
Thanks & Regards
Mishra
|
|
|
|
|
Can you please elaborate more on this? Like are you getting some exception, or you do not have webservice placed properly?
I did not get what exactly you are trying to say. :
Jayant D. Kulkarni
Brainbench Certified Software Engineer in C#, ASP.NET, .NET Framework and ADO.NET
|
|
|
|
|
I have written soap server and soap client using SoapSender and SoapReceiver class of WSE2.0. The soap server in console application while the soap client is in web application. The client requests the server. When the server replies some message to the client. This message is received in the client portion ie in the function Receive.
protected override void Receive(SoapEnvelope env)
{
}
Now the problem is, if i write some code inside the Receive function as
protected override void Receive(SoapEnvelope env)
{
//some code to extract message from the soapenvelope
WewForm1 wf=new WebForm1();
wr.Response.Redirect("WebForm2.aspx");
}
It won't redirect to page WebForm2.aspx. My objective is to take some action (either redirect to another page or just display the message received in the current page) when the message is received.
Could somebody tell me how to do this?
Thanks in advance.
tandukar
|
|
|
|
|
tprakash wrote: WewForm1 wf=new WebForm1();
wr.Response.Redirect("WebForm2.aspx");
In your custom class, you need to get reference to the Response object of the current HttpContext[^] instance and redirect the user to a new page.
|
|
|
|
|
I am using treeview in .net 1.1
For that purpose i have to install IE Web Control.
I have downloaded it but not able to install it
I m not able to find the dll file required to add in toolbox of visual studio
plz. help me out.
prakash sawant
|
|
|
|
|
Did you read the readme.txt file in the download to have an idea on how to build the source code and the runtime files? Also, you'll have to manually add the assembly to the Toolbox of the VS 2003.
|
|
|
|
|
Yes, i successfully installed IE Web Control
And i also adde TreeView Control to the toolbox of Visual Studio IDE.
Now can anyone explain me how to use it
because, i used it but it is not showing me child elements below one another,
it is showing all are in one row..
plz help me out.
prakash sawant
|
|
|
|