|
hi Raghvendra Kumar Roy how long u r working as a programmer or developer and which company u r working. even this is very simple that a dll component can u inside a code behind but not as UI. just for example that u take a reference of richtext of window control in asp.net and do it. After that u tell me what is happen . ok make it fast . i am wating for u.
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
r u a programmer or what?
How can you do it.
SSK.
|
|
|
|
|
wait i will give u example but it not use in ui its only add in tool barrrrr
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
hi Vri SSK r u from south. how long u r working as a programmer or developer and which company u r working. even this is very simple that a dll component can u can use inside a code behind but not as UI. just for example that u take a reference of richtextbox of window control in asp.net and do it. After that u tell me what is happen . ok make it fast . i am wating for u. now tell me is this posible or not. Just go a head and back to soon.
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
wah mere sher....
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
MY DEAR JISKO GALI DENA HO NA WO MERE SAMNE GALI DE TO MAI BATAON GALI DENE KE BAAD KYA HOTA HAI. PICHE TO SABHI GALI DETE HAIN
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
yaar don;t get angry.it's ok.....
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Sonia Gupta wrote: I CREATED A WINDOW USER CONTROL AND ADDED IT'S DLL AS A REFERENCE INTO THE WEB SOLUTION.
CAN I ADD THAT CONTRO;L IN THE TOOLBAR IN WEB SOLUTION
Windows controls can't be used in web. Because each web server control should override
Render()code> method. Could you tell me a real time scenario where you need such solutions ? <br />
<br />
<div class="ForumSig"><hr><br />
<font size="1px"><br />
<a href="http://www.w3hearts.com" title="Post aricles,code snippets and discussions" rel="nofollow">My Website</a> | <a href="http://catb.org/~esr/faqs/smart-questions.html" rel="nofollow">Ask smart questions</a></font></div>
|
|
|
|
|
hi, I have written the following code to retrieve a value from two table using joins. but i am getting the error code near dr1.Item("m2.fname")
Cant we use the joins here? if so how to get a value from two tabl?
Sub bindsup(ByVal empcode As String)
Dim sqlstr1 As String
Dim dr1 As SqlDataReader
sqlstr1 = "SELECT M2.fname from T_emp_mstr M1,T_emp_mstr M2 where m1.Reportto=m2.Empcode AND M1.Empcode='" & Txtempno.Text & "'"
Dim comm1 As New SqlCommand(sqlstr1, dbconnhr)
If dbconnhr.State <> Data.ConnectionState.Open Then
dbconnhr.Open()
End If
dr1 = comm1.ExecuteReader
While dr1.Read
If IsDBNull(dr1.Item("m2.fname")) Then
Txtsup.Text = ""
Else
Txtsup.Text = dr1.Item("m2.fname")
End If
End While
dr1.Close()
End Sub
Chaitra N
|
|
|
|
|
Use SQL Query Analyzer to test ur query is wrong or Right
By the way which error r u getting here?
Best Regard
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Query is working. when i debug it gives and error saying "IndexOutOfRangeException was unhandled by user code" m2.fname
Chaitra N
|
|
|
|
|
Now it is working I replaced "m2.fname" with "fname". Thank you for your reply.
Chaitra N
|
|
|
|
|
Remove the m2. it should just be
dr1.Item("fname")
|
|
|
|
|
Hey it is working. Thank you.
Chaitra N
|
|
|
|
|
Check ur query again.Ur both table name M1 and M2 are same
best Regard
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Because it is a self join. Now it is working I replaced "m2.fname" with "fname". Thank you for your reply.
Chaitra N
|
|
|
|
|
Check your Table Names. seems that both are same.
SSK.
|
|
|
|
|
Because I am using Self Join. Now it is working I replaced "m2.fname" with "fname". Thank you for your reply.
Chaitra N
|
|
|
|
|
hi Friends
anybody know Something @ UnauthorisedAccessException?
I m Creating a Directory From CodeBehind
if (!Directory.Exists(Request.PhysicalApplicationPath + "\\References\\" +<br />
this.MeetingID + "\\"))<br />
Directory.CreateDirectory(Request.PhysicalApplicationPath + "\\References\\" +<br />
this.MeetingID + "\\");<br />
<br />
fulUpload.SaveAs(Request.PhysicalApplicationPath + "\\References\\" <br />
+ this.MeetingID + "\\" + fulUpload.FileName);<br />
It is working fine on Casini , but if i keep appln in IIS this code gives me above Error.
please help me if anybody know @ this Error.
Amit Metkar
3i-infotech, Mumbai.
|
|
|
|
|
The aspnet user must not have authority to create this directory...
|
|
|
|
|
Because ASP.NET is not having access to the specified folder. Use Server.MapPath() to specify files reside inside your website.
|
|
|
|
|
how can i open a file which is on the server
Amit Metkar
3i-infotech, Mumbai.
|
|
|
|
|
I have 2 types user. for example : managers , customers. how can I use "form authentication" to login these users separately. I don't want my customers access to manager pages or managers directories.
but when I create a login page and use <deny users="?"> tag in my web.config file, customers can access to manager directory because they have Authentication Ticket. how can I distinct users from each other?
mehran
|
|
|
|
|
if u r using VS.net 2.0
take a login control drag it to ur page
& take a registation control to register ur page
go to .net command prompt type aspnet_regsql
it will open a wizard follow that to ur working DB
now add some attributes to ur web.config
authentication mode="Forms"
forms loginUrl="Login.aspx" name="D1" timeout="60" /forms
/authentication
authorization
allow users="*"/
/authorization
membership defaultProvider="MyProvider"
providers
add name="MyProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="BankDBConnectionString" passwordFormat="Clear" enablePasswordRetrieval="true" /add
/providers
/membership
roleManager enabled="true" defaultProvider="MyRoleProvider"
providers
add name="MyRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="BankDBConnectionString"/
/providers
/roleManager
profile defaultProvider="MyProfileProvider"
providers
add name="MyProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="BankDBConnectionString"/
/providers
properties
add name="Theme"/
/properties
/profile
this will give u Roles,Members and Profiles
Now create two roles as u hv two
Rols.
//u will get something like createrole("")
make two folders for two roles respective page in respective folder
now make two seperate web.config for these folders
and write
authorization
allow roles="Staff"/
allow roles="Manager"/
deny users="?"/
/authorization
as ur roles
thats it........
please read code care fully i m not showing tags so please interpret it right.
Amit Metkar
3i-infotech, Mumbai.
|
|
|
|
|
Hello man see this example u can understand and knows clearly about forms authentication.
www.xoc.net this is site and look on that forms authentication.
I hope it will work for u
Happy coding.
|
|
|
|