|
MySQL with ASP.NET is not at all a bad combination. It worked well when I tried for one of our high traffic website. You have to use the MySQL connector provided from MySQL. It is optimized to give good performance with MySQL database.
|
|
|
|
|
Hi all,
i have created the web service which perfrom addition of two numbers now how i access the web service inside other Pages. any idea or hint.
Best Regards
Rameez
|
|
|
|
|
Did you add a reference to your webservice?
If not, right click your project and select "Add Web Reference" or "Add Service Reference" and point to your web service. Then you can call the method the web service exposes from your page(s).
|
|
|
|
|
1.) Run your webservice get the URL (Example: http://localhost/webservice.asmx)
2.) Go on your project
- Right Click > Click on "Add WebReference" > Paste the URL you got from your webservice
3.) Add ?wsdl behind if you want to see the arguments and methods on your webservice (Example: http://localhost/webservice?wsdl
Cheers ^^ hope this will help
|
|
|
|
|
On the PostBackURL of a button I've typed in the code show below. The problem is that it is not replacing 'Request.Params("customersid")' with the actual value. How can I tell it to pass the value of the request.params?
~/customerfind.aspx?parentcustomerid=Request.Params("customersid")&returntype=5
|
|
|
|
|
It is because the PostbackURL property is a string and your code is taken as a simple string.
Try doing it in the code on the OnClick event, something like this:
...
Server.Transfer("~/customerfind.aspx?parentcustomerid=" + Request.Params["customersid"] + "&returntype=5";
...
|
|
|
|
|
Hi,
This is the setup i have -
I have a layout with server controls (textbox for email entry).
I have a webpart which has a Submit button. This button has an onClick handler that does stuff serverside. It also needs to have a onClientClick scrupt that validates the email entered in the textbox on the layout.
Since the button is in the webpart i had to add the email validaiton javascript in the webpart. Now, I am having problems accessing the email textBox control (thats in th elayout) in the webpart javascript.
I tried using the txtEmail.ClientId but that is giving me error -
The name 'txtEmail' does not exist in the current context.
If I move the validation and the button to the layout then i can't have the onclick ..
Any ideas how i can get access to the control on the layout ?
thanks,
arch
|
|
|
|
|
hi all,
how to bind gridview in parent window to the child window using client side java script....actually in my main page i have a grid view consisting a report... my problem is to display that grid which consists report in a new window..can any one plz solve my problem
thanks
Reply
|
|
|
|
|
why you want to use Javascript?
you can do it with simple queryString(just send your selected item ID in gridview to another page)
if i don't understand what do you mean,please explain more...
|
|
|
|
|
Hi guys,
I'm curious to know if any one has used the web client software factory? I'm still in the dark as to why it is being used? To me it sounds like that are trying to separate the code behind from the ASPX page, but isn't that already taken care of when you create a separate .cs file for every page created?
Please can someone share some light on this topic and is this the way to go for the future, or is there something else to look at?
I also read that they say it must be used for large website, what do they mean by large? I have a e-commerce web site with a lot of products, there is a couple of pages as well.
Brendan
|
|
|
|
|
I can view a pdf document in html like:
<iframe src="C:\file.pdf" width="100%" height="750"></iframe>
but when I put the same come to be dynamically written on a literal control on a button click
like:
protected void Button1_Click(object sender, EventArgs e)<br />
{<br />
litShow.Text = "<iframe src="C:\\file.pdf" width="100%" height="750"></iframe>";<br />
}
the pdf file is not displayed
plz help
_____________________________________________________
Yea! I could be wrong...
|
|
|
|
|
Did you check to see what IS rendered ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
yes
I do get the html code on 'view source'
but the file is not displayed
I tried with many files...
Same result
here is the html source
<br />
<br />
<input type="submit" name="Button1" value="view" id="Button1" /><br />
<input id="pdffile" name="pdf" type="file" /><br /><br />
<iframe src="C:\310001.pdf" width="100%" height="750"></iframe><br />
<br />
<div></div>
_____________________________________________________
Yea! I could be wrong...
modified on Sunday, January 18, 2009 8:32 AM
|
|
|
|
|
Oh, I see.
saud_a_k wrote: C:\310001.pdf
This will only work if your server and client are the same machine, in other words, it will never work in the real world.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
saud_a_k wrote: src="C:\\file.pdf"
You cannot quote a path like above.
You should use path like
http://<website>/folder/a.pdf
If you still want to use the directory path then it should be like
src="file:///C|/file.pdf"
|
|
|
|
|
The server and client are the same machine
I also used:
string myfile = AppDomain.CurrentDomain.BaseDirectory+"\\310001.pdf";<br />
litShow.Text = "<iframe src="+myfile+" width="100%" height="750"></iframe>";
the file is in my bin folder, but I still cant see the file
_____________________________________________________
Yea! I could be wrong...
|
|
|
|
|
saud_a_k wrote: string myfile = AppDomain.CurrentDomain.BaseDirectory+"\\310001.pdf";
This will return path as
C:\<folder name(s)>\
saud_a_k wrote: the file is in my bin folder, but I still cant see the file
You need to write is as:
AppDomain.CurrentDomain.BaseDirectory + "Bin\\310001.pdf"
|
|
|
|
|
Thanx but it still does NOT show.
I even tried making a html file with the iframe code and tried opening it in the main inframe
it still does not show!
Please try this.... I think its wierd
create a simple html file that displays a pdf file in an iframe
<iframe src="C:\pdffile.pdf" width="100%" height="750"></iframe>
include the file as a part of the project on VS (i use 2005)
now right click in the solution explorer and >> view in browser
does it show?
it doesn't for me.
_____________________________________________________
Yea! I could be wrong...
|
|
|
|
|
hi;
I want to create dll of all files are in APPCODE folder.I am using asp.net 2.0 frame work.
Thanks
|
|
|
|
|
snehasish wrote: I want to create dll of all files are in APPCODE folder.I am using asp.net 2.0 frame work.
snehasish, You can !!
But first of all tell me why ? If you think about code security , you do not need to worry about that , when you Publish the code from Visual Studio You App_Code folder and codebehind files are compiled into one assembly.
Now back to your solution .
Step 1 : Create A Class Library
Step 2: Copy the APP_Code Folder on that Class Library.
Step 3: Build the Application
Step 4: Delete App_Code From your web sites
Step 5: Add that Dll as a Reference to your web sites
Step 6: Access your classes and methods from that dll
|
|
|
|
|
Abhijit Jana wrote: But first of all tell me why ?
Maybe he wants to reuse the code there in other projects.
|
|
|
|
|
Abhijit Jana wrote: If you think about code security , you do not need to worry about that
Sorry, I don't understand where the benefit of having the code in AppCode is beneficial in the area of code security. Could you explain?
|
|
|
|
|
Colin Angus Mackay wrote: Abhijit Jana wrote:
If you think about code security , you do not need to worry about that
Sorry, I don't understand where the benefit of having the code in AppCode is beneficial in the area of code security. Could you explain?
Sure sir, Generally we put class files on App_Code folder . We can able to access them all over the application . Here all codes are placed as simple class file. So some people think that Its very unsafe to keep code in app_code folder as its placed as plain text format. But if we published the code from Visual Studio all the Class inside the App_code and Codebehind are converted to assembly.
But I prefer to create Class Library
|
|
|
|
|
I still don't see where the security is. Compiling into an assembly isn't adding security as Red-Gate's reflector can just reverse it out again. All that is doing is converting it into the format that the CLR needs in order to run.
|
|
|
|
|
Colin Angus Mackay wrote: ompiling into an assembly isn't adding security as Red-Gate's reflector can just reverse it out again.
Exactly Agree . But from that question I was thought may be he is asking for that his code represent as plain text.
|
|
|
|