|
Hi,
I am new to .Net2.0. In my Asp.Net application using C# I used a dropdownlist for which lots of data is being binded to. Inorder to make my application user friendly i need a Combo box, but I couldn't find it in the tool box. I searched for it over the internet, but of no use. Please help me.
Thanking You in Advance.
-- modified at 6:07 Thursday 26th October, 2006
Srinivasarao Lalam
|
|
|
|
|
hi jenious
this is ajay
i m facing a problem while connecting asp.net page to crystal report.
i have the following code.
ObjsqlAdapter = New SqlDataAdapter(Objsqlcommand)
ObjDataset = New DataSet
ObjsqlAdapter.Fill(ObjDataset)
Dim rptDetail As New crptDetailReport
rptDetail.Refresh()
rptDetail.SetDataSource(ObjDataset.Tables(0))
CrystalReportViewer1.ReportSource = rptDetail
CrystalReportViewer1.DataBind()
here crptdetailreport is my crystalreport.
objdataset is my dataset.
problem is that i m not gettin anything on my report.
although dataset is accurate
nd i hav also added the database field on my report.
wht could be the reason.
i m very much eager for the solution
thanks in advance.
|
|
|
|
|
Hi
I have a detailsview which is loaded from a datagrid. What I want is that when you edit the record, i want it to not just edit that record but actually insert a new updated record with the new details and put a close on the previous.
I have a stored procedure which does this (as the application was originally done in .net1 and we wanted to see how we would go about doing it in .net2) But the way the details view works it wont allow us to use the storedprocedure on the edit/update section. So ive tried to do it by adding my own submit button to the update field by creating it to a template field. But now we cant find anyway of from this button writing the code to call the stored procedure and insert from the sqldatasource.
Please can anyone help with this?
Thanks
Adam
|
|
|
|
|
i want when i double click on datagrid i can go to the other form and send a vaue to that form i do this work but its not right
how can u help me?
e.Row.Attributes.Add("OnDblClick","javascript:document.url='Frm_Skin.aspx?'"+e.Row.Cells[1].Text);
|
|
|
|
|
http://authors.aspalliance.com/das/datagriddblclick.aspx
Thomas
|
|
|
|
|
i understand that but i cant create a link for go to the other form with double click
how u can help me
|
|
|
|
|
Is this doable?
We're looking to develop an application that allows you to enter a domain (www.thewebsitename.com) and have the application return a list of all pages associated with that domain. (www.thewebsitename.com/allthesepages).
sanjeev
|
|
|
|
|
sharma sanjeev wrote: Is this doable?
Yes, it is doable.
|
|
|
|
|
thanks for your reply colin. please help me out and suggest in what way i can do this? have you ever made or seen such application. will be thankful if i can see that.
thanks in advance for your next reply
sanjeev sharma
Software engineer
Graycell technologies exports
chandigarh
india
www.graycelltech.com
|
|
|
|
|
sharma sanjeev wrote: please help me out and suggest in what way i can do this?
You crawl the sites for links. You follow the links building up your database as you go. (In pretty much the same way as Google does)
Once you have your database looking it up should be fairly simple.
|
|
|
|
|
Take a look at my reply on the C# forum.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi,
In my site on IIS 5.1 with Asp.net 1.1 ,
I have a problem with a virtual dirtectory that points to a share on another computer.In IIS I put in the 'connect as' the right user and pass that has access to that share.Now when I test my code It works without a problem but from a remote client I get ' access to the path '' is denied'.
But some pieces work from remote, for example if I use a Response.write("win.open(http://fullpath..)") then i can open the files;
but when I want to get all the files in a folder with Directory.GetDirectories(path) I get the access denied error.
I can't impersonate the user that has access to the fileshare, cause I need to do rolebased checks in COM+.
thanks for any help..
|
|
|
|
|
In sqlserver Database,datatype is smalldate/time
and i tried following code
Dim dtmDate As Date
dtmDate = Date.Parse(TxtDat.Text)
Response.Write("dtmdate")
But it is giving String is not a valid datetype.How to format it examctle to isert into database.
I need to isert only date not with the time.
Help me out.please
kissy
|
|
|
|
|
Try this.
Date.Parse(TxtDat.Text).ToString("dd/MM/yyyy")
Thomas
|
|
|
|
|
It is giving an errot that String was not recognised as valid Date.
Give me solution,i Have used as below
Dim dtmDate As DateTime
dtmDate = Date.Parse(TxtDat.Text).ToString("mm-dd-yyyy")
Response.Write("dtmdate")
Here i am taking date from Calender.
How to solve this,Thanks for ur answer
kissy
|
|
|
|
|
Your date format string is wrong. Use capital ‘M’ in the place of month. Like this "MM-dd-yyyy"
Thomas
|
|
|
|
|
But eventhough i changed it is givig the same error.Where exactle i have to change the format,or else give me anothe idea
kissy
|
|
|
|
|
what are you passing in your text box??
I mean what exactly you want to do?
|
|
|
|
|
You pass value in text box in mm/dd/yyyy format and you can display that value by following code
stdate = DateTime.Parse(TextBox1.Text)
Response.Write(stdate.ToString("dd MMM yyyy"))
so if you pass 10/26/2006
it will display 26 Oct 2006
you can change format of date but you have to pass date in textbox in mm/dd/yyy format
Try it
|
|
|
|
|
Dim stdate As DateTime = DateTime.Parse(TxtDat.Text)
Dim strdate As DateTime = stdate.ToString("dd MM yyyy")
and i am trying to isert this strdate valued into my smalldatetime datatype value in database.Then it is giving error that cast from 26 10 2006 to Date is not valid.Waht exactle i have to insert into my database for insertion of Date column.Like 26/10/2006
kissy
|
|
|
|
|
Dim strdate As DateTime = stdate.ToString("dd MM yyyy")
this will never work kissy. as you are converting string into datetime
so dont do that. instead you pass value when you are inserting it into database. and dont worry abot smalldatetime datatype it will take any value of date. so try to insert it as it is. and then let me know the changes
Try it
|
|
|
|
|
Thank you so much for clearing my doubt.
Here my mistake is in Calender i have used dd/mm/yyyy.
and now it is working properly,Thank you once again
kissy
|
|
|
|
|
Hi Kissy,
I was having the sme problem, before few months, I could get the right solution. The only thing you need to do is copy paste the below code in your Page_Load.
CultureInfo ci = new CultureInfo("de-AT");
Thread.CurrentThread.CurrentCulture = ci;
You will have to import System.Threading and System.Globalization in Import section
This is nothing but setting up Dutche culture, so that your date format is fixed to dd/MM/yyyy format. While selecting from a calendar you may have to give
SelectedDate.ToString.Replace(".","/") because it dispalys date in dd.MM.yyyy format.
Cheers
Sony Sebastian
|
|
|
|
|
textbox contain text with html tags and i want to save text with html tags in file called test.html when i click on save button.
when i remove html tags then file are save properly. but when i use html tags then an error occured.
so how can i resolve the problem.
text box contain this text.
<a>abc</a>
<p>hello</p>
<p><b>World</b></p>
how can i save this text a html file.
dcjoshi2
|
|
|
|
|
What is that error? Do u set the validateRequest="false" tag in the page directive?
Thomas
|
|
|
|