How i can realise my own Membership Provider for my social network example project where i want to use more extended registration with new fields? Thanks.
Hi all
I want to arrange the controls in a Panel control. For example, I have four labels and four textboxs, I want to put them in a panel like a table without using the VS designer, only use the code. Does anyone do it before?
Best Regards,
On which event or how should I bind data to the dropdownlist to avoid selected value overridden?
For some reasons, I can't use "IsPostBack" to bind data only on postback
I've tried binding data on page init, it works ok but when postback, the selected value will be overridden (Loss)
protected void Page_Init(object sender, EventArgs e)
{
this.BindData();
}
protected void BindData()
{
//grab the source of dropdownlist
}
hey all ,
background -
I'm using an activx that allow me to access some information on the client side,
By using the activex events and callback i'm updating server side from client.
i wrote a user control that register all activex's events so when one of the events occuer there is a callback to the server that handle this event.
I need to write some other user controls based on this control so on every callback this user controls will be render on the client side.
My question is -
what is the best way to make a shared infrastructure that handle this events and render the right content base on user controls?
is there any other ways i can use ?
thanks!
I know how to hide site map nodes from unauthenticated users but I want to hide site map nodes from authenticated users. This is for the scenario of hiding the link to the login or signup page etc.
Any ideas??
I have an AccessDataSource TestSummaryADS. I can easily view the results in a GridView or DropDownList by setting its DataSourceID property.
How do I bind a value from the results TestSummaryADS to the text of a label?
I'm just trying to populate labels on my page with results from the DB entry.
C# or VB.NET answers okay.
I would like to edit the ASP.NET MVC templates for Visual Studio so that any new action or controller created has a specific piece of code within it by default.
For instance, I'd like to replace the generated:
public ActionResult MyAction()
{
return View();
}
with a specific coding standard we prefer to use within in my team. eg:
public ActionResult About()
{
try
{
DoStuff();
return View();
}
catch(Exception)
{
HandleException();
}
}
I've looked through the filesystem, but I cannot find anything specific that relates to the ASP.NET mvc templates. Anyone know where they are?
Hello,
What's the cleanest way, like 1 line of JavaScript code, to set one text box's text property to equal another?
e.g. the JavaScript way to accomplish this:
txtShipCity.Text = txtCity.Text;
Thanks!
Hi,
In VS2003, I am trying to find out the particular page where the request is coming from. I want to identify the exact aspx page name.
Is there a way to only get the page name or some how strip the page name?
Currently I am using the following instruction...
string referencepage = HttpContext.Current.Request.UrlReferrer.ToString();
and I get the following result...
"http://localhost/MyPage123.aspx?myval1=3333&myval2=4444;
I want to get the result back with out any query string parameters and be able to identify the page MyPage123.aspx accurately...
How do I do that??
Thanks
Recently lot of interviewers are asking
"What are the integration patterns are you familiar with?".
I know design patterns,what is integration pattern then?
from my textbox, i need to get the first digit entered into that, and check whther it is 7 or 8 or 9.. using getelementbyid, how can i get this.... how can check whether first digit is 7 or 8 or 9 in the textbox
Hello,
I have a label and I want to add to it a link.
I want to use javascript like :
MyLabel.Attributes.Add("`onclick`", "javascript:`SOME_CODE`")
What must I add in (SOME_CODE) to redirect the user to another link.
Thanks.
i am trying to get checkbox value ,using c#
In grid view the datasource is from oracle
i have added the checkbox but the value is not coming
please help me in checking the value of check box
this is for selecting the candidate if the checkbox is selected the particular candidate name is selected and the candidate names are appended
in a string
Hello,
I want to create labels in my page dynamicly, for example the user will choose in a textbox the number of labels, and I will display the number of this label with .text = "XYZ".
Thanks.
1) how to write a code to close a conform box by pressing esc key.
2) how to write a code to save a data what ever we entered in the present web form if we press yes in conform box.... if press no need to be in same web form..