|
ASP.NET 2.0
Need to simply process incoming postback information without sending back a reponse.
Client sends HTML from email to a page on a web site. Web Server ASP generates a response page and send it back which opens the browser on the client.
Email body: User Name:
How to avoid sending back the response page.
Just to clarify the language; by the *response* I mean whatever the web server sends back when it receives a transmission that requests it to process a web page. I suppose that any good listener will send back a reply when it receives a request that it can process. Even if a web server is directed to a page that does not exist it will reply something which will open a browser unless a browser with the existing original session or connection is already active.
I confirmed that even an empty server page capable of processing the incoming data will send enough of a message back to open the browser which displays nothing.
A couple of suggestions have been made by forum members such as:
1 - Using a web service
Can a web service be made to accept a form postback data stream as in
My only experience with webservices used a control to shape the message sent to the web service. I have no idea what the message looked like. For all I know the message might look exactly the same as what is being transmitted by the GET package form this email.
The data part of the message was XML which the web service had to process but the encapsulation for the data might have been the same as any message that a web server can respond to.
The web service did send back results. The result did not open a browser but was caught by the control that sent the original message. The control probably operates as a browser with an open web server session. This control browser session received the send back message as IE or any other browser would.
2 - iHttpHandler.
If a page output was redirected to an HttpHandler that did not contain any HTML page component maybe it would not send back a reply?
How would a browser be closed automatically?
Can we close a browser with a message from the web server?
How does a browser end a session? It moves to a different web site or it is closed.
Is there no way for a browser to terminate a session before a web server sends back a response?
Thanks,
RobGMiller
|
|
|
|
|
See my reply to the identical post that you sent less than ten minutes later.
---
single minded; short sighted; long gone;
|
|
|
|
|
I developed a login application in ASP.NET using Visual Studio 2005(C#). It works fine, but when I deploy the same application in a another computer using Visual Web Developer 2005 Express, it doesn't work. It displays the following error message.
"Your login attempt was not successful. Please try again."
As ususal I used the web.config file to list the pages
to which I want have the restricted access and also I used
the Visual Studio's Website -> ASP.NET Configuration tool to add the role and user accounts.
All other data-driven parts are working properly but the
login part is the problem.
Advance thanks.
|
|
|
|
|
Only time I've had this problem is when I changed the applicationName in the web.config. If this is different to when you create the users it won't work.
|
|
|
|
|
I have an application in a Windows forms and I want to export it to a web service.
In my application, there is some initialization done in the constructor of my windows form, as well as in the Load event handler. Obviously, this code executes only once, that is, at the beginning of the program.
I've started to port this application to a Web Service, but I realised that the code in the constructor (where the InitializeComponent is) executes every time I call a function with the Invoke button of the testing interface.
My initialization code is somewhat long and it simply cannot be that way...
Is there a way to make my initialization code execute only once, just like it does in a Windows Form?
Thank you very much!
|
|
|
|
|
haven't done much work with web services but I think they have a Global.asax file much like a web site. Add this to the project (there should be an option for it in the add object dialogue) and it'll generate several methods one of which is Application_Start.
|
|
|
|
|
Hi,
We want to use the resource with the ability to be able to over-write the resource file? Based on maybe an Hierarchy model, set a default resource file but something specified in the Hierarchy should be able to over-write this file to new settings.
We do not want to store this information in the database, creating different languages translations for the data we want to use, and want to take advantage of this .Net framework feature.
Thanks for your time.
|
|
|
|
|
hi
i am doing a website in visual studio 2005.in my asp.net page i have got a grid view which takes the data from the database dynamically.i have given the following code:
protected void GridView1_DataBound(object sender, EventArgs e)
{
int i = ds.Tables[0].Rows.Count;
int j = ds.Tables[0].Columns.Count;
for (int k = 0; k < i; k++)
{
for (int l = 0; l < j; l++)
{
GridView1.Rows[k].Cells[l].Width = new Unit("50px");
}
}
}
i want the output in such a format that i dont want the data in the cell to go to the next line(i.e) it should not wrap the data in a cell. i want only the first 10 characters to appear in my cell and i want the rest to be truncated.i have tried to set wrap to be false also in the source code:
<rowstyle font-size="Medium" wrap="false">
but nothing seems to work. how do i wrap and truncate.
Please help me out. my deadline is nearing.Thanking in advance.
|
|
|
|
|
Can you not just return the first ten characters of the data in your sql statement?
|
|
|
|
|
int len = GridView1.Rows[k].Cells[l].Text.Length;
if(len>5)
len=5;
GridView1.Rows[k].Cells[l].Text= GridView1.Rows[k].Cells[l].Text.Substring(0,len);
All the best
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Thank you so much!This code work perfectly.
|
|
|
|
|
I am using C# together with ASP.net.
I need to check if the screen resolution is equal or bigger than 1024 x 768, if not so, the page wil display a message that wil inform the user to change his res.
Thanks
Icarus
|
|
|
|
|
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Thanks the code works, but now, how would i use the message in the actual web-page? (display it in a table ...et.)
|
|
|
|
|
Generally speaking this is a very bad idea. For one there is no way to 100% accurately tell the screen size, whatever method you use. Using javascript will only get the view port size, that is the size of the browser (minus any menus, scrollbars) not the actual screen resolution. Also forcing the user to use a specific resolution is very bad usability practice and any website that does that is either totally crap or hasn't been updated since 1999.
|
|
|
|
|
please i need help on developing an online testing system.The system will have multiple choice questions and options for answers.IT should be able to generate a test result page immediately after the test-taker clicks finish.Please, i need your support.
akaprinceally
|
|
|
|
|
|
|
Oh those are JavaScript functions on mouse over
Thomas
|
|
|
|
|
do u know the code?
so that we can use...
|
|
|
|
|
Can this be done without using JavaScript.
|
|
|
|
|
|
Here's the problem:
On the client site, they are able to open the login page in their browser, but the asp.net controls (textboxes, buttons) do not display. The table, labels, and an image on the login page all show up fine.
They are using windows XP Pro, IE 7.
I've had them install the .net framework, but it didn't help. I couldn't find anything in the browser settings that I think could cause this problem.
I'm pretty new with using ASP.net. Does anyone have any ideas of what else I can try?
|
|
|
|
|
Having .NET on the client machine is irrelevant, it doesn't need it. Have you tried a different browser? Have you checked the output to see if the HTML is even being rendered? Do you have code anywhere changing the controls visibility?
|
|
|
|
|
badgrs wrote: Having .NET on the client machine is irrelevant, it doesn't need it. Have you tried a different browser? Have you checked the output to see if the HTML is even being rendered? Do you have code anywhere changing the controls visibility?
we do need the .net framework installed on the server machine though, right? For test purposes we're viewing the page from a browser on the same machine as the server (I should have been clearer about this).
There is no code changing the visibility of the controls.
How can I tell if the HTML is being rendered? I've tested this app on other machines, and the page displays correctly.
Any thoughts would be greatly appreciated.
|
|
|
|