|
Hi all
I am using 1.1 ver.
I need a autocomplete textbox (from database) in my web page plz can any one tell me how can i do autocomplete textbox in my 1.1 ver
Thx
Keerthi
|
|
|
|
|
|
i was trying to display the image in the image control.
following is the code i am uisng to display in the web page.
Problem is how should i display it in the image control
int length = FileUpload1.PostedFile.ContentLength;<br />
byte[] pic = new byte[length];<br />
FileUpload1.PostedFile.InputStream.Read(pic, 0, length);<br />
SqlConnection con = new SqlConnection("server=a;database=a;user id=sa;pwd=sa;");<br />
con.Open();<br />
SqlCommand cmd = new SqlCommand();<br />
cmd.CommandText = "spa";<br />
cmd.CommandType = CommandType.StoredProcedure;<br />
cmd.Parameters.AddWithValue("@a", pic);<br />
cmd.Connection = con;<br />
cmd.ExecuteNonQuery();<br />
cmd = new SqlCommand("select * from a", con);<br />
byte[] pic1 = (byte[])cmd.ExecuteScalar();<br />
MemoryStream ms = new MemoryStream();<br />
ms.Write(pic1, 0, pic1.Length);<br />
Bitmap bmp = new Bitmap(pic1);<br />
bmp.Save(Response.OutputStream, ImageFormat.Gif);
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Put your image code in separate ASPX page, and set this ASPX page as image url in your image button.
|
|
|
|
|
How r u Navaneeth.Thanks for the reply.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
|
You can do like this.
bmp.Save(Server.MapPath("filename", ImageFormat.Gif);
image.imageurl="filename"
this can solve ur problem.
Devjit Das.
|
|
|
|
|
dev i am getting the binary data from database.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
InsDev wrote: bmp.Save(Server.MapPath("filename", ImageFormat.Gif);
Not needed. This will create file on the server disk. You can pass the image URL to ASPX page which will work
|
|
|
|
|
What exception you got?
What about checking the "null" before binding??
e.g.
string[] rol;<br />
rol = Roles.GetRolesForUser(); <br />
<br />
if(roll != null){<br />
GridView1.DataSource = rol;<br />
GridView1.DataBind();<br />
}<br />
<br />
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Hi based on my query i am getting records like this:
Id Name PNo PName Link
1 Admin 134 Admin Form1..aspx
2 Gen.M 106 Maste frmPr.aspx
3 Hum.R 165 HR123 frmwo.aspx
4 Salar 201 HRsal frmsa.aspx
7 Cashe 126 Cashe frmCa.aspx
8 Chequ 159 Cheqy frmch.aspx
9 Bills 161 Cash1 frmca.aspx
I can able to bind the Name field properly in that tabtext(arraylist)...,
Similarly i try to bind the Pnames based on the Name field...,
Still that 4th id i can able to bind Names and its Pnames records properly..,
After that id 5th & 6th is not there so its binded 7th,8th,9th Names...,
But here that pnames are not binded based on that Name field...,
Its left that 7th & 8th id, PNames...,
After that its binded that 7th Id PNames In 9th Id...,
How to solve that?,
This is my code:
For Each dr As DataRow In dt.Rows
If Not _Text.Contains(dr("Name").ToString) Then
_Text.Add(dr("Name").ToString)
End If
Next
ts = CType(Me.FindControl("TabStrip1"), JQD.TabStrip)
ts.TabText = _Text 'Binded Names Properly Here No probs
'Binding Pnames on here Getting probs on the following code
Dim _SubTabText As Hashtable = New Hashtable
_Text = New ArrayList
For Each tabtextobj As Object In ts.TabText
Dim tabtext As String = tabtextobj.ToString()
Dim drs() As DataRow = dt.Select("Name='" + tabtext + "'")
Dim _SubText As ArrayList = New ArrayList
For Each dr As DataRow In drs
_SubText.Add(dr("Link")).ToString()
Next
_SubTabText.Add(drs(0)("Id") - 1, _SubText)
Next
ts.SubTabTextCol = _SubTabText
Plz Give Me Some Idea To Solve This One...,
-- modified at 1:31 Tuesday 13th November, 2007
Regards,
Mageshh
|
|
|
|
|
I am not able to understand ur problem properly. I dont have much idea but may be problem is in following code
For Each dr As DataRow In drs
_SubText.Add(dr("Link")).ToString()
Next
_SubTabText.Add(drs(0)("Id") - 1, _SubText)
Next
ts.SubTabTextCol = _SubTabText
Why you are using drs(0)("Id") I guses u shud use dr("Id").
Try it I guess it will work.
If doesnt then add if condition here too '''If Not _Text.Contains(dr("Name").ToString) Then'''
|
|
|
|
|
Hi all,
Can anybody plz help me how i can use Roles in Authorization section in Web.Config file while user authentication.
While user authentication, i want only specified logged in users can access some pages of my application.
Can i use Roles for this??
Plz help me.
Thanks,
Nagendra.
|
|
|
|
|
I used to use "Windows-authentication" in my network. I have the AD service to manage the user account..
So, we do the following things in our web project. The window authentication will take care the rest..
- Disable the anonymous access in our project.
- Use "Integrated-Windows Authentication"
If we don't want a particular user to view a particular page then we remove this user from this page.. It's very simple and powerful.. really nice to use for the intranet sites.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Hi all
i want a carousel control on my web page, its like a container where there are many images and two buttons left, right to scroll one by one image.
Can any one help me with this code.
Thanks and regards
Prakash Mishra(Banglore,India)
|
|
|
|
|
like that?? I suggest you to try the javascript library called Lightbox..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Hello Everyone,
I've designed a table and this table is placed inside the placeholder........
But now i want paging in this placeholder. Can anybody suggest me the way to solve it ..........
|
|
|
|
|
The Knowledge wrote: I've designed a table
A asp table don't have inbuilt paging. You can use DataGrid/GridView instead.
|
|
|
|
|
method to create database table for payshedule
|
|
|
|
|
gunaarun wrote: method to create database table for payshedule
What is payshedule?
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Hi all can anyone tell me how can we convert system date (of format like dd/mmm/yyyy or mm/dd/yyyy) into format for example '2007-10-25T11:47:10.515625+05:30' in c#.
Please response me soon.
I will very thankful for that..
Sincerly
Vishnu Narayan Mishra
|
|
|
|
|
|
DateTime.Now.ToString ("o");
Jon Sagara
Once again, the conservative sandwich-heavy portfolio pays off for the hungry investor! *slurp* Oh, I'm ruined!
-- Dr. Zoidberg
.NET Blog | Personal Blog | Articles
|
|
|
|
|
Thanks a lot sir Its working fine..
|
|
|
|
|
Hi,
we are retriving data from one database table to other database table. But we are getting error as invalid column. The issue is we are not using that column name in both table and even in .net code also. If we search the column name in full project code it is not finding that word also.
what will be the problem can any one help me
|
|
|
|