|
Oh that not an issue i have sent you the partial code ..the prob. is something different..
The web.config is almost ok.. According to me ..
|
|
|
|
|
I get the error "Update requires a valid UpdateCommand when passed DataRow collection with modified rows." on the line adap.Update (ds,"Config") . Everything else works fine. Here is the rest of the code for that section. If anyone can help me to correct this message when I try to update the database that would be great.
sub btnUploadTheFile_Click (sender As Object, e As EventArgs)<br />
dim strFileNameOnServer<br />
dim strBaseLocation<br />
strFileNameOnServer = txtServername.Value<br />
strBaseLocation = Server.MapPath("")<br />
if strFileNameOnServer ="" then<br />
txtOutput.InnerHtml = "Error - a file name must be specified."<br />
return<br />
end if<br />
try <br />
dim imageUrl as string<br />
Dim connect As String = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source= "& Server.mappath("matt.mdb") & ""<br />
Dim conn as New OleDbConnection(connect)<br />
dim adap as OleDbDataAdapter<br />
Dim ds as New Dataset<br />
adap= New OleDbDataAdapter ("SELECT * FROM Config",conn)<br />
adap.Fill (ds,"Config")<br />
dim de as datarow<br />
ds.Tables("Config").Rows(0)("Logo") = txtServername.Value<br />
response.Write (ds.Tables("Config").Rows(0)("Logo")) <br />
adap.Update (ds,"Config")<br />
imageurl=(ds.Tables("Config").Rows(0)("Logo")) <br />
Image1.ImageUrl = imageurl<br />
conn.close()<br />
uplTheFile.PostedFile.SaveAs(strBaseLocation+"\"+strFileNameOnServer)<br />
txtOutput.InnerHtml = "File <b>" + strBaseLocation+"\"+strFileNameOnServer+"</b> uploaded successfully"<br />
catch ex as exception <br />
txtOutput.InnerHtml = "Error saving <b>" + strBaseLocation+"\"+strFileNameOnServer+"</b><br>"+ ex.message <br />
end try<br />
end if<br />
end sub
|
|
|
|
|
Where is your UPDATE command?
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
I'm probably missing it. I thought the update line I put in, which is causing the error, just sent the updated information back to the database. I guess I'm missing a step. Could you or someone show me the code to do this update to the database? Thanks.
|
|
|
|
|
Is there any way to make the gridview column autosize.I mean it the cell contains 100 characters , then the cell should itself adjust the text in one line
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
you can not do this because in any column the records in each row has not fixed size. some contains 5 characters and some contains 55 characters.
so if you want to auto size the columns then your column will be expands more worthless,
for ex: there are 10 rows in grid. 9 columns have 20 characters & 10th column has 90 characters than the layout of grid will not shows in regular manner.
so, instead of these you have to set wrap property to the columns and give some fixed width by approximation of column name.
for column of id there is no need to give size as same as other columns like details column.
|
|
|
|
|
How to pass the parameters of @dbName, @LogicalName, @ToServer
to job dynamically using stored procedure?
|
|
|
|
|
ashish bhakhar wrote: How to pass the parameters of @dbName, @LogicalName, @ToServer
to job dynamically using stored procedure?
They hide that information in the documentation of the System.Data namespace[^]
led mike
|
|
|
|
|
what can i do using documentation of the System.Data namespace?
|
|
|
|
|
ashish bhakhar wrote: what can i do using documentation of the System.Data namespace?
Try reading it. Oh and while reading you also try to absorb the information into your braincells. You do have some don't you?
led mike
|
|
|
|
|
Hello Everyone,
I'm fetching images stored in the folder and images(s) path is stored in my database but because of ~/ it's not bringing the images in my DataList that's why i'm trying to use ResolveUrl to solve my problem....... But i don't know how to use at Design Mode
I'm giving my code please let me know where to use ResolveUrl in my code
<img src="<%# DataBinder.Eval(Container.DataItem,"Image") %>" />
|
|
|
|
|
Dear Friends,
I have created a form with crystal report this report does not view by user but after completing the entry when user save the data automatically print is invoke with the present data this functionality is working at my local pc but not working on web.
Can any one help me regarding this thanks in advance.
My PC system configuration is
Microsoft Visual Studio 2005
Sasmi
|
|
|
|
|
i have written javascript code in master page n using in content page its working in firefox but not working in IE
|
|
|
|
|
meghamaharshi wrote: not working in IE
This is a very vague statement. What do you observe? Or any specific error conditions that surface up in Internet Explorer?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Fix it then. IF you want more specific help, try telling us what the script is, and what error you get. Odds are, you need to detect the browser and run different script for IE
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
In my aspx page there is some heading that comes at runtime and a gridview.
How should i export both the details in the excel.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Check this out
http://aspalliance.com/771[^]
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Sir thank You for reply ,
Sir can i export the heading which is occuring at runtime in the aspx page ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Pankaj Garg wrote: i export the heading which is occuring at runtime in the aspx page
Are you experiencing any specific issues in that?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
at the front level every thing is fine .But i am unable to export a text(heading) in excel sheet.
Otherwise , the gridview contents are getting exported in the excel , with the help of the link that u provided.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Hi
I am using treeview control . in that i given target "blank" for nodes . while clicking node its opening new window having small size . after that i have to click maximize button for maximizing the window . i want maximize window while clicking nodes . how to do that ?
|
|
|
|
|
Did you try having a javaScript function to manage the window open where you custom and granular control over the window size and attributes?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi Friends,
I have one textbox control which i will type some characters and then i will press search button a pop up window will appear i will select the name from the pop up window and enter means the values are displaying in the textboxes till now no problem,when i select the value from pop up window the values will display in parent window and another textboxes which i will have ,displaying regular expression error message.Kindly tell me how to avoid the message.
Thanks & Regards
Senthil Kumar
|
|
|
|
|
Can the pop window prefill the textbox with sanitized data? If you are filling the textboxes automatically then what makes you to break your own rules and trying to fill it?
I see that there is some validation missing in the popup window rather than in the regular expression validator that fires in the parent window.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi Vasudevan Deepak,
Now I have one doubt,can you help me please,i have one datagrid and have edit,delete buttons ,i have kept breakpoint in edit coding now i click edit button i cant able to debug and also the grid values are not getting displaying to the corresponding textboxes.Please help me how to do.
Thanks & Regards
Senthil Kumar
|
|
|
|