|
I added the dll allready as reference to the Project, but what now?
I think i have to create a Tag now and config something?
|
|
|
|
|
iam having datatable with the two columns when a button is click then colum1 data should replace with the column2 data.is it possible
|
|
|
|
|
Sure
foreach (datarow r in datatable.rows)
{
r[0] = r[1];
}
I didn't get any requirements for the signature
|
|
|
|
|
Hi,
I am migrating asp.net 1.1 vertion asp.net 2.0, I am getting an issue in the following code
GroupID = Guid.NewGuid.ToString
dRow.Item("ContentID") = GroupID
GroupID guid value not storing in the drow.Item("ContentID"), which stores an Guid.Empty. while debugging I found the following error
Run-time exception thrown : System.Reflection.AmbiguousMatchException - Overload resolution failed because no Public '=' can be called with these arguments
And I tried with the following code
dRow.Item("ContentID") = new guid(GroupID)
with this code I am not getting run-time error, but its storing only Guid.Empty.
Please explain, how to convert string to guid.
Thanks in advance.
|
|
|
|
|
What is the type of dRow.Item("ContentID")?
Also, you should turn on option strict and option explicit.
Did you try
dRow.Item("ContentID") = Guid.NewGuid()
|
|
|
|
|
Thanks for the reply, dRow.Item("ContentID") is System.Guid type.
I changed this guid type to string, now application is working fine.
But I have question, same code is working in 1.1 version, why its not working 2.0 version?
Thanks
|
|
|
|
|
bhupathi srinu wrote: But I have question, same code is working in 1.1 version, why its not working 2.0 version?
That's just Microsoft making sure its loyal developers have plenty of work to do. MS doesn't want things to just work, that wouldn't be any fun for the programmer now would it?
I didn't get any requirements for the signature
|
|
|
|
|
Hi, i have done one application which tooks input as excel file which contains 2 columns. i took whole excel data to datatable and add two more columsn to datatable and export this data table to csv file by creating file programatically . The application is running sucessfully in my local machine. So i deployed in server. it working fine, when i logged into that server and run from there.
If i run the deployed application from my local machine using
http://192.168.1.110/Myapp/uploadfile.aspx. I am getting the following error.
"The Microsoft Office Access database engine cannot open or write to the file ''. It is already opened exclusively by another user, or you need permission to view and write its data" (IF i took .xlsx file)
"The Microsoft Jet database engine cannot open the file ''. It is already opened exclusively by another user, or you need permission to view its data."(IF i took .xls file)
can any one say, why this error is occuring?
I have given all permissons to the folder in server, where i creating the csv file.
G. Satish
|
|
|
|
|
i want to write a database access code in the "gotfocus" or "lostfocus" event of a textbox in a web page.How can it be possible.
Thanx in advance.
|
|
|
|
|
You'll need to use an AJAX[^] callback to the server via the onfocus and onblur events of the textbox.
|
|
|
|
|
thanx for the response.
can you pleasa give me an example.
|
|
|
|
|
There is a simple example on that link I gave you. Work your way through that tutorial and you will have the ajax tools you need. I presume you already know how to do the database bits...
|
|
|
|
|
I have a problem ...
I have to add controls to the page dynamically under a certain tag .The response which Iam getting from the database is in the form os HTML string.(on selection of a dropdown) something like:
<asp:textbox id="" .......="" xmlns:asp="#unknown">
uc:codelook id="" addedproperty="123" .....=""
<asp:label ....="" xmlns:asp="#unknown"> etc etc ....
Now Earlier I had been using
--->control xyz = ParseControl(HTMLString)
--->page.findcontrol("dIV_Tag") to get the specified div where the controls have to be added in an object objDIV.
---> and finally objDIV.addControl(control);
Now the problem comes in case of uc: tag which is a ascx user control .earlier uc tag was coming undefined for which i had add the namespace like <@register .....> to the the HTMLString due to which that prob was resolved but now the next problem which is coming is of the child controls which are being used under the ascx.
cause under the setter property inside the codebehind of ascx it was like :
public string AddedProperty
{
tt1.Attributes.Add("addedProperty", value );
}
tt1 is coming as undefined which is a child control --a textbox inside that usercontrol.even tried to set the child property from ascx thru inline coding by making a getter of the same property at code behind .
but again the value of addedProperty= "123" is not being set for child control.
What should be done ?Please suggest something as its urgent.
<uc:codelook id="" addedproperty="123" .....="" xmlns:uc="#unknown">;
modified on Monday, November 17, 2008 6:09 AM
|
|
|
|
|
hello,
I'M Ssnding some parameters to an url which display for me an XML file. i just want to need how to read that XML page in order to use that data in a table.it's not reading an existing xml file,it's not saving somewhere it's just in that url.
i'm new in XML, any help will be extreamly apreciated, thank you in advance
|
|
|
|
|
hi michael,
You can load that XML into an XMLDocument and iterate through the nodes,use xpath expressions and get the data.
Regards
surender
|
|
|
|
|
hi surrender,
thank you for your answer , here is how am i sending the parametrers via post method
<form method="POST" action="someURL.php">
<input type='hidden' name='serial' value='a' >
<input type='hidden' name='transactionid' value='b' >
<input type='submit' name='submit' value='submit'>
</form>
the someURL.php contain the XML file after sending its parameters.
where should i put that URL in the code, could you please give me a small example
thank you so much
|
|
|
|
|
sorry i didn't get u....
r u submitting postdata??
if yes provide the format of the post data.
if you want to submit post data you can create a weburi using webrequest object
and set the parameters like
WebRequest req = WebRequest.Create("URL to be accessed");
req.Method = "POST";
req.ContentType = "text/xml";
string str = "POST DATA";
StreamWriter sw = new StreamWriter(req.GetRequestStream());
sw.WriteLine(str);
sw.Close();
WebResponse res = req.GetResponse();
and res will contain response from the accessed URL.
Regards
surender
|
|
|
|
|
i'm so sorry i thing i missed explained here is the detail
i developping a sim card website so users could enter and check calls they made (call history) .
i have to send PARAMETERS (date, login username and password) to a specific url. when i'm redirecting to that url an xml file is displayed (here is URL u can check it "https://www.xfone.co.uk/mobile/CdrsView.php")
but of course i can't show this page to the user i have to retreive that data to a table.
hope that will give you a clearer idea.
sorry for the miss-understanding
regards
michael
|
|
|
|
|
Could you simply provide an xslt stylesheet with the xml page to have it render as you like?
|
|
|
|
|
the page which contain the url is sent by another system another provider i don't have any control on it simply i get a xml page which i want to retreivem the data
regards
|
|
|
|
|
OK, so you can use the code posted above to read the XML into an XMLDocument on the server side - you should be able to bind this to a grid...
|
|
|
|
|
ok, thank you for your time
|
|
|
|
|
dear surrender in the code above where could i specify the parameters value??
|
|
|
|
|
hi micheal,
in the code given refer
string str = "POST DATA";
here replace "POST DATA" with approriate parameters and their values.
Regards
surender
No Defeat Is Final Until You Stop Trying!.......
|
|
|
|
|