|
Hi ToddHileHoffer
I understood the script, but not the codebehind code.
can you elaborate a bit.
// Dim ObjButton as Button = UserControl.Findcontrol("ButtonId")
My Button is in aspx page and text box in user control.
// Me.Textbox1.Attributes.Add("onKeyPress", "ButtonPress(event, '" &
ObjButton.ClientID & "')")
what is C# equavalent for "Me" ?
And more over do i need to write this in code behind of aspx page or UserControl?
Sorry for confusion.
mk
|
|
|
|
|
sorry, here is the C# for your code behind.
<br />
Textbox txt = (Textbox) Usercontrol.FindControl("TextboxID");<br />
this.txt.Attributes.Add("onKeyPress", "ButtonPress(event, '" &<br />
this.Button.ClientID & "')");<br />
Does that work for you?
|
|
|
|
|
Hi ToddHileHoffer
It worked perfectly. Thank You Very Much.
|
|
|
|
|
I am looking for a Complete ASP.NET Forum Source Code(free).If I get one It will be gr8.Otherwise I have to create my site's forum.Plz tell where I can get Complete ASP.NET Forum Source Code(free).
|
|
|
|
|
|
Yahoo store has the option of recieving realtime orders using http post in xml format. Yahoo has the ability to call a page on our webserver along with the xml data in http post. I created the following code to try and retrieve the post, but when I Response.Write the output it is blank.
Page.Response.ContentType = "text/xml";
// Read XML posted via HTTP
StreamReader reader = new StreamReader(Page.Request.InputStream);
String xmlData = reader.ReadToEnd().ToString();
Does anyone know of another method to retrieve the xml in http post using asp.net and c#. Thanks in advance.
|
|
|
|
|
hi,
i have one table, inside that table i am creating two panels
now i need to put one line between two panels or can u tell how to differentiate two panels.i dont want to aplly the bgcolors.
|
|
|
|
|
In your html on your table you can make the border of any element visible.
EG style=" border-bottom-style:solid; border-bottom-width:thin; border-bottom-color:Gray"
|
|
|
|
|
hey guys
The user shouldn't put any html tags in the TEXTBOX, how can i handel this.
Estarta
|
|
|
|
|
User regular expressions to find any html.
Check this link for more info about regluar expressions and then be creative.
|
|
|
|
|
thanks alot for your reply, but this not what im looking for
i wanna prevent the user from using HTML tags or any special characters in the input box.
thanks anyway
Estarta
|
|
|
|
|
In order to prevent the user from entering any html on the client you will need to use javascript. Check here
|
|
|
|
|
this is wat im looking for Thanks alot buddy
Estarta
|
|
|
|
|
Use HttpUtility.HtmlEncode() or Server.HtmlCode to encode html on the server side
|
|
|
|
|
Hi All,
I have Visual Studio 2003 & 2005 installed on my PC. (OS - Windows XP).
For ASP.NEt application, if I try to run in debug mode I am getting following error.
"Error while trying to run project: Unable to start debugging on Web Server"
How I can enable debugger?
Please help me out to solve this.
Regards,
Amol
Every thing will come to you if you have faith.
|
|
|
|
|
Check whether the application mode is dubug or release, if it is release them make it to debug. Also you can have a look at the config file there also it may not be in debug mode.
Best Regards,
Apurva Kaushal
|
|
|
|
|
try RUN aspnet_regiis -i located in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50
|
|
|
|
|
Open IIS manager, navigate to your site, and look at the properties...from the Directory Tab, click on Configuration button, then the Debugging tab...you can guess what's missing
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
i have also the same problem.
i tried ur solution.
still getting teh error
"unable to start debugging in the web server"
wht next......
|
|
|
|
|
Any valuable suggetion............
plz help me
|
|
|
|
|
Check if the ASPNET user in in the debugger group.
Best Regards,
Haissam Abdul Malak
My Blog
|
|
|
|
|
how to use MSSCriptControl in c# Asp.net
|
|
|
|
|
hi all,
am designing a webportal(realestate website),in that application i do palce a regestration form for the new customer's to enter and do regesratration, search for the sites and for selling the sites.
could anybody suggest the better way such that i have to send a conformation to the email ID of the new user which he provided duering the regestration ,as you are regestered in our site(some conformation)
....
thanqs in advance
yuva
|
|
|
|
|
Well usualy at time of Registration we move as following....
1.Generate a random number at time of registration
2. Save that Number in a Table say "customers" along with other record(first_name, email etc)
3. Send an email to customer along with the authentication code, containing the link where customer can put his authentication code.
and thats it. I hope this would be enough for you to go ahead...
Lets work it Out.........!
|
|
|
|
|
Hi All,
Does anyone know how I can change a IP Address on a local machine using a VB.NET / C# Application? Information on where I can read about it will be fine.
Waiting for an early reply.
Rahul Joshi
|
|
|
|