|
How to set Gridview.Datasource = empty?
How to show a message inside the gridview like "No records" in C#?
Gridview.Emptydatatemplate = "No records" does not work.
------------------------------------------------------------
"The only true wisdom is in knowing you know nothing." --Socrates
|
|
|
|
|
DotNetXenon wrote: How to set Gridview.Datasource = empty?
Don´t set. Just call Gridview.DataBind(); and your GridView will be empty.
DotNetXenon wrote: How to show a message inside the gridview like "No records" in C#?
Before calling Gridview.DataBind();, set Gridview.EmptyDataText = "No records";
|
|
|
|
|
He buddies I was working on some project .... it is my first site desing..
First how can I prevent a form to be sent to a web server i.e I checked if the fields are filled by the user or not ..... but after that I cant stop the data to be sent to a web server.
Secondly after this is done. I want to check if the database and table exists or not on the web server. How can I do that??
Thank you
Nothing Is Impossible
|
|
|
|
|
dont use javascript to validate!! make sure you validate on the server else the validation can be bypassed
ie let them submit the form and then validate it.
If it is your webserver wouldnt you know if the table and database exist?
It is all explained on php.net in great detail
|
|
|
|
|
use AJAX to get server response to the client.
Here actually you are placing a request to the server from the client but the form itself will not be entirely posted to teh server.
you can send urlencoded parameters of all the fields you find and check in the server if they are proper.
This might help http://www.w3schools.com/Ajax/Default.Asp[^]
|
|
|
|
|
Hello everybody,
I am in the following situation. I have a website which runs in a secure environment.
I use an object with the CLSID: 0002E510-0000-0000-C000-000000000046 to show a excel workbook in the html page.
Since a Microsoft security update from July, this doesn't work anymore.
Now I am searching for a solution to get this working again. I found the I can change the registry key:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{0002E510-0000-0000-C000-000000000046}]
FROM: "Compatibility Flags"=dword:00000400
TO: "Compatibility Flags"=dword:00000000
After this change everything works fine, but when I restart the computer the security update is installed again.
Is there any other solution to get this component working again, than changing the registry?
Or is there a registry value to change which suppresses the Micorosoft Update to run again?
Any other ideas?
Thanks in advance.
Erik
|
|
|
|
|
clsid:0002E559-0000-0000-C000-000000000046
This CLSid works when office 2003 webcomponents installed
a few scripts need change
|
|
|
|
|
Ok thanks for your reply, i'll try this in the next days.
Erik
|
|
|
|
|
hi
i have a select element that is created by javascript code and its options come from db. it works fine, but the problem is that the select element stretches itself to fit the longest option. and doesn't accept the width i specify/assign for it. what should i do?
|
|
|
|
|
Did you try setting the width using inline style?
Add
style="width: 100px;" to the select element tag and try
|
|
|
|
|
of course i did. but it has no effect on the width of select element since it stretches itself to fit the longest option. i set the width 100px, and when i inspect it in the browser, it is 400px!!!
|
|
|
|
|
can you please share the code of your select statement with us?
|
|
|
|
|
hi everyone
am trying to add dynamically several controls(TextBox, RadioButtonList, CheckBox) to my gridview, one in each row inside Template Column. so far everything worked fine except for the RadioButtonList item,( it does not matter if am adding the items one by one or reading them from the database) it shows to me the Options but as list (without selection being enabled) and it is look like this
Regular RadioButtonList
o ChoiceOne
o ChoiceTwo
o ChoiceThree
My RadioButtonList
ChoiceOne
ChoiceTwo
ChoiceThree
So can you help me ?
|
|
|
|
|
Please heeeeeeeeelp
i have been looking for over 6 hours online and i could not find anything even close to it
|
|
|
|
|
so what is it you want to do check a checkbox or insert the control? what do you mean it shows them as a list? are the checkboxes present?
are you using asp.net?
|
|
|
|
|
did u even read my post ?!!
it is not CheckBoxList it is RadioButtonList
what i did is i inserted a RadioButtonList from the code and bind it with DB and it is shown but my problem is i can not select any item in this RadioButtonList
|
|
|
|
|
hi,
Dynamicaly change the ifame when i click the button.that worked in mozila but not in IE.It retrive the last created file even it was deleted.
|
|
|
|
|
|
html = "<html><head><title></title></head><body><div width=70px height=100% style=border-style:solid;"
+"border-width:1px;>"+"<iframe 'src='testadsense.html' height="+""+"100%"+""+" width="+""+"155"+""+" frameborder=1 scrolling=yes bordercolor=#C6DBFF ></iframe></div></body></html>";
System.out.println("This is for after chage the adsense code : "+html);
panel = new HTMLPanel(html);
absolutePanel11.add(panel, 400, 50);
panel.setSize("160", "400");
This is my code(GWT).
|
|
|
|
|
Is this a caching issue on your IE browser?
|
|
|
|
|
yes.The last created file stayed.The new file displayed after refresh the browser.
|
|
|
|
|
In frontpage 2001, Inspite my ASP is enabled, the 'send to database' button is still not available. Why?
|
|
|
|
|
I have a legacy classic ASP website with lots of classic AJAX (many ASP files specially made for processing AJAX requests).
We are slowly migrating the website to ASP.NET 2.0 and developing under Visual Web Developer 2005/2008. I notice VWD doesn't debug ASP files. Since we are still migrating a very large website, we are mixing ASP.NET code with classic ASP (ASP.NET pages making AJAX calls to classic ASP pages).
In Visual Studio 2003.NET it supported full server-side debugging in all ASP pages. Now, how can I debug the AJAX classic ASP pages? I tried running Visual Studio 2003.NET and attaching it as a debugger to Internet Explorer, but no breakpoints were stopped at.
Please can someone help. How can we debug classic ASP pages during AJAX calls?
|
|
|
|
|
You cannot debug the classis ASP pages.
|
|
|
|
|
Hi..
I have one requirement for knowing IP Address of client maching browsing my website(asp.net/c#) -->2.0
I have code as follows
string ipAddress;
ipAddress = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
if (ipAddress == "" || ipAddress == null)
ipAddress = Request.ServerVariables["REMOTE_ADDR"];
This gives me value:127.0.0.1
but actual IP is : 192.168.1.34
Can u suggest me the amendments..
thanks
Hemant Thaker
By:
Hemant Thaker
|
|
|
|