|
How is a control programmed to be validated on the browser instead of the server? Is this done by not using the "runat" attribute or is there something else that needs to be done? I would want a control to be validate on the browser to then posted to the browser if the date confirms to anticipated format.
Greg
Coding makes the world go round!!!
|
|
|
|
|
Use the EnableClientScript property of you validator. In the case of CustomValidator you also supply the client function in the ClientValidationFunction property
only two letters away from being an asset
|
|
|
|
|
Hey everybody!
I'm writing automation using the webbrowser controller. I already wrote this kind of automation in c# 2003, but this time I'm encountering a silly problem that I just can't find an answer to.
I'm getting a button as an HtmlElement from the HtmlDocument using the button's ID, and all I want is to click that button. for some reason I don't find any way to push the button!
can anyone help me with silly problem ???
THANKS!
|
|
|
|
|
Any reason why you can't just call Button_clicked(null, null)? (Or on the client side, docuemnt.getElementById('Button').click();)
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
???
sorry for the ignorance.
lets say I want an automation that searches google.
and I want to click the "google search" button.
so, let element be a and HtmlElement with the button, and... how do I click it?!
I don't have element.click(), or document.getElementById("button").click().
I guess what I just don't understand is "Button_clicked(null, null)", thing.
what would a Button_clicked(null, null) method can do ?! (besides doing nothing...., and it won't make the browser actualy click the button).
I'm confused!
help? (again, sorry for the ignorance).
|
|
|
|
|
Right - -think I get what you're saying....
In order to programmatically click a button on the client side, you need to know the button's ID...
You can do this by either View Source, or using the IE Dev toolbar.
Once you know its ID, you can get hold of it as an object using document.getElementById(buttonID) (in Javascript)
Then just call .click() method of the button.
The (null, null) bit is a server side thing - I was assuming that you had access to the codebehind, in which case, you can call the handler directly. But since you're using the webbrowser control (just out of interest-WHY?) it won't work..
BTW - what do you mean about "I don't have....."?
Am I following what you want to achieve?
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Why would it make sense to use the session or application cache when you can use the asp.net cache for the same purpose.
I.E. when you store info that is user specific just use a user id as part of the key name.
I just don't see how the session or application cache provide anything other than a mental compartment or semi convenience for what is in effect the same thing in the end and could be simplified by just using one cache "location".
|
|
|
|
|
I guess one reason is that Cache is application based while session is of course session based.
only two letters away from being an asset
|
|
|
|
|
Hmmm...so after posting here, reading many books and scouring the web it appears that there is really no need at all for the other forms of caching. Maybe they are there for historical reasons.
Thanks for replying.
|
|
|
|
|
Well session variables get destroyed when the session ends whereas you would have to manually clean up all the relevent application variables when a session ends.
|
|
|
|
|
Yeah true, that's a point for sure.
|
|
|
|
|
I could not find the category of crystal reports forum so I am posting here. Sorry for that.
I want to declare global variable in formula editor and access that variable in another formula editor in the same report. How can I do that? Please help.
|
|
|
|
|
|
Ok - I have a parent window where a table is - once the user clicks inside a cell - I want a popup to appear - which it does using this code:
Dim sUrl As String = "Popup.aspx"
Dim sFeatures As String = "'height=200;width=200px;left=75;top=100;menubar=no;resizable=yes;scrollbars=no;status=no;titlebar=no;toolbar=no'"
'create a client script to open the window
im sScript As String
sScript &= ""
Script &= "window.open('" & sUrl & "',''," & sFeatures & ");"
sScript &= ""
'write it into the outpit stream for immediate execution and open the popup
Response.Write(sScript)
Using the popup window I save all the selections made into my database - once I do this I want the window to cause the parent to postback - which I do with this code:
Dim sScript As String
sScript &= ""
sScript &= "opener.location.reload();"
sScript &= ""
'write it into the outpit stream for immediate execution and open the popup
Response.Write(sScript)
Now after this is all complete - I want the popup.aspx window to close - I tried this:
'once everything is posted back to the parent window - close the popup
sScript &= ""
sScript &= "self.close()"
sScript &= ""
Response.Write(sScript)
BUT the window remains open - I am totally stumped as to why it will not close. Also can you make it vbmodal somehow until it closes or somethign otherwise it just lies behind the parent window.
Thx, T
|
|
|
|
|
well I guess self.close() is the same as window.close()
But, also how will your opup know its closed?
Are you keep a reference in the parent window and after reload notifying all children to close? That would solve your delimna because nothing is telling the child to close.
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
I am trying to load an Unmanaged win32 dll file in my web application. I have tried
both DLLImport() and LoadLibrary() methods. While in the later one, I have loaded the Kernel32.dll file first and then tried to load my specified dll file using LoadLobrary method. I have checked my dll file by moving it to all locations, like bin, root and the folder in which aspx forms are lying. Its becoming a headache for me now.
I have even checked out the privelege for executing unmanaged code for my application, its there.
Sayed Muhammad Imran
|
|
|
|
|
the folder its created in is c:\windiws\Microsoft...
If you create a wrapper it will be included
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
I have developed a simple application to do emails to different users. But one thing i cannot understand. After my application sends email, this email is placed in Queue folder but i cannot recieve that email
One more thing i want to know that wt are the available free smtp server by using which my application can send email to all the internet users.
Good Luck
|
|
|
|
|
zubairy wrote: have developed a simple application to do emails to different users. But one thing i cannot understand. After my application sends email, this email is placed in Queue folder but i cannot recieve that email
It is using your default mail client on your machine.
To use something different you need to send commands to an SMTP server. For information on those commnds see RFC 821[^]
zubairy wrote: One more thing i want to know that wt are the available free smtp server by using which my application can send email to all the internet users.
HOTMAIL is an anonymous email server
ALso, you can send it to your ISP. ISP's always handle email. If your trying to spam people they might restrict you to 200 emails a day.
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
Hello,
I build a test report using SQL Server Business Intelligence
Development Studio. Every thing went well also I can preview of the
report. But when I wanted to deply it by right clicking it its throwing
a message
The first message I got was
'The project cannot be deployed because no target server is specified.
Provide a value for the TargetServerURL property in the property pages
for this project.'
To over the above problem I created a URL,
http://localhost/ReportServer in the property page .
And again I tried deploying it and second I got this message :
'A connection could not be made to the report server
http://localhost/ReportServer
Additional Information:
The attempt to connect to the report failed. Check your connection
information and that the report server is a compatible version.
(Microsoft.ReportingServices.Designer)'
This is first time I am trying to get the reports. Could some one
please help me how do proceed from here?
Thanks
-L
|
|
|
|
|
HI , please i wanna ask if there is a way to let me access my data stored in the DB
i tried to access but it gave me an error message , an agly page that colored the
adapter.fill(dtset,"table") line to red
i don't know where is the problem , issn't it like in vb.net ?
i created the connection & adapter & .. but it seem doesn't work , any help please ?
thank you
try to be good if you can't be the best
|
|
|
|
|
You check the connection first. Also try to get the exact error what you are getting.
Best Regards,
Apurva Kaushal
|
|
|
|
|
it gave me a agly page with some tracing information & like i said the
Adapter.fill(DtSet,"Table") line is colored to red
i think that it is not the same way to access data , i heard something like user or something , may be i have to create a user to access those data or i don't know
did you understand what i mean ?
try to be good if you can't be the best
|
|
|
|
|
Hi, this can be due to many reasons. First check the connection(whether you are getting connected or not), and then also the query which you are passing to fetch the data(command object) and also you can also trap the exact error which you are getting.
Best Regards,
Apurva Kaushal
|
|
|
|
|
i will give you a flash like that may be you will understand me
well , in vb.net you just set the connectionsstring of a connection object then you have immediatly access to your DB
in asp.net , as i learned , you have to create a user in the DB you work on like that you have access , i created this user but first i don't find it like a useful way , the second thing is that i don't know what is the problem
this is the error :
connection failed for the user .....
i don't know if the creating of those users is the real & the effective solution to access data from an asp.net application
try to be good if you can't be the best
|
|
|
|