|
I didn't say that it isn't possible in C#.
I said that it isn't possible. Period.
An HTML document is not a suitable format to handle the kind of data that you have in a database. You can of course display data from a database in a web page, but that is not a conversion, and from what I have seen I don't think that is what you are looking for.
If you want to send data over the web, choose a format that is better suited for it, like for instance XML.
---
b { font-weight: normal; }
|
|
|
|
|
Thnks,
so according to u it should be in xml format.
would i be able to view the reports?
shriya
|
|
|
|
|
I think the problem here is that you really don't understand web technologies. I would suggest some reading before tackling this.
We'll have difficulty helping you for such a general problem.
|
|
|
|
|
if you wnt to place your application on web server or but what kind of resources you have used for sending database on web server. do you have used WebService..?
whic techcnology is used for developing this kind of application let me know do you use ASP.net....? if you r using ASP.net then this problem may be solve.?
Pavan Pareta
|
|
|
|
|
u send me ur actual problem.
thn i hav to solve it
dcjoshi2@yahoo.co.in
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Hi friends.
I have a problem to send mail.
I got following error.
A socket operation was attempted to an unreachable host
SmtpClient smtp = new SmtpClient();<br />
smtp.Host = "68.16.152.154";<br />
smtp.Send(msg);
Pathan
|
|
|
|
|
Guess the smtp.Host should be "127.0.0.1" like the localhost
Hope this would help
Best Regards
3ala2
|
|
|
|
|
I would be surprised if yes Unless Pathan has smtp server on his localhost. Obviously, ip address he specified is unreachable, it can be for several reasons. It can be misspelled, or can be behind proxy or firewall or something else.
Pilo
|
|
|
|
|
Hi all i am stuck to small problem
i have values in the form of double such as 0.002354565767677
know i want to make it round figure 0.00236 upto 5 after decimal how to make ?
|
|
|
|
|
one method is use math.round
math.Round(dblvar,intDigits)
|
|
|
|
|
Use function Round(yourvalue,No of digits after decimal point)
|
|
|
|
|
Round(yourValue,"No of digits after decimal point you have required")
like
yourValue = 0.002354565767677<br />
afterDecimal =5<br />
Console.Write(Round(yourValue,afterDecimal))
Result is that: 0.00236
Enjoy
Pavan Pareta
|
|
|
|
|
Hi,
Can you set up an HTTPHandler so that it operates conditionally? ie: to only kick in if the requested file _doesn't_ exist.
I'd like to be able to handle a request for a particular extension using the handler, but if the requested file exists show that instead. It seems that if you do the check for file existence within the handler and try a redirect or execute, it'll call the handler again and get an error.
Thanks In Advance
Shaun
|
|
|
|
|
Hi,
Is it possible to share assemblies in ASP.NET apps without using the GAC?
I have two web sites which I want to share common code between :
ROOT
\site1
\site2
\common
...and I would like the bin folder in each site to be mapped to the 'common' folder.
I have tried the following:
- set up a virtual 'bin' folder, but the binder looks for assemblies by actual path, so doesn't find it.
- use a windows shortcut to the folder, but this is a 'lnk' file so is ignored
- use 'codebase' or 'probe' in web.config: this nearly worked;
- if I use ../common/app.bin it complains that the assembly is above the app domain root (fair enough)
- if I use an absolute web path it gives an 'HTTP download of assemblies has been disabled for this appdomain' error
I haven't tried explicitly loading the assemblies in code but I suspect it will result in the same errors as above.
The reason I need to do this is that the sites are hosted remotely and I don't have access to the GAC to install anything.
Is what I want to do possible, or am I barking up a non-existent tree?
TIA
Shaun
|
|
|
|
|
Hi,
I have problems with Session Time-out.
I need my Session to stay for more than an hour. For that, I have done the below things.
a) I have specified the timeout as 60 in the web.config of my application as below:
<sessionstate mode="InProc" stateconnectionstring="tcpip=127.0.0.1:42424" sqlconnectionstring="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="60">
b) In IIS, web-site's configuration settings also I have changed to 60 minutes.
c) Though its not required, I have also changed the timeout to 60 in machine.config as below:
<sessionstate mode="InProc" stateconnectionstring="tcpip=127.0.0.1:42424" statenetworktimeout="10" sqlconnectionstring="data source=127.0.0.1;Integrated Security=SSPI" cookieless="false" timeout="60">
Even though some times the session time-out is after 25 – 30 minutes and sometimes the session time-out was after more than 54 minutes.
Can any one give me any explanation for this unpredictable behaviour?
How to re-solve this type of situation. I dont want to change the sessionstate's mode other than In-proc.
Please help me in this regard.
Satyendra
|
|
|
|
|
Aren't you setting Session.Timeout property in your code somewhere? I think, when you call such an assignement, it results in lost of current session.
And you can lose your session when IIS or web application process is restarted.
Pilo
|
|
|
|
|
You can set session time out in web.config file where you are defining connection string.
|
|
|
|
|
Hi All
I have added textbox in Datagrid in Itemdatabound event.I have fired runtime RegularExpression validator on every textbox.I wnt that when user enter 0 or any character then validator should be fired.How to set ValidationExpression property?How can I do?I am not getting how to set ValidationExpression property?if u have any solution,Pls reply me.
Thanks
monika
|
|
|
|
|
Instead of using RegularExpression Validator, you can use javascript so that if one enters 0 then an alert message should be displayed.
Thanks and regards,
Suresh Dayma
Everything Is Possible!
|
|
|
|
|
Hi
Thanks for yr kind Response.But how to write Javascript?Becoz i have runtime textboxes in Datagrid.Hoe to find that control which is in Datagrid.How to get value of textboxes using Javascript?If u have any idea pls reply me.
Thanks
monika
|
|
|
|
|
can u explain me which character shud u want to entered?
the following code help u for
<br />
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" <br />
ControlToValidate="TextBox1"<br />
ValidationExpression="[1-9]{minvalue int,maxvalue int}"<br />
<br />
ErrorMessage="The zip code must be 5 numeric digits!"<br />
runat="server" /><br />
<br />
e.g maxvalue=5 minvalue=1 [1-9]{1,5}
e.g maxvalue=--- minvalue=5 [1-9]{5,}
e.g excact 4 character long value in textBox [1-9]{4}
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
if u want to use jscript thn i'll try to catch to ur problem and i'll send u . give me ur rply
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Hi
Thanks for kind help.Ya sure send me javascript for validation.
Thanks
monika
|
|
|
|
|
hi monika i send u javascript to enter only numric values
<br />
<head><br />
<script type="text/javascript"><br />
function KeyCheck(myField, e)<br />
{<br />
var key;<br />
<br />
if (window.event)<br />
key = window.event.keyCode;<br />
else if(e)<br />
key = e.which;<br />
else <br />
return true;<br />
<br />
if (((key > 47) && (key < 58)) || (key == 8))<br />
return true;<br />
else <br />
return false;<br />
}<br />
</script><br />
</head><br />
<body> <br />
<INPUT onkeypress="return KeyCheck(this, event);" id="txtTest" type="text"><br />
<br />
</body>
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
I recently converted one of my web apps over to vs2005 (i did this manually as it felt safer and isnt too large )
While im very happy with vs2005 i couldnt help notice one oddity...
i put all my classes, including my 'basepage' (a page inherited by all other pages with useful functions in it) in the app_code folder.
My basepage references some controls in the project (these live in the 'lib' folder).
I cannot seem to access the control types in code from the basepage
This is clearly something ms have done on purpose, and while i understand the model and logic behind putting your code in the app_code folder i cant seem to find anything to explain why this might be.
p.s im aware that i can put the codebehind for my controls in the app_code folder, but that doesnt really explain what im asking.
Anyone know?
---Guy H ( ---
|
|
|
|