|
since its readonly its not psble..u czn either display it in textbox or label
T.Balaji
|
|
|
|
|
Currently i m working on project in which i have to use inheritance in javascript
my requirement is i want to update field of classA from classB by creating new instance of ClaassA in ClassB
suppose i m in classsA ,then i have to move classB where i m updating classA field by making instance of claassA in ClassB . when i m back in ClassA fiels which i updated still not updated . so how i will be abe to do this
Raghvendra
|
|
|
|
|
I'm developing an application where I need to display large floor plan images in an area smaller than the image itself, so I'm looking for a control that would handle this for me.
I imagine it being just like google maps except I can load my own image into the control instead of using a real map. I found a few .NET image zoom controls but none of them can handle the push-pin type functionality - I'd need to be able to plot several points on the floor plan with labels or mouse over popups.
Does anyone know of a 3rd party control that can do this?
|
|
|
|
|
Hie all
I have developed a website and i want to access the pages from frmMain where users login, I have set the page frmMain as the start page but i can still type the page name like:
http://localhost:2942/Website/frmAddUsers.aspx and access it, Does anyone know how to stop this.
|
|
|
|
|
you need to implement Authentication in your web site so that user won't able to see any page without logged in
Is that you want ?
Search for Windows authentication
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
|
|
|
|
|
I want users to view pages after logging into the application, like in yahoo u have to submit your credentials before viewing your emails, even if u know the link to your inbox.
|
|
|
|
|
|
omlac wrote: http://localhost:2942/Website/frmAddUsers.aspx and access it, Does anyone know how to stop this.
i can see that you are running your application from the filesystem it is not running from IIS. To avoid this you should create virtual directory for your application. if you have done this already. In visual studio open your project from LocalIIS and select the related virtualdirectory(i.e., your application).
before running your project in IIS select your VD properties and add the default page as frmAddUsers.aspx
this might solve your issue
Regards,
Sunilwise
|
|
|
|
|
For that, You need to store credentials into a session.
And in each page u need to check whether session["user"] not null.
if it is a null then redirect it to login page.
regards
|
|
|
|
|
Inside that subfolder you can create a new web.config then for authorization set it to <deny users="?"> This way it denies all anonymous users and will redirect them back to your main page.
|
|
|
|
|
I didnt get you quite well, u said i need to create a subfolder where. I need to be a ble to create Session say to log out after 30 seconds it logs out.
|
|
|
|
|
If I am following what youa re saying correctly you have a layout like login.aspx and then safe.aspx which requires authentication.
Inside visual studio create a subfolder inside your solution and drag your safe.aspx page into there and right click on the folder click new then and add a web.config. Then add the security section I mentioned earlier. For your session timeout you can set that in your main web.config <sessionstate timeout="60"> or on your page load event and that page is only called once.
|
|
|
|
|
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
|
|
|
|