|
after a long analysis i opt for exentding the membership api and i found a good tuto on http://www.devx.com/codemag/Article/34492 what suit my application.i would use my interface rather but the problem is i can't access the code because the original code is on www.code-magazine.com which is unaccessible since saturday what is terrible for me.cause i spent too much time deciding and i need to have the big picture of that tuto before i start.if anyone has downloaded the code before please let me know.please this is pretty urgent!!!
eager to learn
|
|
|
|
|
highjo wrote: this is pretty urgent!
That is just rude. Don't ask for help like that.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
i' m sure for you guys those things are piece of cake, and you can easily look down on beginnners and tell them that what they are asking for is just ennoying.I can't find a ressource and i' not asking for you guys to do the whole thing for me.I you know something or where i can find it why don't you just say it.what would it cost you? guys?after all this is part of a community where we can help each other not necessaryly by correcting a code of give algorithms.I'm on probation pediode somewher this is the porject i've being given to.i lack time that's all.
OK. If i want to do this thing by using my user interface and extended database schema, i know i need to
1. create my own membership provider(what i did in the web.config but doudting if i should create that class too)
2. create my MembershipUser class which extend the .NET MembershipUser(so far i just know about the constructor. how to create my own constructor with the base one is not clear for me)
3. create my own membership class which will extend the >net Membership class.
and extend major methods.Just need to know where i' m going before i start.That's why i need a sample. i'm not a guru as you guys. if anyonne feels to give me some clues it will be great.thanks!
eager to learn
|
|
|
|
|
Hi there!!!
I had gone through the article published on the topic "log4net" on CodeProject by Mr suman Kumar. I have one question that if I want to have more than one file appender(rolling fileappender - more than one log files ) using log4net in one application , is it possible?(this is the requirement of my project) . Please help
|
|
|
|
|
Build your config file as below for your requirement:
<log4net threshold="ON" debug="true">
<appender name="RollingLogFileAppender1" type="log4net.Appender.RollingFileAppender">
<file value="C:\\TestProj\\TestLog.txt" />
<appendToFile value="true" />
<rollingStyle value="Size" />
<maxSizeRollBackups value="10" />
<maximumFileSize value="2KB" />
<staticLogFileName value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%-5p %d %5rms %-22.22c{1} %-18.18M - %m%n" />
</layout>
</appender>
<appender name="RollingLogFileAppender2" type="log4net.Appender.RollingFileAppender">
<file value="C:\\TestProj\\TestLog111.txt" />
<appendToFile value="true" />
<rollingStyle value="Size" />
<maxSizeRollBackups value="10" />
<maximumFileSize value="2KB" />
<staticLogFileName value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%-5p %d %5rms %-22.22c{1} %-18.18M - %m%n" />
</layout>
</appender>
<root>
<level value="DEBUG" />
<appender-ref ref="RollingLogFileAppender1" />
</root>
<root>
<level value="ALL" />
<appender-ref ref="RollingLogFileAppender2" />
</root>
</log4net>
|
|
|
|
|
Hi,
I am using com dll in web service. I am getting following error.
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {7B51C031-56CD-4D6A-B922-28899DC3D10E} failed due to the following error: 80070005.
I searched on google but did not get solution. Has anybody solution.
Thanks
Manish
|
|
|
|
|
while (cnt < dsAllUpdtblData.Tables[0].Rows.Count - 1)
{
if(dsAllUpdtblData.Tables[0].Rows[cnt].Item[6].ToString()=="")
{ }
cnt = cnt + 1;
}
i have above code in tht ....it will give an error to Item[6] this part
how i will get perticulat column?
|
|
|
|
|
It would really be useful to know what error - my mind reading is a bit off this morning.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
use
dsAllUpdtblData.Tables["tablename"].Rows[cnt].Item["columnName"].ToString()
instead of doing
dsAllUpdtblData.Tables[0].Rows[cnt].Item[6].ToString()
I think if you use columnname the problem will never arise...
Abhishek Sur
|
|
|
|
|
Just use "[6]" instead of ".Item[6]".
David Anton
http://www.tangiblesoftwaresolutions.com
C++ to C# Converter
C++ to VB Converter
C++ to Java Converter
VB & C# to Java Converter
Java to VB & C# Converter
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: convert VB, C#, or Java to C++/CLI
|
|
|
|
|
I have a gridview that has an imagebutton column and a check box column.During
GridView1_RowDataBound event i disable the checkbox column.Later when i click the image button i display a PDF document in a seperate window using a method named "exportgridview" and try to enable the corresponding
checkbox.The problem is when i click the imagebutton the PDF is shown but the checkbox which is in the same row as the clicked imagebutton doesn't get enabled.I will show u the code in the
imagebutton click event.
protected void ImgBtnPDF_Click(object sender, ImageClickEventArgs e)
{
ImageButton ib = (ImageButton) sender;
TableCell tablecell = (TableCell)ib.Parent;
GridViewRow row = (GridViewRow)tablecell.Parent;
CheckBox CBox = (CheckBox) row.FindControl("CheckBox2");
CBox.Enabled = true;
Session["FamilyKey"] = row.Cells[1].Text;
Session["StudentKey"] = row.Cells[2].Text;
ExportGridView(); // this method shows the PDF in a seperate window
}
|
|
|
|
|
you can write your code in GridView_RowCommand() event
Dim ImageID As Integer = Convert.ToInt32(e.CommandArgument)
If e.CommandName = "Image" Then
'Find the check box control and you can enable them.
end if
how to enable a check box in a gridview
mitesh
|
|
|
|
|
Hi,
My XML looks like ABC,XYZ
In my coding I getting this using
XmlNodeList allNodes= XmlDoc.GetElementsByTagName("Book");
I am checking whether this any childnodes exists for this using
XmlNode child=allNodes[0].ChildNodes[0];
string Childname= child.Name;
I am getting this(childname as) "#text" ,though no childnode is there in my XML
|
|
|
|
|
pls provide the xml structure that u r using.
regards
|
|
|
|
|
when i run application i want previous visited site url details of internetexplorer
supose before runing the application i visited a google.com and yahoo.com etc.,
when i run the application the need th url address of the visited sites it is possible in asp.net if yes plz tell me how to do it
i used in my application below code but it display the current application url address
Label1.Text = Request.ServerVariables("HTTP_REFERER")
|
|
|
|
|
Check this.Request.UrlReferrer.ToString();
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
|
Hi all,
I have requirement of converting asp.net control say gridview in my webpage into image.
I succeeded in converting the entire webpage into image using web bwoser control. But i don't know how to convert only a specific control say gridview with data and style sheets into image.
Later i have to export these image to MS Word, PDF, Power point.
So please suggest me how to do the convertion of gridview into image using c# and asp.net.
Thanks in advance.
Cheers,
sekhar.
|
|
|
|
|
|
Hi Rocky, thanks for your suggestion.
But i already did converting the page into Image and i succeeded in that.
I wnats to convert only a specific control of a page into Image.
Is there any way to do taht...
Cheers'
sekhar.
|
|
|
|
|
|
for validation:
I want to call a function which is in .js file,
function called in inline code by
<asp:textbox id="TextBox2" onkeypress="function name" runat="server" xmlns:asp="#unknown"></asp:textbox>
is it correct way to call ????
or any one tell me the write way to call function from javascript file
i already done following code runnable for keypress event,
<asp:TextBox ID="TextBox1" onkeypress ="
if (!((event.keyCode > 47 && event.keyCode < 58)||event.keyCode==45||event.keyCode==46||event.keyCode==110||
event.KeyCode==190||event.keyCode==8||event.keyCode==9))
{
alert('Please Enter Numbers only...');
event.returnValue = false;
}
else
{
event.returnValue=true;
}
" runat="server"></asp:TextBox>
Please tell me the way to call function in aspx inline code
or any fault in given code
|
|
|
|
|
use
TextBox1.Attribute.add("onkeypress","javascript:f1()")
in
|
|
|
|
|
There are manu ways to call the javascript funtion from aspx and code behind file
Write you javascript function
and call it from on that event
<asp:TextBox ID="TextBox1" onkeypress="myfunction();" runat="server"></asp:TextBox>
in same you can register the same from code behind file also
TextBox1.Attributes.Add("onkeypress", "javascript:myfunction();");
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
Hi Friends
I want to design a search engine for my local database.I want to design search engine in asp.net. how to remove stopwords and how to generate a query for select statement in database for retrive the results
your's subbu
modified on Monday, September 15, 2008 5:38 AM
|
|
|
|