|
|
always welcome..
Best Regards,
Apurva Kaushal
|
|
|
|
|
hai all,
I have created a login page(ASP2.0) in my project.
i would like to include authentication security.
can anyone help me with this....thanks in advance
with Regards,
Imthiyas Ahamed.A
|
|
|
|
|
HI!
C if u hav limited number of users then v can configure thru Authentication like
code:
<authorization>
<allow users="shiva\shiva,imthiyas\ahamed">
<deny users="*">
so,only 2 users r allowed i.e shiva & imthiyas . no more users are allowed
Urs Shiva
|
|
|
|
|
ok thanks
with Regards,
Imthiyas Ahamed.A
|
|
|
|
|
u can definitely use the inbuilt LOGIN control.. but for that u`ll have to configure the membership of the site.. using the website administration tool..
Kunal
|
|
|
|
|
Hi there!
You can use the ASP.NET login control.
And you can configure this either by using the Configuration utility.
Or you can do this thing programatically. But this is the neatest solution for your problem. And It is one of the simplest too........
|
|
|
|
|
<asp:RoleGroup Roles="Registrator">
<ContentTemplate>
<br />
<a href="Registrator/Register_new_bidder.aspx" ><img src="Images/registerbidder.jpg" border="" /></a>
<br />
<a href="Registrator/Edit_Bidder.aspx"><img src="Images/assignseat.jpg" border=""/></a>
</ContentTemplate>
</asp:RoleGroup>
the above is my code
when the page is first loaded int he default.aspx(root) the images displays just find however when i log in to another user account and tries to navigate around the subfoler folder(/root/registor/abc.aspx) it will display that it cant find the img file
error:file not found
root/registor/Images/registerbidder
(p.s my subfolder also have an web.config of its own)
instead of looking for the file inside the root folder's image folder
it look for the image folder inside the subfolder
y is this so and how can i solve it please help
|
|
|
|
|
I also faced the same problem but in different scenario.
i solved by replacing
html img control ""
to asp:image server control and gave src path as "~/images/registerbidder.jpg" as in ur case.
the "~" will point the root path.
Yogesh
|
|
|
|
|
the error"
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /hog9/~/Registrator/Register_new_bidder.aspx
the code:
<a href="~/Registrator/Register_new_bidder.aspx" <>img src="~/Images/registerbidder.jpg" border="" /></a>
i tried it still cant could it be because each of my subfolder have an web.config?
|
|
|
|
|
do it in server control
Convert
<a href="~/Registrator/Register_new_bidder.aspx" ><img
src="~/Images/registerbidder.jpg" border="" /></a>
as
a ---> asp:hyperlink
img --> asp:image
Yogesh
|
|
|
|
|
Hello All,
Can someone help me in finding Id of dynamically created webserver control like textbox, dropdownlist etc, when these server control placed in aspx page, but the aspx page is included in Master page.
Suppose dynamically created textbox textbox1 id changes to clt100_Main_textbox1
How to find out this id or its value using javascript
Please help in this regard.
Solution will be appreciated.
Regards
Balasaheb
Balasaheb
Software Developer
Platform: Asp.net,vb.net
Database: SQL Server 2000
|
|
|
|
|
You can access the server control in javascript by its property called "clientid"
so in aspx assign a variable with the clientid of the textbox(or any server control)
ex:
var ctrid=<%= TextBox1.ClientId %>;
and use it.
Yogesh.
|
|
|
|
|
Thanks for ur reply
you r right, & I do same think in my application for all pages on which server controls are placed directly rather than created dynamically.
But for dynamically created ctrl (For now, I'll say only ctrl for dynamic server controls),
javascript function which I called unable to find out ctrl name like ctl100_Main_textbox1
Textbox textbox1 = new TextBox1();
textbox1.Attributes.Add("OnMouseOver","FunTest("+ textbox1.ClientID + ")");
Function FunTest(obj)
{
var a = document.getElementById(obj);
return a;
}
above javascript function return null even control is present on page.
Can u help me in this regard
Balasaheb
Balasaheb
Software Developer
Platform: Asp.net,vb.net
Database: SQL Server 2000
|
|
|
|
|
In this particular case try use like
Textbox textbox1 = new TextBox1();
textbox1.Attributes.Add("OnMouseOver","FunTest(this)");
and "this" will give the object and you can use in ur "Funtext" function...
like
obj.value 'No need of getElementById
try this....
Sorry if i am wrong....
Yogesh
-- modified at 2:47 Friday 30th March, 2007
|
|
|
|
|
I'll try and get back to u.
Before that, I want to explain another situation.
The javascript function which is working perfectly for physical page (not dynamic)
function callcal(obj,objTxt)
{
//alert(obj.id + " " + objTxt);
var curleft = curtop = 0;
if (obj.offsetParent)
{
curleft = obj.offsetLeft
curtop = obj.offsetTop
while (obj = obj.offsetParent)
{
curleft += obj.offsetLeft
curtop += obj.offsetTop
}
}
//var objtxtid = document.getElementById(objTxt);
//alert(objTxt + " " + objtxtid );
var x= document.getElementById(objTxt).value ;
var y= document.forms[0].name;
window.open("DatePicker.aspx?Form="+ y + "&Field="+objTxt+"&Value=" + x + "&hField=<%=hfTargetResponsedate.ClientID %>","","top="+ curtop +", left= "+ curleft +" width=280, height=190, status=0");
return false;
}
Here u find objTxt & x. Forget about IF part inside function, just concentrate on 'x=' part. The x returns null on function call.
Now how this function gets called?
string strImage = "";
strImage = strImage + " ";
HtmlAnchor objAnc = new HtmlAnchor();
objAnc.ID = "lnkDate" + strCtrlID;
//objAnc.Name = strCtrlID;
objAnc.InnerHtml = strImage;
objAnc.Style.Add("text-decoration", "none");
//txtTargetResponseDate
objAnc.Attributes.Add("onclick", "javascript:return callcal(this,'" + txtloc.ClientID + "')");
clChield2.Controls.Add(objAnc);
Look for callcal function above for objAnc and I send clientID of textbox which is dynamically created.
Please let me know about ur view/solution
Regards
Balasaheb
By click on image, it should open popup with proper page size
Balasaheb
Software Developer
Platform: Asp.net,vb.net
Database: SQL Server 2000
|
|
|
|
|
ok ..
as u have passed "this" i.e object totally to function use it
x= obj.value;
================
anyway as of ur function it should work!!!
|
|
|
|
|
I got the solution.
If developer is using dynamic control,then they should use control's Prerender event in order to send object of these controls to javascript.
Suppose ur activating Popup on click of Image img, then img_PreRender event should be used.
Image img = new Image();
img.ClientId ="imgABC"
img.ImageUrl="abc.jpg";
img.PreRender += new EventHandler(img_PreRender);
void o_PreRender(object sender, EventArgs e)
{
string str = imgABC.ClientId;
//here u can access any control ClinetId.
}
Regards
Balasaheb
Balasaheb
Software Developer
Platform: Asp.net,vb.net
Database: SQL Server 2000
|
|
|
|
|
Hi All
1.How to use windows service in webApplication?
2.what is StandloneApplication?
Thanks to all Repliers
|
|
|
|
|
Hi,
I try to make embedded WinForm in Web Application. I follow some step from this forum.
I have problem about this. I create ActiveX and put that object to webpage.aspx using CLSID. I can run im my computer, but can't run in client computer. Can you help me please?
This is the way how I expose the object:
<object id="webCamControl" classid="CLSID:6C6DD9C1-6900-45cb-842E-7284EFAAF2B2" codebase="WebCamCab.CAB" viewastext="">
I also try this way: (not show anything, just blank box)
<object id="webCamControl" classid="MyWebCam.dll#MyWebCam.WebCamCtl" viewastext="">
I put the .dll and .cab file in my web folder.
Please help me. What's wrong with my code?
Thank you very much
BR,
Lili
|
|
|
|
|
hi, all
I have one problem. I want to used javascript with treeview control in asp.net.
when selected each node of treeview I want it alert confirm message to ask me.After that confirm if I click on button "Ok" of confirm message.then I want treeview fire OnSelectedNodeChanged event.In contrast if I click on button "Cancel" of confirm message it does nothing. how can I put javascript on each node of treeview ? Anyone can help me ?
thanks
khweb
|
|
|
|
|
Hi, I have a doubt in the datagrid, that is if a button is clicked in the datagrid what are events raised what is the flow.
yamini
|
|
|
|
|
if u are putting asp:button and setting property commandName = "Select" then on click of button selectindex even will fire.
same way for commandName = "Delete" then delete event of datagrid will fire.
Thanks,
Sun Rays
|
|
|
|
|
Thanx for your infn. After this, what happens i want the complete flow till the end.
|
|
|
|
|
Hi,
i want to create version string for a file.
like if first time I am adding file in Database then it's version will be 1.0.0.0 and later on when I will make new version of that existing file it will be 1.0.0.1 and so on.....
how to do this ?
Thanks,
Sun Rays
|
|
|
|