I have two pages. The first one contains the authors' records and it has a link called REMOVE. If I click on the link that related to a specific author that will be move to the other page that contain the detail view of this author. I already did that but I make a fault but i don't know it. If I click the link that related to author that has au_id=25. the other page has the first record while the url of this page equle to ? au_id=25
protected string CheckValue(string strValue1,string strValue2) { if (strValue1=="1") { return "No Record Found"; } else { return "No Record Found"; } }
when i run my page i get errorin my .aspx page Text='<%# CheckValue(Eval("Imagespath")+","+Eval("Imagesname")%>'> is there any way i can send my value CheckValue method which isa .cs file how can i send 2 paremeter from.aspx page can anu one tell me the syntax for it
I'm working with asp.net c# web application. We have completed site and hosted in dedicated server (own server).
This server having only one site (sharepoint site). A page having 1000+ images. Loading in base page. And slide show in popup page.
Base page image painting is going on. At same time popup page image is not loading up to base page paint complete. I changed popup image download to some other server means working fine.
Here my problem is same domain more than 2 request web server (iis) not responding up to first 2 requests complete. We can call 2 requests at a time. How to increase more than 2 request in ie. This problem is not available in Firefox. Firefox can manage more than 2 requests. Ie not allows only 2 requests to one domain at a time.
How to send more than 2 requests from ie to a domain?
HiI am trying to send null value from my combobox and check it if its null in sp.
IF @Param1 IS NOT NULL BEGIN SET @Param1=@Param1 END ELSE BEGIN SET @Param1=' IS NULL' END mmsDataContext mms = new mmsDataContext(); RadGrid1.DataSource = mms.SON(Country.SelectedItem.Value); RadGrid1.DataBind();
I am designing a page that consist one gridview and I am providing datasouce at the run time(code behind) no my problem is that i want to add another column with hyperlink button after click that open a page and can pass some value of related cell onto another page.
For passing value i was using session but how to add hyperlink in code behind ...
I'm having a problem with telerik RadGrid, I want to enable multiple row selection. I also want to go to the server whenever a row is selected or deselected. I created a javascript function to handle the Grid's client side events (OnRowSelected, and OnRowDeSelected). The functions look like this:
function onOperationRowSelected(sender, eventArgs) { __doPostBack("<%=myControl.ClientID %>", "rowSelected:" + eventArgs.get_itemIndexHierarchical()); }
The other function is very similar, the only difference is that it sends the string "rowDeselcted" instead of "rowSelected".
On Page_Load I check to see if the request is a Post request using "IsPostBack" and if so, I check to see if it's a rowSelected or rowdeselected.
My problem is when I select a first raw on my grid, a Post request happens (which is expected), however, when I select the second row, a GET request is issued, which (obviously) will result in IsPostBack returning false.
I want to know how can we send direct request to .DLL with some parameters. I really don't want to use .ASPX and .ASHX. I hope this .DLL request is used for more secure site.
For example: IRCTC (India Railway site):
[URL]
how we can send or execute page from .DLL in ASP.NET.
I'm having difficulties to find a good explanation and tutorial on how to send an ajax request from one asp.net control (when clicking on an item in its )to update from the server another control.
Is UpdatePanel is the only solution- and does it really avoid a postback?
I have a requirement whereby I need to be able to change the controller being used based upon a parameter. I am creating an application that needs to be dynamic enough to be able to change controllers on the fly. Let me explain further;
When the application starts a dictionary of custom controller names is loaded with a controller name as the key and a custom controller name as the value. This will be help in the application scope.
When a request is made I need to access the requested controller name, use that name and check to see if it matches a key in my controller dictionary and if so, replace the requested controller name with the custom controller name from the dictionary.
example;
My dictionary will contain data as follows Key: 'Home', Value: 'Home_IN' Key: 'Customer', Value: 'Customer_BE'
Now, the following request is made 'User/Edit/1'. Does the controller name exist in the dictionary? No, continue with original request.
Now, the following request is made 'Home/Details/2'. Does the controller name exist in the dictionary? Yes, replace the original controller name 'Home' withe custom controller name 'Home_IN' so changing the requested URL to be 'Home_IN/Details/2'.
Does this make sense?
My problem here is knowing exactly where in the request cycle I need to do this?
I am assuming I need to create my own custom controller factory?
I have two pages: Default.aspx and Edit.aspx.In Default.aspx, there is a tabcontainer control and there are 5 tabs in it. In each of these tabs, there is a gridview. And in each grid view there is a hyperlinkfield field called "Edit". I want that when a user clicks the "edit ", the page will redirect to Edit.aspx page with the current activetabindex of the 5. How do I write the DataNavigateUrlFormatString
All I need is to send a http post request I pulled from fiddler.
I do not want to use HttpWebRequest class. It makes it hard to set up a request, does not allow to change host,
and when it does send it it looks nothing like the request I want. The server is very sensitive and unless I copy the request headers 100% it will return an empty page. Why can't I just type in the headers and send it that way? What would be 5 minutes of work in php is taking the whole evening in asp.net.
This is what I am trying to send, simple as it gets: ...
i have some aspx page that handle form data submit from few websites. how can i retrieve the ip of the site (server) that send the request? (not the ip of the user that use the site and fill the form) if the form is hosted in server like 55.343.33.343 i need to retrieve to the handler page this ip. (Just to be clear : the handler.aspx is hosting in one server xx.xx.xxx.xx and the forms hosting in other servers cc.ccc.cc.cc, yy.yyy.yy.yy etc