|
Thanx, but it is public offcourse
it is a part of leftContol code.
public partial class controls_LeftContol : System.Web.UI.UserControl<br />
{<br />
public void FillDt()<br />
{<br />
string[] suras = myXml.GetNames("List.xml");<br />
<br />
if (suras != null)<br />
{<br />
<br />
ddlSurasSelect.Items.Clear();<br />
}<br />
<br />
}<br />
<br />
}
it is a part of right control code
public partial class controls_RightControl : System.Web.UI.UserControl<br />
{<br />
<br />
protected void ddlTranslateSelect_SelectedIndexChanged(object sender, EventArgs e)<br />
{<br />
<br />
<br />
}<br />
}
--
"Success is simple. Do what's right, the right way, at the right time."
best regards,
tradakad
|
|
|
|
|
The method must be public as pmarfleet suggested
But i think that your question is how to call it
I hope this works (Let me know if it does):
Inside rightcontrol
dim ctrl as leftcontrol = me.page.findcontrol("leftcontrolname")
ctrl.somefunc(1)
By the way, just translate it to c#
Alexei Rodriguez
|
|
|
|
|
Hi, AlexeiXX3
I tryed to do it.
I can found dropDowList control but I cant occur its SelectedIndexChangeMethod. and FillDt() is not that dropDownListControl method
I think may be I should move FillDt() into index.apsx.sc ad to try call it in way Page.FillDt() ?hm.. may should I try.
--
"Success is simple. Do what's right, the right way, at the right time."
best regards,
tradakad
|
|
|
|
|
Where you able to declare the leftcontrol inside rightcontrol?
If so, you should be able to call any public method inside leftcontrol
Alexei Rodriguez
|
|
|
|
|
Hi, Alexei!
I'm not able to do it offcourse - because I tryed it at first.
but I have solved this task - i did so:
into index.aspx I wrote
protected void Page_Init(object sender, EventArgs e)<br />
{<br />
<br />
controls_left ctrRight = ctrRightControl;<br />
controls_right ctrLeft = ctrLeftControl;<br />
<br />
ctrRight.RefreshSuraEvent += new controls_right.EventHandler(controls_left_DoSmth);<br />
}<br />
<br />
private void controls_left_DoSmth(object sender, EventArgs e)<br />
{<br />
ctrRightControl.NeedingMethod();<br />
ctrRightControl.ddlSura.SelectedItemIndex = 0;<br />
<br />
}
into leftCOntol code
public delegate void EventHandler(Object obj, EventArgs e);<br />
<br />
public event EventHandler RefreshEvent;<br />
<br />
protected void RefreshList()<br />
{<br />
if (RefreshEvent != null)<br />
{<br />
RefreshEvent(this, new EventArgs());<br />
}<br />
}<br />
<br />
protected void ddlReciterSelect_SelectedIndexChanged(object sender, EventArgs e)<br />
{<br />
<br />
<br />
<br />
RefreshList();<br />
<br />
}
now all is ok. it is solved. thanx to allfor the help
--
"Success is simple. Do what's right, the right way, at the right time."
best regards,
tradakad
|
|
|
|
|
i m developing a web-application for domain-provider...i want to check whether the domain is already registered or not using ajax functionality...i m using ms-access as backend....i m very new to ajax so please someone help...how can i check domain name availibility using ajax...
|
|
|
|
|
Neetu Maheshwari wrote: ....i m very new to ajax
Apparently, b/c it seems you have no idea what it is.
AJAX is a method of making calls asyncronously, it will not help you to check if a domain name is available, although if you have a code behind method that makes such a check, there's no reason why you can't use AJAX to call that method. The two are, however, totally unrelated to each other.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Neetu Maheshwari wrote: i m using ms-access as backend
What do you have in your db?
Do you have a list of registered domains? or will you invoquing an external web service to see availability?
Whatever it is, just use an update panel in your page, put your textbox inside that update panel, capture the textchanged event of the textbox or add a button inside the updatepanel and capture the clickevent
In the method (textchanged or click) do what you got to do to check domain availability
Show the result to user using somethng like a label control or an alert
Alexei Rodriguez
|
|
|
|
|
Thank you Mr. Alexei Rodriguez....thank you very much for your guidance...its working...
|
|
|
|
|
Im glad to help you
I just implemented something like that
I have a createuserwizard, As soon as the user leaves the username textbox, i check username abailability (with updatepanel)
Alexei Rodriguez
|
|
|
|
|
Hi!
I'm currently working on a project that need to generate my own user id.
But aspnetdb only provide GUID for users, it's unnecessary for me, together with application id.
I just wonder if there is a possible way to modify the schema of aspnet_Users?
If so, I won't need to code my own Membership provider for it's time consuming and I just want such a little change.
|
|
|
|
|
quakertistar wrote: I just wonder if there is a possible way to modify the schema of aspnet_Users?
I don't think this is a good idea. The default SqlProvider uses GUIDs as the primary key for user accounts. You could try changing the schema and any associated stored procedures, but there will be stuff in the Framework classes that expects to interact with GUID values.
If you absolutely don't want to use GUIDs, you should write your own provider. However, is it such a big deal for UserIDs to be GUIDs? Writing your own provider would be quite a big undertaking, so it's probably better to make do with the default provider.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Thanks for your rely!
In my project, application id and guid is kind of redundant data. According to our design, user id must follow some rules and has its meaning.
But I know using default provider would be great, so I just want to know if there is a better choice for my request.
Thank you again.
|
|
|
|
|
quakertistar wrote: In my project, application id and guid is kind of redundant data. According to our design, user id must follow some rules and has its meaning.
The ApplicationID property exists so that membership information for multiple systems can be stored in the same database. You only need to set this once, in your Membership provider configuration section in web.config.
Are you confusing the purpose of UserID and Username? UserID serves as an internal unique identifier for a user account and would not typically be exposed to the user. From a system point of view it just needs to be unique, so using a GUID is as good a choice as any other data type. The user interacts with the system using their Username. If you want a user's username to follow some set of rules then you could write code to facilitate this.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Nah, I didn't confuse GUID with UserName. I mean we create our own rule of UserId.
I found that using custom membership provider is the only way to this, so I guess I have to give up using our own rule.
Instead, I'll try to make GUID more compatible in our system. Thank you anyway.
|
|
|
|
|
Hi all,
I'm designing a web site with asp.net with C#.
i have a problem with my profile.
i defined for example in web.config this code:add name="name"
and in webpage.aspx :
<asp:textbox id="txtName" runat="server">;
now i want to write this code in webpage.aspx.cs:
protected void btnChangeinfo_Click(object sender, EventArgs e)
{
Profile.name = txtName.text;
}
but txtName isn't recognizable for my code ,it means it has this error:
The name 'txtName' does not exist in the current context
what do i do now?
please help me...
thank you,
Hoda
|
|
|
|
|
be sure if u have textbox control named txtName .
I Love SQL
|
|
|
|
|
Thank you,
but i'm sure that i defined txtName.
|
|
|
|
|
saba02 wrote: what do i do now?
You establish why it is that you think you have a textbox, and the compiler disagrees. Odds are close to zero that the button click event is on a page that has a control of that name.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
when you declared name="name" in web.con fig it act as run time parameter.
here you assign this to your textbox properties.
pls see your textbox properties: id,name,size,this are all free defiend properties.
when you try: all redy You assign textbox name:txtName.
again your reasign with txtbox property. so try to change the name in web.config.
i sure you get result
|
|
|
|
|
how about posting your code, and your exact error message so we can look at your problem instead of having to guess ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi I have a problem regarding divs. I created a javascript function to change the position of a div. The problem is that this div is in another div and the function is not effective. I tried this function on other divs and worked but when the divs are in another div it does not work. Can someone tell me how make the function work for this div please?. I thank you infront. The function is the one below.
function gotoposition(xpos,ypos,div1)
{
e=document.getElementById(div1);
e.style.left = xpos +'px';
e.style.top = ypos + 'px';
}
|
|
|
|
|
Your question has nothing to do with ASP.NET.
Web development questions should be posted in the web development forum.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
True - but I'd tend to be forgiving, the web dev forum is a ghost town, and this is obviously a question that's come up using ASP.NET. A lot of people have trouble working out where ASP.NET ends and web dev begins.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I would imagine that the position of the inner div is constrained by the outer div.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|