|
If you want to catch the event inside the user control itself, that will not be a problem. For that you can double click on the combobox while in design mode and enviorment will auto generate the handler for the SelectedIndexChanged event by default in side the code behind for .ascx file. But don't forget to set the "AutoPostBack" property of the dropdownbox to true.
If you want to handle SelectedIndexChanted even inside your page where you are using this user control then the quickest souloution is as follows:
Create a public property in your user control like:
public DropDownList List
{
return ddlYourTargetComboBox;
}
on your page do something like:
ucYourUserControlInstance.List.SelectedIndexChanged += new EventHandler(list_SelectedIndexChanged);
void list_SelectedIndexChanged(object sender, EventArgs e)
{
//Implement logic here
}
Hope this helps
|
|
|
|
|
And also add AutoPostBack Property = true along with the above code.
Regards,
Arun Kumar.A
|
|
|
|
|
Hello friends,
I am using rad menu in my project..i want to give a css for that rad menu.
can anybody help me to solve this...if possible give me a small eg or something useful...
regards alex
|
|
|
|
|
Hi all,
I use CssClass for a link(href) but a:active selector dose not worked and I don't know that this error why happned.
|
|
|
|
|
Always try and give some meaningful subject to your question, that will be a lot easier for the people who are here to help you.
Provide some code snippet so that we can help you pointing out the mistake
Mubashir
Software Architect
Storan Technologies Inc, USA
Every job is a self portrait of the person who did it.
|
|
|
|
|
when i was using VS.NET 2005, can't see other classes in one namespase.
In VS.NET 2003 all works.
All classes are public.
|
|
|
|
|
sounds strange...but compile successfully or not?
<< >>
|
|
|
|
|
|
Hi,
I using .NET 2.0. I want to use a cust create user control, but I am struggling to change the text of the default button from Create User to Register. Please can someone advise me on how to do this.
Also, where does the user get added to the user membership tables??
I hope someone can help?
Regards
ma se
|
|
|
|
|
set CreateUserButtonText property to "Register"
<< >>
|
|
|
|
|
Hello Everyone,
I am trying to have my site connect to a database a check for an email address but when it goes to open the database I receive an error.
Here is the code up until I receive the error. Can anyone see if I am missing something?
Imports System
Imports System.Data
Imports System.Data.SqlClient
Partial Class login
Inherits System.Web.UI.Page
Private Function emailCheck() As Boolean
Dim conCED As SqlConnection
Dim cmdSelect As SqlCommand
Dim dtrLogin As SqlDataReader
Dim path As String
Dim provider As String
path = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\DatabaseSQL.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"
provider = "Database=DatabaseSQL;"
conCED = New SqlConnection(provider & path)
conCED.Open()
On the conCED.Open() I get this error message.
The header for file 'e:\wwwdata\56b549be\www\App_Data\DatabaseSQL.mdf' is not a valid database file header. The FILE SIZE property is incorrect.
Could not attach file 'e:\wwwdata\56b549be\www\App_Data\DatabaseSQL.mdf' as database 'DatabaseSQL'
Thanks for the help
Chad Dolan
|
|
|
|
|
Just to make sure to verity if DB is ok or not...can you open your DB thru SQL enterprise?
<< >>
|
|
|
|
|
I think you are right there is a problem with the DB.
Thanks for the help.
Chad Dolan
|
|
|
|
|
Hi everybody...
I have some problems related to a querystring issue.
I`m calling an ASPX page, with some querystring parameters, from a JavaScript function, through the window.open method.
The way this URL is configured and called in the javascript function is the following: EnviarMapaEmail.aspx?type=addPt&x=-46.644203856241546&y=-23.571182563934798&st=Av.%20Paulista&nb=10&city=S%C3O%20PAULO&uf=SP&POI=
And in the ASPX page, the Request.QueryString comes this way:
type=addPt&x=-46.644203856241546&y=-23.571182563934798&st=Av.+Paulista&nb=10&city=SO+PAULO&uf=SP&POI=
The problem is: the original city name (city parameter) is 'SÃO PAULO' and it`s encoded in the URL (thought the escape() javascript function) as 'S%C3O%20PAULO', but my ASPX page only recognize'SO+PAULO' and it goes back through the Request.QueryString as 'SO PAULO'.
What`s the problem in encoding especial chars?
Any hint would be very appreciated... :]
See you!
|
|
|
|
|
AFAIK, the settings that decide how the escaped codes in the request are decoded are:
:: The content-type setting in the html header, which probably comes from:
:: The content-type meta tag in the sending page.
:: The RequestEncoding setting in the web.config file.
Also, the escape function might not take into account the selected encoding for the page. Try the newer encodeURIComponent function instead.
---
single minded; short sighted; long gone;
|
|
|
|
|
hey guffa...
thank you, it worked.
both pages are .aspx, so, presumably, they`re using the same encoding type.
but your hint about the encodeURIComponent function worked fine, both on IE and FF.
cya
|
|
|
|
|
Hello,
How can I make an ASP.Net page execute a certain function every 30 minutes ?
tnX...
|
|
|
|
|
Java Script:
===========
function setTimeInterval()
{
var Timer = setInterval("fun()", 30*1000); //For every 30 minutes fun() will be executed.
}
function fun()
{
Ur Code Here
}
<body onLoad="setTimeInterval()">
Regards,
Arun Kumar.A
|
|
|
|
|
other way...
<!-- Refresh page after 10 seconds --><br />
<meta http-equiv="refresh" content="10" />
<< >>
|
|
|
|
|
Hi Al,
Manoj Bisht this side. Can anybody let me know how to deploy an web application in ASP.NET and also is it necessary to include the database(Sql Server2000) while deploying the web application if yes how it can be
.....................
Plz
|
|
|
|
|
The Knowledge wrote: how to deploy an web application in ASP.NET and also is it necessary to include the database(Sql Server2000) while deploying the web application
Assume that you are deploying to remote server. Copy all aspx files, and config files. Copy bin folder also which contains all dll's. SQL DB can be deployed as a .SQL file.
|
|
|
|
|
Hi all,
Can anybody let me know how to include the splash screen in ASP.NET(Web Based)
or in javascript as well
...............................
Manoj Bisht
|
|
|
|
|
hello
who r u?
do u know who am i.
the big legend there.
byee
tc
|
|
|
|
|
Stop spamming the site...
Mubashir
Software Architect
Storan Technologies Inc, USA
Every job is a self portrait of the person who did it.
|
|
|
|
|
well.. i guess there aint any splash screen functionality inbuilt into ASP.net, though u can set it running using some javacript tweaks..
create an initial page and add the splash screen content in it.. use the setinterval() javascript function to redirect to another page after a set time interval.
or u may even use AJAX so that the content is displayed on the same page..
i hope u get it
Kunal
|
|
|
|